Skip to main content
Glama

Connect WhatsApp

connect_whatsapp
Idempotent

Connect the bot to the owner's own WhatsApp line so it answers WhatsApp messages too (paid plans). The owner gets a line at Whapi.Cloud (https://botsai.app/whatsapp-ai-bot-for-business/ has the sign-up link and steps), links their phone there by scanning a QR code, and gives you the channel's API token. Use a business number, not a personal one. The bot only replies to people who write first.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bot_id": "<bot_id>",
      "token": "<token>"
    },
    "name": "connect_whatsapp"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe Whapi.Cloud channel API token (from the channel page in the Whapi dashboard).
bot_idYesThe bot id, like b_AbC123xyz789 (from create_bot or list_my_bots).
edit_keyNoThe bot's edit key, like bsk_… (from create_bot). Not needed when the user is signed in and the bot is in their account. Keep it private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag openWorldHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds meaningful context beyond that: an external third-party dependency (Whapi.Cloud), a plan gating requirement, and the behavioral limit that the bot only replies to inbound writers and never initiates. It does not say what happens to any existing channel binding on a repeated call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with what the tool does before the setup steps. The onboarding sequence and QR mention are useful for a connection tool, but the embedded help-page URL is borderline promotional and could be trimmed without loss.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an external-integration setup tool with no output schema, the description covers prerequisites, credential source, and ongoing behavior, which is what an agent needs to instruct a user. It is thin only on what a successful or failed connection returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and each parameter carries its own description, so the schema does the heavy lifting. The description adds only indirect meaning by explaining where the token comes from ('gives you the channel's API token'), and it never mentions edit_key at all. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Connect the bot to the owner's own WhatsApp line') plus the outcome ('so it answers WhatsApp messages too'). The channel is named concretely, which lets an agent separate it from connect_telegram without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real preconditions: paid plan required, owner must sign up at Whapi.Cloud, scan a QR code, and supply the channel API token. It advises using a business number rather than a personal one. It stops short of naming the alternative channel connector explicitly, so the when-not path is left to inference from the channel name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources