WATI MCP Server

Connect the WATI product MCP over Streamable HTTP with regional OAuth. Discover tools with tools/list, send Messenger or TikTok messages, and verify delivery.

The WATI MCP Server lets compatible AI clients work with WATI contacts, conversations, messages, templates, campaigns, segments and webhooks through a remote MCP connection. Linked accounts can also access Astra agent-building capabilities.

This is the product MCP service. It is different from https://docs.wati.io/mcp, which provides the ReadMe API-reference MCP for looking up documentation.

Connect with OAuth

Use a client that supports remote MCP over Streamable HTTP and browser-based OAuth. Choose the endpoint for your WATI workspace's region:

Workspace regionMCP server URL
Globalhttps://mcp.wati.io/mcp
EUhttps://eu-mcp.wati.io/mcp
KSAhttps://ksa-mcp.wati.io/mcp

For clients using an mcpServers configuration, add:

{
  "mcpServers": {
    "wati": {
      "url": "https://mcp.wati.io/mcp"
    }
  }
}

For an EU or KSA workspace, replace the URL with https://eu-mcp.wati.io/mcp or https://ksa-mcp.wati.io/mcp, respectively. Reconnect, follow your client's sign-in prompt and complete OAuth in the browser. The hosted OAuth connection does not require you to paste a WATI API key into this configuration.

The server exposes OAuth discovery metadata on the selected host at /.well-known/oauth-authorization-server and /.well-known/oauth-protected-resource. For example, the EU authorization metadata is at https://eu-mcp.wati.io/.well-known/oauth-authorization-server, and KSA metadata is at https://ksa-mcp.wati.io/.well-known/oauth-authorization-server. Let the client use that host's discovery information rather than combining endpoints from different regions.

Do not put bearer tokens or API keys in URLs, query parameters or chat messages. Let your MCP client manage the OAuth credentials in its supported secure storage.

Availability and permissions

Use tools/list to discover the tool names and schemas exposed to your signed-in session. A listed tool can still be unavailable when called because of workspace roles, plan, channel, or underlying API permissions. The catalogue below describes selected WATI-prefixed tools; it is not a complete or fixed list.

  • A WATI OAuth login can use the native WATI tool surface; a linked Astra account is needed for additional Astra capabilities.
  • When connecting through an Astra-authorized session, WATI access depends on the granted WATI capability and a WATI account binding. Legacy connection availability may vary.
  • Instagram comment and chatbot automation tools may not be available for every workspace. OAuth consent alone does not enable those features.
  • Workspace roles, underlying API permissions, product plans and channel permissions still apply. A listed tool can return an authorization or plan error.

See the Astra tool catalogue for named core tools, agent/knowledge/testing/integration/voice groups, key inputs and side effects. Some groups load on demand through list_skills and activate_skill; use the refreshed session tool definitions. Do not assume every REST endpoint has an MCP equivalent.

Distinguish WATI and Astra contact deletion

delete_contact erases an Astra contact's associated chat text and personal data; anonymized metadata may remain. wati_delete_contact uses WATI contact soft deletion. They target different systems on the same connection: confirm the system, workspace and exact contact ID before either call. See the Astra catalogue.

Choose the correct workspace

WATI tools operate on the active workspace. Call wati_get_active_tenant before making a change. If you can access multiple workspaces, call wati_list_tenants, confirm the destination and use wati_switch_tenant.

Use tenant_id as the workspace's primary identifier; its WhatsApp phone number is a secondary label. Do not confuse a workspace phone number, a sending channel number and a customer's number.

The first switch to a workspace can require browser sign-in. If the result is sign_in_required, open the returned sign_in_url and complete the sign-in. The switch completes through that flow; do not repeatedly call the switch tool while waiting. Confirm the active workspace again afterward. Later switches can reuse a still-valid verified session.

Messaging rules and safe operation

For WhatsApp, free-form text, media and interactive session messages require an active 24-hour customer-service window. This applies to wati_send_message, wati_send_file_via_url and wati_send_interactive. Outside that window, use an already approved WhatsApp template through wati_send_template or wati_send_templates; do not try to bypass the restriction with a different session-message format.

Before sending, confirm the workspace, channel, recipient and exact content. For template sends, also confirm the approved template name and every variable value. For bulk sends, review the complete recipient set. Previewing a template or estimating its cost does not send a message.

A send accepted by WATI is not proof of delivery. For supported message sends, retain the returned message identifiers and check wati_get_message_status or delivery/failure webhooks. A newly accepted message can be temporarily absent from the message store; unknown is not a delivery failure or a reason to immediately send it again.

