Skip to main content
Glama

Send a test message

flow_send_test

Sends one live template from its sender to up to 10 numbers or a contact group of at most 10, as a campaign step would send it: real messages, charged like campaign messages, never counted in a campaign's results. A contact gets its own fields filled in (and, on a marketing test, an opt-out link); any other number gets the fallbacks. Until the company is verified, a test reaches only the user's own number, within a daily allowance. When the user asks for a test to themselves, pass toMe: it sends to the number on their profile; never ask them for it. Draft templates are tested in the portal.

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": {
      "channel": "<channel>",
      "senderId": "<senderId>",
      "templateId": "<templateId>"
    },
    "name": "flow_send_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
toMeNoSend to the signed-in user's own number, the one on their profile
brandIdNoThe id of the brand this change is for: the active brand (flow_whoami). Required when the connection covers several brands; the change is refused when another brand is active.
channelYes
groupIdNoSend to this group's members instead (ids from flow_list_groups)
senderIdYesFrom flow_list_senders
templateIdYesA live template of that sender, from flow_list_templates
messageTypeNoThe template's own message type if left out
phoneNumbersNo
whatsappNumberIdNoWhatsApp only: the sender's number that sends; the first that can, if left out

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false and destructiveHint=false but say nothing about cost or side effects; the description fills that gap by stating the messages are real, 'charged like campaign messages' and excluded from campaign results. It further discloses personalization behavior (contact fields filled in, opt-out link on marketing tests, fallbacks for other numbers) and the daily allowance limit, which is exactly the behavior an agent needs before spending the user's money.

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?

Four sentences, front-loaded with the core action and cost implication before the conditional details. It is dense but nearly every clause carries operative information; the portal-drafts sentence could arguably be trimmed but it prevents a misuse.

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 9-parameter, non-idempotent tool with no output schema, the description covers cost, delivery limits, verification restrictions, personalization behavior and draft exclusion. What is missing is only what a caller would do with the response after sending (e.g., result or error shape), which the absence of an output schema leaves unaddressed.

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?

With 78% schema coverage the schema already documents most parameters, yet the description adds real meaning beyond it: toMe targets the number on the user's profile and must not be asked for, group recipients get their own fields filled while other numbers get fallbacks. It leaves brandId and messageType defaulting to the schema, so a 4 rather than 5.

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 ('Sends one live template from its sender') plus precise scope: up to 10 numbers or one group of at most 10. It also disambiguates from a real campaign send by noting it behaves 'as a campaign step would send it' yet is 'never counted in a campaign's results', so an agent knows exactly which capability this is.

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 concrete routing guidance: when the user asks for a test to themselves, pass toMe and 'never ask them for it', and draft templates must be tested in the portal instead. It also states the verification precondition (only the user's own number until the company is verified). It stops short of naming a sibling tool as the alternative for the draft or full-campaign cases, so not a full 5.

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