Skip to content

GREEN-API WABA MCP Server Supported Methods#

Learn how to use GREEN-API WABA methods in your AI assistant

After installing and configuring GREEN-API WABA MCP, you can use the AI assistant to: manage instances, send template and session messages and files, manage message templates, receive messages, work with journals, queues, and much more.

Use WhatsApp Business API methods in your AI to solve complex tasks. All tools interact with each other easily and logically, delivering the required results. Using queries, you can easily manage communication with your clients via the official WhatsApp Business API.

WABA rules

  • Free-form messages (waba_send_message, waba_send_file, waba_send_file_by_upload) are delivered only inside the 24-hour customer care window, which is opened by the customer's last incoming message. Outside the window, only a template with the APPROVED status can be sent using waba_send_template.
  • A new template is submitted to Meta for review with the PENDING status. It can be sent only after its status changes to APPROVED.
  • Only personal chats are supported. The chat ID is a phone number in international format with the @c.us suffix, for example 11001234567@c.us. Learn more in Chat Id.
  • A WABA instance is connected in the console, QR code authorization is not used.

List of MCP Methods#

Connection#

waba_connect

The method is used to connect a WABA instance to the session and validate its credentials. Call to connect to another instance. Not needed on the hosted server, where the instance is bound automatically during OAuth authorization.
instance_id, api_token, api_url
Example requests:
- "Connect to WABA instance 1234567890 with token abc123"

waba_disconnect

The method is used to disconnect the instance and remove saved credentials from the session.
instance_id
Example requests:
- "Disconnect from GREEN-API WABA"

Instance Management#

waba_get_state

The method is used to return the current state of the account: authorized, notAuthorized or starting.
instance_id
Example requests:
- "Check if my WABA instance is authorized"
- "What is the WhatsApp Business connection status?"

waba_reboot

The method is used to restart the WABA instance.
instance_id
Example requests:
- "Reboot the WABA instance"

waba_get_settings

The method is used to read the current notification settings: webhook URL and token, enabled notification types.
instance_id
Example requests:
- "Show my instance settings"

waba_set_settings

The method is used to update notification settings. An empty webhook_url disables webhooks. At least one parameter must be passed.
webhook_url, webhook_url_token, outgoing_webhook, outgoing_api_message_webhook, incoming_webhook, instance_id
Example requests:
- "Set the webhook to https://myserver.com/hook"
- "Enable incoming message notifications"

waba_get_wa_settings

The method is used to retrieve the phone number and state of the WhatsApp Business account.
instance_id
Example requests:
- "Which number is connected to my WABA instance?"

Sending Messages#

waba_send_message

The method is used to send a free-form text message of up to 20000 characters. Supports link previews. Delivered only inside the 24-hour customer care window.
chat_id, message, link_preview, instance_id
Example requests:
- "Reply to the customer +11001234567: 'Hello! Your order is on its way'"

waba_send_template

The method is used to send a pre-approved message template. This is the only way to start a conversation or message a customer outside the 24-hour window. Supports template parameters {{1}}, {{2}}, a media header and postback buttons.
chat_id, template_id, params, media_type, media_url, media_filename, message, postback_texts, instance_id
Example requests:
- "Send the order_status template to +11001234567 with the parameter '#123'"
- "Remind the customer about the appointment using the appointment_reminder template"

waba_send_file

The method is used to send an image, video, audio file or document by URL. Supports a caption. Delivered only inside the 24-hour customer care window. Limits: images 5 MB, audio and video 16 MB, documents 100 MB.
chat_id, url, file_name, caption, instance_id
Example requests:
- "Send the PDF report from https://example.com/report.pdf"
- "Send a photo with the caption 'New Product'"

waba_send_file_by_upload

Sends a file directly via base64 upload, without first publishing the file to a URL. Delivered only inside the 24-hour customer care window.
chat_id, file_base64, filename, caption, instance_id
Example requests:
- "Send this file to the customer without uploading it to the server"

Templates#

waba_create_template

The method is used to create a message template and submit it to Meta for review. The template gets the PENDING status and can be sent only after its status changes to APPROVED. MARKETING and AUTHENTICATION templates are billed per message, UTILITY templates are cheaper.
element_name, language_code, category, template_type, vertical, content, example, header, example_header, footer, buttons, cards, media_url, enable_sample, add_security_recommendation, code_expiration_minutes, instance_id
Example requests:
- "Create a UTILITY template in English: 'Your order {{1}} has been shipped'"
- "Create a template for sending a verification code"