Changes to contacts, teams, assignments, status, webhooks and automation can affect live customers. Review their exact targets and values before executing them. An MCP tool's review hint is guidance to the client, not a substitute for your application's own approval controls.

Related REST documentation: send text, send media by URL, interactive messages, template messages and delivery webhooks. MCP parameter names can differ from the REST API; follow the MCP input schema.

Send on Messenger and TikTok

Use wati_send_message for text and wati_send_file_via_url for media by URL. Both call the public V3 Conversations API. On hosted WATI MCP, sign in with OAuth and confirm the active workspace. Local direct mode can use a WATI API token configured securely in the server's WATI_TOKEN and WATI_ENDPOINT environment variables. Keep credentials out of tool arguments on the hosted connection. The backing endpoints require an applicable write scope (api, conversationsv3:write, or wati_integration:write for scoped credentials), an allowed role and channel access.

Choose the recipient

  • For either tool, use the WATI conversation ID or Channel:Id as target. Use the connected channel's id from wati_list_channels, then a colon and the recipient's platform user ID. Keep the platform ID verbatim. Neither tool needs a separate channel_id for these targets.
  • For text, you can also paste a Team Inbox conversation URL. To send by WATI contact ID, include the matching channel hint (messenger or tiktok) and ensure the credential can read that contact. For URL media, use a conversation ID or Channel:Id directly.
  • Messenger has a 24-hour reply window. TikTok session sends use a 48-hour reply window. Before the contact replies, the open window allows up to 10 outbound messages. After the contact replies, the initial limit is lifted while the window is open. After expiry, WATI allows up to 3 additional messages if the contact previously replied, and none otherwise. TikTok can allow text and reject an image in the same conversation because image sending requires platform permission.
  • For URL media, give the tool a public HTTPS link to the file. Messenger supports images, video and audio. TikTok supports JPEG or PNG images up to 3 MiB (3,145,728 bytes). Multipart upload through wati_send_file is for WhatsApp and Instagram.

Example tool calls

Pass either object below as the params of tools/call. Replace the placeholders and confirm the recipient and exact content before calling.

Text using a conversation ID

{
  "name": "wati_send_message",
  "arguments": {
    "target": "<WATI_CONVERSATION_ID>",
    "message": "Thanks for your message.",
    "idempotency_key": "reply-001"
  }
}

Image using a channel-scoped target

{
  "name": "wati_send_file_via_url",
  "arguments": {
    "target": "<WATI_CHANNEL_ID>:<PLATFORM_USER_ID>",
    "file_url": "https://example.com/reply.jpg",
    "idempotency_key": "image-reply-001"
  }
}

Text returns accepted when WATI accepts the request. For media, inspect the returned message status. Check wati_get_message_status or wati_get_messages for follow-up; acceptance does not establish delivery. If you get send_outcome_unknown, check the conversation before trying again. An explicit idempotency_key identifies one logical send. Reuse it only with identical arguments. If you confirm the earlier send did not take effect and intend to send again, use a new key.

WATI tool catalogue

The fields below are key inputs, not a replacement for the complete schema in tools/list. Use that schema and the returned validation guidance for required fields and valid combinations. On the hosted OAuth connection, credentials and workspace context are resolved from your session rather than supplied as ordinary tool arguments.

Workspaces

ToolWhat it does and key inputs
wati_list_tenantsLists accessible workspaces, workspace phone numbers, your roles and the active workspace. No business input required.
wati_get_active_tenantReports the active workspace and your roles. Use before writes. No business input required.
wati_switch_tenantSwitches the active workspace using tenant_id, or phone_number as an alternative. tenant_id takes precedence; omit both to discover choices. May return a browser sign-in step.

Contacts and search

