Skip to main content
Glama

Send a verification code

send_otp
Destructive

Generate a 6-digit code, send it over WhatsApp and return it. Returning the code is deliberate: verify it yourself, or hand it back to check_otp and keep nothing. Codes expire in 5 minutes by default and one number can only be sent a new code once a minute. Counts as one message.

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": {
      "to": "<to>"
    },
    "name": "send_otp"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesRecipient: a phone number in international format (+5511988887777) or a WhatsApp address (5511988887777@s.whatsapp.net, an @lid contact, or a @g.us group).
fromNoWhich of your WhatsApp numbers sends this: its id or its phone number. Optional: with a single connected number it is resolved for you.
templateNoMessage body. Must contain `{code}`; `{minutes}` expands to the expiry. Default: “{code} is your verification code. It expires in {minutes} minutes.”
expiresInSecondsNoHow long the code stays valid. Default 300 (5 minutes).

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 flag destructiveHint=true and openWorldHint=true, but the description adds real behavior beyond them: the tool deliberately returns the code, codes expire in 5 minutes by default, and each number is rate-limited to one new code per minute. It also discloses the message-count/billing side effect, which is exactly the kind of cost signal an agent needs before calling a write tool.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the core action, followed by the return-value rationale and the constraints. No filler, and the non-obvious warning (the code is returned on purpose) comes before the operational limits.

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 4-parameter write tool with no output schema, the description covers the action, the return value, expiry defaults, rate limiting, and billing impact. An agent has everything needed to call it correctly and to know what to do with the result.

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 `to`, `from`, `template`, and `expiresInSeconds` are already fully documented, including the `{code}` and `{minutes}` placeholders. The description restates the 5-minute default and the rate limit rather than adding new per-parameter meaning, so the baseline of 3 applies.

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: generate a 6-digit code, send it over WhatsApp, and return it. It also distinguishes itself from the sibling check_otp by naming it as the hand-off point, so an agent can tell the two apart without opening a 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 concrete operational context: one send per number per minute, 5-minute default expiry, and 'counts as one message' (a billing/quota cue). It says what to do with the returned code (verify yourself or pass to check_otp) but does not state when to prefer send_otp over a plain send_message for non-verification messages.

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