Skip to main content
Glama

set_whatsapp_provider

DestructiveIdempotent

Choose which way WhatsApp messages leave this tenant: 'beeper' (through the local bridge, the default), 'twilio' (through the connected AI-Call-Bot) or 'twilio_direct' (WhatsApp Business through the tenant's own Twilio account; needs a Meta-approved sender). Affects send_whatsapp only — the timeline, list_lead_messages and find_lead_by_channel do not know the difference. Call without provider to read the current setting.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_whatsapp_provider"
  }
}

Input Schema

NameRequiredDescriptionDefault
senderNotwilio_direct only: the Meta-approved WhatsApp sender in E.164 (e.g. +41791234567). Stored on the Twilio connection. Can be set on its own, without changing the provider.
providerNobeeper | twilio | twilio_direct. Omit to only read the current value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description adds genuinely useful context the annotations lack: which value is the default, and that twilio_direct requires a Meta-approved sender. However, it never explains what is destructive about this call — whether switching providers breaks in-flight sends, whether the setting is reversible, or why the annotation marks it destructive. For a mutation flagged destructive with no output schema, that is a real gap.

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 dense sentences with the scope statement front-loaded and no filler; the sibling carve-out is the only part that could be trimmed, but it prevents a plausible misassumption about timeline behavior. Slightly long as a single unbroken block, but nothing is wasted.

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 a two-parameter configuration mutation with full schema coverage and no output schema, the description covers defaults, per-value requirements, and blast radius. The remaining hole is post-call behavior — what happens to pending messages or whether the previous provider setting is lost — which matters given the destructiveHint.

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

Parameters4/5

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

Schema coverage is 100%, so both parameters are already documented, but the description still adds semantic value by explaining what each provider value routes through and by revealing that 'beeper' is the default, which the schema does not state. It also reinforces that sender can be set independently of provider.

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?

The description opens with a concrete verb and resource ('Choose which way WhatsApp messages leave this tenant') and then defines each of the three accepted values in terms of the actual routing path. An agent can distinguish this from send_whatsapp or connect_whatsapp_inbound without opening the schema.

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

Usage Guidelines5/5

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

It states explicitly what the setting governs ('Affects send_whatsapp only'), names the siblings that are unaffected (timeline, list_lead_messages, find_lead_by_channel), and documents the read-only usage path ('Call without provider to read the current setting'). That is when-to-use, scope-of-effect, and a read alternative in one paragraph.

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.