ToolWhat it does and key inputs
wati_get_contactsLists contacts or looks up whatsapp_number; uses page and page_size (default 20, maximum 100). Follow the returned next-page hint. It is not a behavioral segment filter.
wati_get_contactRetrieves a contact record, including custom attributes and assignments. Requires target: a contact ID, phone number or supported channel-scoped identifier.
wati_get_contact_countCounts contacts, optionally filtered by creation date_from and date_to (at most 366 days). Only creation-date filtering is supported; use wati_evaluate_segment for behavioral or segment filters. This is not a conversation count.
wati_get_contact_profileReads a CDP engagement profile. Prefer contact_id from the conversation result, or use a phone for WhatsApp and the exact messaging user ID for Instagram, Messenger or TikTok in contact_number. instagram_id is an Instagram alias. Use the matching channel, and supply a WATI channel_id to disambiguate identifier lookups across multiple enabled TikTok channels. The engagement metrics are unified; an explicit social channel narrows linked conversations. Use response_format=detailed for extra available fields.
wati_searchRead-only contact and message search with query and optional limit. Phone-shaped queries use direct contact lookup. Message-text search covers a bounded recent-message window, not a complete historical export. It does not search templates, broadcasts or segments.
wati_upload_contactCreates or updates a contact identified by required whatsapp_number, with optional name and flat custom_params. This writes a contact; it does not send a message.
wati_update_contact_attributesUpdates existing contacts using target or targets, plus flat custom_params. No merge/replace strategy input is supported.
wati_assign_contact_teamsRequires target and teams. Replaces the entire team set, so include every team the contact should retain.
wati_delete_contactRequires target. Soft-deletes the contact through WATI's deletion flow; it is not physical GDPR erasure. Confirm the exact contact first.

See contact details, update contacts and target formats for related REST concepts.

Conversations, messages and tags

ToolWhat it does and key inputs
wati_analyze_conversationsAsynchronous, read-only conversation analysis. Start with nested query/scope/analysis/output; poll status/result using result_ref. Fixed 30-message evidence window, account/requester-bound results and coverage limits apply; drafts are not sent. See parameters and recovery.
wati_get_conversationsTime-windowed V3 Inbox query. Ordinary calls default to all channels the caller can access, the last seven days, 20 rows and no exact count. Use filters.channel_types and optionally filters.channel_ids to narrow scope. The time range filters current LastIncomingDate. For later pages, reuse the returned time_range and the same filters, context and count, then set page.cursor to page.next_cursor. Follow has_more even after a short page. count.exact=true confirms an exact total.
wati_get_raw_conversationsReads raw Inbox rows newest first across channels. Use channel_type or a connected channel_id to narrow them. page_number starts at 1 and page_size is 1–100. A full page can have more. Use a returned conversation id as a message target. Use wati_get_conversations for time filters and counts.
wati_get_messagesReads WhatsApp, Instagram, Messenger or TikTok message history. Prefer a WATI conversation ID or Team Inbox URL for target. A contact ID needs contact read access and usable channel identity. For TikTok IDs containing a slash, prefer the WATI conversation ID during rollout. If using a Channel:Id target, supply the raw platform ID, including any slash. The tool encodes it for the HTTP request. Inputs include page, page_size, and channel_phone_number; whatsapp_number is a legacy alias. Newest first; follow next_page.
wati_send_messageSends plain text through V3 to WhatsApp, Instagram, Messenger or TikTok. Supply target and message (up to 4,096 UTF-16 code units). Supports optional idempotency_key. See Messenger and TikTok sends for targets, credentials and reply windows.
wati_get_message_statusChecks WATI’s latest status for one WhatsApp, Instagram, Messenger or TikTok message. Supply target plus message_id or local_message_id. Prefer a WATI conversation ID; channel_phone_number is optional. The tool checks the newest page; use delivery webhooks when the message is no longer on that page.
wati_send_file_via_urlSends media through V3 to WhatsApp, Instagram, Messenger or TikTok. Supply target and public HTTPS file_url; caption and idempotency_key are optional. See Messenger and TikTok sends for media limits. Voice mode is unavailable.
wati_send_fileDirect upload is enabled for selected production workspaces. When listed, this tool uploads a WhatsApp or Instagram file. Provide target, file_name, mime_type and actual file_base64 bytes. MCP accepts images smaller than 5 MiB and other files smaller than 16,000,000 bytes. Confirm the exact attachment; file paths are not file contents.
wati_send_interactiveRequires target and type (buttons or list), plus matching button_message or list_message. Supports 1–3 reply buttons with text up to 20 characters, or 1–10 list rows across sections. Requires the WhatsApp 24-hour window.
wati_assign_operatorRequires conversation target; pass assignee_email for an operator. Omitting the email assigns the conversation to the bot.
wati_update_conversation_statusRequires target and new_status: open, solved, pending or block. This changes live conversation state.
wati_list_conversation_tagsLists tags in use with CDP usage counts. Inputs: start_date, end_date, timezone; default last 7 days, maximum date range 366 days, default timezone UTC. The accepted channel input does not filter the current cross-channel result.
wati_add_conversation_tagRequires target_conv and exact existing tag_name. Idempotently applies the tag; it does not create a new tag definition.
wati_remove_conversation_tagRequires target_conv and exact tag_name. Removing an unapplied tag is a successful no-op, reported as removed=false.

