Skip to main content
Glama

Try a chatbot on WhatsApp

get_whatsapp_test
Idempotent

Get the ChatbotGen test number, a WhatsApp link with this chatbot's code prefilled, and a QR code. The QR opens a chat with our shared test number; it does not connect the customer's own number. The first message joins this chatbot, then the person can send questions from their phone. Use after selecting a chatbot and offer it as a way to try the bot. The sandbox may be unavailable; never invent a test number or code.

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": {
      "chatbot_id": "<chatbot_id>"
    },
    "name": "get_whatsapp_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoLanguage for the prefilled greeting on the shared number. Defaults to English.
chatbot_idYesThe token or chatbot_id returned by create_chatbot.

Output Schema

NameRequiredDescriptionDefault
codeYes
linkYes
modeYes
nameYes
noteYes
phoneYes
qr_svgYes
chat_urlYes
keep_urlYes
chatbot_idYes
keep_labelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by clarifying that the QR opens a chat with the shared test number rather than the customer's own number, that the first message is what joins the chatbot, and that the sandbox may be unavailable. The instruction never to invent a test number or code adds a strong anti-hallucination guard for an agent that may otherwise fabricate a result.

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?

Front-loads what the tool returns, then the caveats about the shared number and unavailability, then the usage context. Slightly verbose in places ('the person can send questions from their phone') but no sentence is wasteful enough to cut for clarity.

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

Completeness5/5

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

For a two-parameter tool with an output schema, the definition covers the return artifacts, the sandbox semantics, the unavailability failure mode, and the misuse risk. Nothing an agent needs to invoke or narrate the result correctly is missing.

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%, with the chatbot_id description pointing at create_chatbot and the language enum documenting the greeting language. The description only indirectly explains that the code is this chatbot's identifier, so it neither compensates for nor undermines the already-complete schema.

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

Purpose4/5

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

Names a specific verb and three concrete artifacts (test number, prefilled WhatsApp link, QR code) and explains that the first message joins the chatbot. It does not name the sibling test_chatbot, so the agent must infer the boundary between trying the real bot versus this sandbox number.

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?

'Use after selecting a chatbot and offer it as a way to try the bot' gives a clear trigger and the ordering precondition. Exclusions are absent, e.g. no statement of when to prefer test_chatbot instead, so the agent must still infer which try-out path applies.

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