waba_edit_template

The method is used to edit a template in the REJECTED, APPROVED or PAUSED status. After editing, the template returns to the PENDING status until Meta reviews it again.
template_id, content, example, template_type, header, example_header, footer, buttons, media_url, category, enable_sample, allow_template_category_change, instance_id
Example requests:
- "Fix the text of the rejected template and resubmit it for review"

waba_get_templates

The method is used to return the list of account templates with their Meta review status: PENDING, APPROVED, REJECTED, FAILED or PAUSED. Can be filtered by status. Displayed as an interactive widget in clients that support MCP Apps.
status, instance_id
Example requests:
- "Show all my approved templates"
- "Which templates are still under review?"

waba_get_template

The method is used to return a template by its ID: status, body and buttons.
template_id, instance_id
Example requests:
- "Show the template with ID 1234567890"

waba_delete_template

The method is used to delete all language versions of a template by its name.
element_name, instance_id
Example requests:
- "Delete the old_promo template"

waba_delete_template_by_id

The method is used to delete one template version by its name and ID.
element_name, template_id, instance_id
Example requests:
- "Delete the English version of the order_status template"

History and Monitoring#

waba_get_chat_history

The method is used to load the chat message history, newest first. Returns the last 50 messages by default, 100 at most.
chat_id, count, instance_id
Example requests:
- "Show the last 20 messages from the chat with the client"

waba_get_message

The method is used to retrieve a message by its ID in the specified chat.
chat_id, id_message, instance_id
Example requests:
- "Find the message with ID BAE5F..."

waba_last_incoming_messages

The method is used to return incoming messages for a specified period (default 60 minutes, max 1440). Helps to see which customers have an open customer care window.
minutes, instance_id
Example requests:
- "Who has written to me in the last 2 hours?"

waba_last_outgoing_messages

The method is used to return outgoing messages for a specified period (default 60 minutes, max 1440) with their delivery status.
minutes, instance_id
Example requests:
- "What messages did I send in the last hour and were they delivered?"

Notification Queue#

waba_receive_notification

The method is used to receive a single notification from the queue: incoming messages, template button replies, delivery statuses. Notifications are stored in the queue for up to 24 hours. Each notification must be acknowledged with waba_delete_notification, otherwise it will be received again.
instance_id
Example requests:
- "Check if there are new events in the queue"

waba_delete_notification

The method is used to acknowledge processing of a notification and remove it from the queue.
receipt_id, instance_id
Example requests:
- "Confirm receipt of notification with ID 1234"

Messages Queue#

waba_show_messages_queue

The method is used to return the list of messages waiting to be sent.
instance_id
Example requests:
- "Show the messages in the send queue"

waba_clear_messages_queue

The method is used to clear the queue of messages to be sent.
instance_id
Example requests:
- "Clear the outgoing message queue"

Service Methods#

waba_service_method

The method is used to call any WABA API method by name when there is no dedicated tool for it. The request parameter is passed as an object like {"method": "getMessagesCount", "httpMethod": "GET", "body": {...}}.
request, instance_id
Example requests:
- "How many messages are in the send queue?"
- "Show the list of recent chats"

Partner API#

These methods are only available for partner instances.

To use them, you need to become a GREEN-API partner. Learn more about the partner program.

waba_get_instances

The method is used to return a list of all partner instances via the Partner API.
partner_token
Example requests:
- "Show all my GREEN-API instances"

waba_create_instance

The method is used to create a new instance via the Partner API.
partner_token
Example requests:
- "Create a new instance for our bot"

waba_delete_instance

The method is used to delete the specified instance via the Partner API.
instance_id, partner_token
Example requests:
- "Delete instance 9876543210"

MCP Prompts and Resources#

In addition to tools, the server provides ready-made prompts and resources that can be selected in clients that support them.

Prompts:

  • waba_customer_support — a customer support agent prompt with the 24-hour window rules. Parameters: instance_id, language
  • waba_template_broadcast — planning and running a broadcast with an approved template. Parameters: instance_id, template_id

Resources:

  • waba://instance/{id}/state — account state
  • waba://instance/{id}/settings — notification settings
  • waba://instance/{id}/templates — all templates with their statuses
  • ui://templates — interactive templates widget (MCP App), displayed for waba_get_templates

Rate Limiting#

The GREEN-API WhatsApp Business API has established rate limiting rules per second for each method. For more details on rate limiting, see the documentation page.