Do not use recent activity or bounded search results as an exact historical total. State the date range, pagination and any missing data when summarizing results.

Templates, campaigns and credits

ToolWhat it does and key inputs
wati_list_templatesLists WhatsApp templates and their names, language, category, status and body. Check that the chosen template is approved before sending. Inputs include page_number, page_size, channel and response_format.
wati_get_templateRequires template_id; returns full template structure and variable slots. Optional response_format. Discover IDs from the template list.
wati_send_template_dry_runPreviews an approved template_name with optional parameters, sample_recipients and channel. Substitutes variables without sending.
wati_send_templateSends one approved template. Requires whatsapp_number, template_name, broadcast_name; parameters is a flat variable map, with optional channel. Confirm recipient and variables first.
wati_send_templatesSends a template broadcast. Requires template_name, broadcast_name, recipients; optional channel. Each recipient contains phone_number and optional flat custom_params. Supports 1–10,000 recipients; review the full list before sending.
wati_get_template_performanceAggregates broadcast statistics for required template_id; optional date_from, date_to, channel. Returns zero totals when no matching broadcasts exist.
wati_list_campaignsLists broadcast campaigns using page_number, page_size, optional channel, date_from, date_to, response_format. Dates filter created/scheduled time; omitted dates default to the trailing 90 days.
wati_get_campaignRequires campaign_id; returns metadata and sent, delivered, read, replied and failed statistics. Optional response_format.
wati_retry_broadcast_failuresRequires broadcast_id. First use dry_run=true, review the returned failed-recipient snapshot, then send with its exact confirmation_token. Rejects a changed recipient set or payload; do not fabricate or reuse a token for another snapshot.
wati_get_credit_balanceReads account credit balances, currency and remaining free conversations. No business input required.
wati_estimate_send_costRequires template_id and nonempty contact_ids. Estimates cost and compares available credit; does not send or reserve a delivery outcome.

Related REST reference: campaign details, template details and cost estimate.

Segments

Custom Segments require an eligible Pro or Business plan. The MCP segment read/evaluation tools use the tenant-scoped CDP-backed API; they do not fall back to public V3 to bypass a plan rejection. Do not replace a rejected segment query with a contact scan, recent-conversation count or another metric.

ToolWhat it does and key inputs
wati_create_segmentRequires name and refresh_type (1 static, 2 dynamic). Dynamic segments require filter groups and cannot use contact_ids. Static segments require contact_ids or groups; when both are provided, contact_ids takes precedence. Also accepts description. Use WATI operator values such as equal (not Equals) in conditions. Member count can be pending immediately after creation; fetch the segment again for hit_count. Confirm the definition before saving.
wati_list_segmentsLists segment summaries and deletion metadata. Inputs: page, page_size, source, sort_field, deleted_only, query; source 1 means custom and 2 system.
wati_get_segmentRequires segment_id; reads its full filter definition and current member count.
wati_evaluate_segmentPreviews nonempty filter groups without saving; returns a total match count and paginated sample using page, page_size. Filter filter_type is 0 for a contact attribute or 1 for a profile signal. Use WATI operator values such as equal in each condition.
wati_list_segment_membersRequires segment_id; returns saved-segment contacts with page and page_size. Distinct from evaluating an unsaved filter.

Here, groups means segment filter groups, not WhatsApp group conversations. See Create Custom Segment for the related REST contract.

Channels and webhooks

ToolWhat it does and key inputs
wati_list_channelsLists connected channels with page_number, page_size, optional response_format. For Instagram, health_status is connected, disconnected or unknown. Older responses can omit the field. Treat missing or unknown health as unverified. Use the comment permission check before relying on comment access. A synthetic Default entry has an empty ID. Use the tool-specific channel name, ID or phone field; these are not interchangeable.
wati_get_webhook_event_typesLists event types available to the workspace. Call before selecting subscription events. No business input required.
wati_subscribeCreates a subscription with required phone_number (the sending channel), url and nonempty event_types. Confirm where customer data will be sent.
wati_list_webhooksLists subscriptions, URLs, statuses and event types. No business input required.
wati_get_webhookReads one subscription using required webhook_id.
wati_update_webhookRequires webhook_id and changes to url, event_types or status (Enabled / Disabled).
wati_delete_webhookDeletes required webhook_id; stops event delivery to that subscription.

