Skip to main content
Glama

Turn WhatsApp orders on or off

configure_whatsapp_orders
Idempotent

Let buyers send their cart to the store's WhatsApp from the cart and checkout ("Order on WhatsApp"), or stop it. Works alongside card payments and cash on delivery: buyers choose. Turning it off is final until turned on again; the store keeps the number. Needs a WhatsApp number with country code when none is saved on the site.

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": {
      "site_id": "<site_id>",
      "enabled": "<enabled>"
    },
    "name": "configure_whatsapp_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneNoThe WhatsApp number orders go to, exactly as the owner gave it, with its country code. Omit to keep the saved number, or use the site's own WhatsApp number.
enabledYestrue = buyers can tap Order on WhatsApp in the cart and checkout and send the store their order; false = stop offering it (final: the cart never falls back to it)
site_idYesThe site, from list_sites
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish non-read-only, idempotent, non-destructive behavior. The description adds real context beyond them: disabling is final in the sense that the cart never falls back to WhatsApp, and the store retains the saved number so re-enabling doesn't require re-entry. The phrase 'final until turned on again' is slightly self-cancelling but is clarified by the schema's 'the cart never falls back to it'.

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 the primary effect, then the coexistence caveat, then the statefulness and phone prerequisite. The quoted button label and the 'buyers choose' clause are small overhead but help ground the feature; nothing is seriously wasted.

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-required-parameter toggle with no output schema and annotations carrying safety, the description covers effect, side effects of disabling, persistence of the phone number, and the prerequisite for supplying one. An agent can call it correctly and warn the user about re-enabling without further information.

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%, so both required parameters and the optional phone field are already fully documented. The description reinforces the phone requirement (with country code, only when none is saved) but adds no syntax, format, or precedence detail beyond the schema. 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 concrete verb and resource: enable or stop 'Order on WhatsApp', letting buyers send their cart to the store's WhatsApp from cart and checkout. It also places itself relative to siblings by noting it coexists with card payments and cash on delivery rather than replacing them.

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?

Clear on both directions (turn on to offer the button, stop to remove it) and gives a prerequisite: a WhatsApp number with country code is required when none is saved. It does not explicitly route agents to configure_cash_on_delivery or configure_payments for the other payment methods, so the alternative-selection guidance is implicit.

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