Related REST reference: channels, webhook event types and webhook subscriptions.

Instagram posts and comments

Use the shared post and comment tools with channeltype: "instagram". Your workspace needs a connected Instagram account and the permissions for the action you want to perform.

Migrate from the legacy Instagram tools

The seven legacy MCP tool names below have been removed. Calls to those names return unknown tool (JSON-RPC -32602). Update saved tool calls and refresh your client's tools/list or reconnect to reload the tool schemas. This migration applies to MCP calls. Existing Instagram REST V3 calls keep their REST contract.

For every replacement, add channeltype: "instagram" and include one instagram object. Move only the fields shown in the last column into that object. For unread counts, pass "instagram": {}. Read the tool's decoded data from result, alongside channeltype, in the tool payload. For example, a concise list returns posts or comments under result.data and its next-page hint under result.next_page when present.

Removed toolReplacementKeep at the top levelMove into instagram
wati_instagram_list_postswati_list_postsOptional page_number, page_size, response_formatchannel, optional media_type (0 all, 1 feed, 2 reels). Omit channel to get account choices.
wati_instagram_get_postwati_get_postRequired post_id, optional response_formatpost_author_ig_id or channel to derive the author.
wati_instagram_list_commentswati_list_commentsRequired post_id, optional page_number, page_size, response_formatpost_author_ig_id or channel to derive the author. The concise response includes up to one level of replies.
wati_instagram_get_post_unread_countwati_get_post_unread_countRequired post_idNo fields. Pass {}. A zero count does not confirm that the post exists.
wati_instagram_check_permissionswati_check_permissionsNo operation-specific fieldschannel. Omit it to get account choices.
wati_instagram_reply_commentwati_reply_commentRequired comment_id and content, optional idempotency_keypost_author_ig_id or channel to derive the author. This publishes a public reply.
wati_instagram_send_private_replywati_send_private_replyRequired comment_id and user_id, optional idempotency_keychannel, required user_name and type, plus the corresponding text or template payload. If channel is omitted, the tool asks you to select one before sending. For type: "text", supply nonblank text of at most 1,000 UTF-16 code units.

For Instagram, check the selected account in accounts. Treat its comment scopes as verified only when permissionVerification is live and the permission result is granted. A missing or unknown verification value, or an empty account list, leaves access unverified. Messaging permissions require a separate check. Updated MCP servers can include a verification warning. Older versions can return a granted boolean without the verification field.

Example MCP calls

Each JSON block is the params object for tools/call. Replace the placeholders with returned values. Use the Instagram entry's id from wati_list_channels for <IG_CHANNEL_ID>. Copy postId and postAuthorIgId from the selected post. For a reply, copy commentId, userId and userName from the same comment. The commenter ID and username identify the recipient of a private reply.

List posts. In the concise response, follow result.next_page while result.has_more is true. Use the same paging fields for listing comments. Pages start at 1 and the maximum page size is 100.

{
  "name": "wati_list_posts",
  "arguments": {
    "channeltype": "instagram",
    "instagram": {"channel": "<IG_CHANNEL_ID>"},
    "page_number": 1,
    "page_size": 20,
    "response_format": "concise"
  }
}

Get a post. Use the returned post ID. An ordinary Instagram post or reel URL may not resolve as a post ID.

{
  "name": "wati_get_post",
  "arguments": {
    "channeltype": "instagram",
    "post_id": "<POST_ID>",
    "instagram": {"post_author_ig_id": "<POST_AUTHOR_IG_ID>"}
  }
}

List comments on the post.

{
  "name": "wati_list_comments",
  "arguments": {
    "channeltype": "instagram",
    "post_id": "<POST_ID>",
    "instagram": {"post_author_ig_id": "<POST_AUTHOR_IG_ID>"},
    "page_number": 1,
    "page_size": 20
  }
}

Get the unread comment count.

{
  "name": "wati_get_post_unread_count",
  "arguments": {
    "channeltype": "instagram",
    "post_id": "<POST_ID>",
    "instagram": {}
  }
}

Check reply permissions on the selected account.

{
  "name": "wati_check_permissions",
  "arguments": {
    "channeltype": "instagram",
    "instagram": {"channel": "<IG_CHANNEL_ID>"}
  }
}

The next two calls send real replies. Confirm the account, comment, reply type and exact text with the user first. For private replies, use an eligible comment and respect Instagram's reply window and one-private-reply limit.

Post a public reply. Read the comment thread again to verify the reply.

{
  "name": "wati_reply_comment",
  "arguments": {
    "channeltype": "instagram",
    "comment_id": "<COMMENT_ID>",
    "content": "Thanks for your question!",
    "idempotency_key": "<PUBLIC_REPLY_OPERATION_KEY>",
    "instagram": {"post_author_ig_id": "<POST_AUTHOR_IG_ID>"}
  }
}

Send a private reply. Check the private conversation in WATI Inbox for the send outcome.

{
  "name": "wati_send_private_reply",
  "arguments": {
    "channeltype": "instagram",
    "comment_id": "<COMMENT_ID>",
    "user_id": "<COMMENTER_ID>",
    "idempotency_key": "<PRIVATE_REPLY_OPERATION_KEY>",
    "instagram": {
      "channel": "<IG_CHANNEL_ID>",
      "user_name": "<COMMENTER_USERNAME>",
      "type": "text",
      "text": "Hi! Thanks for reaching out."
    }
  }
}

Use a unique idempotency key per intended reply. Reuse the key only for an identical replay. If you receive send_outcome_unknown, check the comment thread for a public reply or the private conversation for a private reply before retrying. Use a new key only after confirming the original reply did not go through.

See Instagram posts and private replies for the related REST API.

Chatbot and automation

On the hosted WATI profile, the automation service advertises available tools under wati_automation__. Use tools/list to obtain their exact names and input schemas for your workspace. Follow the returned workflow identifiers, validation results and confirmation steps. For example, when the rule validation tool is listed, its advertised name is wati_automation__automation_rule_validate. After validation, show the complete proposed rule and obtain explicit approval to save it. Save a new rule Off, read back the saved rule, then obtain separate approval before enabling it. An enabled rule can take effect immediately.

Automation reads and writes use the underlying service's permissions. Workspace binding and the tool's presence alone do not establish permission to save, publish or enable a rule.

ToolWhat it does and key inputs
wati_list_contact_attributesLists WATI contact attributes. Use wati_get_contact for a contact's stored values.

Additional tools by workspace

Use these only when listed in your session. Release, workspace features, role and connection permissions determine availability.

Tool namesUse
wati_find_toolWhen shown and no listed tool fits, asks WATI which capability is available for the requested task.
wati_get_post, wati_list_posts, wati_list_comments, wati_get_post_unread_count, wati_check_permissionsRead posts, comments, unread state and provider permissions. Select channeltype and its matching provider arguments. For TikTok, use the connected WATI ID in tiktok.channel. Pass tiktok.cursor from next_cursor when the result has more pages.
wati_list_comment_replies, wati_get_post_likes, wati_get_post_analyticsTikTok replies, post like counts and analytics. Select the connected TikTok channel and use the video or comment IDs returned by preceding reads. Page through replies using the cursor.
wati_public_comment, wati_reply_comment, wati_send_private_reply, wati_like_commentPost or reply to a comment, privately message a commenter, or like a TikTok comment where supported. Confirm the channel, recipient or comment and exact content. Follow the tool-specific idempotency_key and reconciliation guidance.
wati_list_calls, wati_get_call_recording, wati_get_call_transcript, wati_get_call_summary, wati_get_batch_call_recordings, wati_get_batch_call_transcripts, wati_get_batch_call_summariesRead WhatsApp call history and available recordings, transcripts or summaries. Use the returned call IDs. Treat recording links as sensitive and observe their expiry.
wati_connect_channel, wati_get_channel_connect_statusCreate an Instagram connection link for a person to complete, then poll the returned attempt ID. Confirm the destination workspace before creating a link.
wati_meta_ad_accounts_list, wati_meta_ad_accounts_connect, wati_meta_ad_accounts_connect_statusAvailable to enabled production workspaces. Read Meta ad account bindings or create and check a Facebook Login connection attempt. Ask the person to open the returned link and finish authorization.
wati_list_ads, wati_get_ad, wati_get_ads_analytics, wati_sync_ads, wati_instagram_list_ads, wati_instagram_get_ad, wati_instagram_sync_ads, wati_get_instagram_ads_analyticsInstagram Ads access is restricted to enabled production workspaces. A listed tool can still return a disabled-for-account error when called. Read synced Instagram ads or aggregate analytics. Sync pulls data from Meta and may continue in the background; check the ad list after an in-progress result. The Instagram-named aliases use the same tools.
wati_get_social_addon, wati_preview_social_addon_changeRead Social entitlement and account quotas for Instagram, Messenger and TikTok, or preview the quota impact of a plan change. Use Billing for purchases and cancellations.
wati_get_webhook_event_types_v2, wati_list_webhooks_v2, wati_get_webhook_v2, wati_subscribe_v2, wati_update_webhook_v2These multichannel tools are in pre-production rollout. Production workspaces currently use the legacy WhatsApp webhook tools. Use them only when they appear in your session’s tool list. Discover available events before subscribing and confirm the target and event list before writing. Use the legacy webhook tools for WhatsApp when the multichannel tools are unavailable.
wati_get_template_configs, wati_get_template_creation_guide, wati_create_template, wati_delete_templateWhen enabled, get current WhatsApp template rules, create and submit a template for approval, or delete a selected template. Review the exact template and confirm before creation or deletion.
wati_prepare_broadcastPrepares a review card for a broadcast to 1–20 explicit contact IDs. Use the returned preview to review recipients and content before an actual send.
wati_get_recommendation, wati_get_recommendation_configs, wati_get_recommendation_template, wati_get_recommendation_template_edit_action, wati_create_recommendation_template, wati_update_recommendation_templateThese candidate-template tools are currently in pre-production rollout. In an enabled session, read a Campaigns recommendation and its candidate and check whether editing calls for creation or replacement. Confirm the exact content before saving. Saving a candidate does not launch a campaign.
wati_get_inbox_kpis, wati_get_inbox_status_over_time, wati_get_inbox_chat_duration, wati_get_inbox_heatmap, wati_get_inbox_message_stats, wati_get_inbox_operator_performanceKPI tiles and the detailed report tools have separate rollout controls. Detailed reports are limited to eligible production workspaces. Where the regional server returns it, campaign_counts in message stats counts distinct campaigns sent and replied to over the covered interval. Report the interval for partial coverage. Missing counts or NO_COVERAGE mean data is unavailable. Match the supported date, timezone and scope filters to the dashboard before comparing totals.
wati_get_shopify_overview, wati_get_shopify_triggers, wati_get_shopify_trigger_performanceRead reports for a connected Shopify store. Use the returned store and trigger identifiers and keep the report time range fixed for comparisons.
wati_get_business_impact_card_metricsRead source metrics and the comparison for the Business Impact report card selected in the current conversation context.

TikTok posts and comments

Use the connected channel's WATI ID from wati_list_channels in tiktok.channel. Use the TikTok post and comment IDs returned by reads as strings. Production access is limited to selected workspaces. The tools require access to the workspace’s TikTok post and comment features and the selected channel.

Read a thread and rank posts

Call wati_list_comments for the first-level comments on a post.

{
  "channeltype": "tiktok",
  "post_id": "7450123456789012345",
  "tiktok": { "channel": "507f1f77bcf86cd799439011" },
  "page_size": 10
}

Pass a first-level comment ID to wati_list_comment_replies to read its public replies.

{
  "channeltype": "tiktok",
  "comment_id": "7450123456789012346",
  "tiktok": {
    "channel": "507f1f77bcf86cd799439011",
    "post_id": "7450123456789012345"
  },
  "page_size": 10
}

When result.has_more is true, copy result.next_cursor unchanged into tiktok.cursor. For example, if the previous reply page returned "10", request the next page with the same post and parent comment.

{
  "channeltype": "tiktok",
  "comment_id": "7450123456789012346",
  "tiktok": {
    "channel": "507f1f77bcf86cd799439011",
    "post_id": "7450123456789012345",
    "cursor": "10"
  },
  "page_size": 10
}

The same cursor rule applies to wati_list_comments and wati_list_posts. Use a page_size from 1 to 10, default 10. Replies hidden or deleted by TikTok are excluded from the thread results.

To rank posts by unread comments and replies, call wati_list_posts with tiktok.sort_by set to unread_count.

{
  "channeltype": "tiktok",
  "tiktok": {
    "channel": "507f1f77bcf86cd799439011",
    "sort_by": "unread_count"
  },
  "page_size": 10
}

The ranking includes posts with positive unread counts across the selected account. It can be incomplete while result.syncStatus is any value other than ready. The cursor is a live offset, so the order can change between pages as comments arrive or read state changes. Start again without a cursor to refresh the ranking.

Post a comment or send a reply

Confirm the target and exact text before calling a write tool. Generate a new nonzero UUID for each distinct action and reuse that same idempotency_key for retries of the identical action. The three UUIDs below are examples. If the outcome is unknown, check the post, thread or Inbox as appropriate before retrying.

Use wati_public_comment to publish a first-level comment on your own post.

{
  "channeltype": "tiktok",
  "post_id": "7450123456789012345",
  "content": "Thanks for watching!",
  "idempotency_key": "c3b1cc14-9a9c-4f86-8db2-bb06d4ea6b9c",
  "tiktok": { "channel": "507f1f77bcf86cd799439011" }
}

Use wati_reply_comment for a public reply to a first-level comment. Supply the top-level parent ID if the target is already a reply. Both public writes take up to 1,200 Unicode characters. TikTok’s acknowledgement confirms acceptance, with visibility subject to moderation.

{
  "channeltype": "tiktok",
  "comment_id": "7450123456789012346",
  "content": "Yes, it is available now.",
  "idempotency_key": "704770d0-e366-4b7b-ad49-27d85c246565",
  "tiktok": {
    "channel": "507f1f77bcf86cd799439011",
    "post_id": "7450123456789012345"
  }
}

Use wati_send_private_reply to message the commenter with up to 6,000 Unicode characters in tiktok.text. TikTok resolves the recipient from the comment, so omit user_id. The send uses an eligible existing conversation or TikTok’s Comment-to-Message capability. SENT_PENDING_LINK indicates provider acceptance with Inbox linking still pending. Check the Inbox for linking progress before considering another send.

{
  "channeltype": "tiktok",
  "comment_id": "7450123456789012346",
  "idempotency_key": "53ac802f-a433-43d7-869c-a8d214babfa7",
  "tiktok": {
    "channel": "507f1f77bcf86cd799439011",
    "post_id": "7450123456789012345",
    "text": "Thanks for your comment. How can we help?"
  }
}

Capability feedback

ToolWhat it does and key inputs
wati_report_feedbackRecords a missing capability using question and description. It does not implement the missing action or send a customer message. Report a distinct gap once; authentication, not-found and rate-limit errors are not missing-capability reports.

Example workflows

Read a conversation before replying

  1. Confirm the active workspace.
  2. Find the contact or recent conversation; read its messages using the returned identifier.
  3. Confirm the channel, recipient, exact reply and whether the required session window is active.
  4. Send the session message, or use an approved WhatsApp template outside the window.
  5. Report acceptance separately from delivery; check status or webhooks where available.

Send an approved template

  1. List templates and inspect the chosen template's variable slots.
  2. Preview it with wati_send_template_dry_run and, when needed, estimate cost.
  3. Show the template, exact recipients and substituted values for confirmation.
  4. Use the single-recipient or broadcast send tool, then review delivery outcomes.

Retry failed broadcast recipients

  1. Read the campaign and run wati_retry_broadcast_failures with dry_run=true.
  2. Review the complete failed-recipient snapshot with the user.
  3. Send only with that preview's exact confirmation_token. If the snapshot changes, preview and confirm again.

Troubleshooting

  • 401 or a sign-in prompt: complete OAuth for the selected region and reconnect. Never paste a token into the server URL.
  • A tool is absent: refresh your client's tool list. Check the account connection and feature availability; a linked Astra account or additional access may be required. Absence is not permission to invoke a guessed tool.
  • Wrong workspace or an expired workspace session: use the workspace tools to inspect state and switch explicitly. Complete any returned browser sign-in, then recheck the active workspace.
  • Plan or permission rejection: check the applicable plan, role, API/channel permission or feature availability. Do not substitute another metric or route as a bypass.
  • A message is accepted but not yet visible: allow asynchronous processing and inspect status/webhooks; do not automatically resend.
  • Missing historical results: inspect the date range and next-page hints. Recent-activity and bounded-search tools are not complete historical exports.
  • An Instagram reply is rejected: verify channel permissions and use identifiers returned for the same post/comment; a business account ID is not the commenter's ID.

For direct REST integrations, see the API introduction. The MCP connection uses OAuth and the tool schemas above; the REST API has its own authentication and request contracts.

Identifier formats and 404 recovery

Before identifier-based WATI tool calls, read BSUID and target formats. Use the identifier type accepted by the specific tool/API; a contact ID, conversation ID and ticket ID are not interchangeable. For REST conversation history, an object ID is resolved as a conversation ID, not a contact ID. Use the conversation's id from a relevant conversation result, preserve BSUID/channel case and let your client encode the target as one path segment. On 404, check workspace/region, target format and resource existence before retrying. A wrapper's fallback behavior does not expand the REST endpoint's accepted identifiers.