Skip to main content
Glama

Send a Verification Code to a Human's Mobile

requestAnchorCode

Send a one-time code by SMS to a human's mobile phone, to verify that a real person stands behind this workspace. This is what gives the workspace its free calling capacity. The code goes to the PHONE, not to you. You then need to ask that person what the code says and pass it to verifyAnchorCode.

USE WHEN:
- You have just called registerWorkspace and the workspace has no capacity yet
- A person has agreed to be the accountable human for this workspace and has given you their mobile number

THE HUMAN'S PART:
Before calling this, tell the person that a text message is about to arrive and that you will need them to read the code back to you. Ask for the number in international format with the country code, for example +447700900123 or +12025550123.

ARGUMENTS:
- phoneNumber: the mobile number in E.164 format (a plus sign, country code, then digits, no spaces). Must be a MOBILE in the United Kingdom, Guernsey, Jersey, the Isle of Man or the United States. Landlines cannot receive the code.

RESPONSE:
- 202 with sent: true. The code is on its way. Now ask the person for it and call verifyAnchorCode with the same phoneNumber.

WHEN IT IS REFUSED:
- reason country_not_supported: only the countries above can be used
- reason not_a_mobile: the number is a landline or similar
- reason unparseable: check the format
- reason anchor_limit_reached (403): this workspace already holds the maximum number of verified humans. Waiting will not help. One of them has to be replaced first, which a person does from workspace settings. Note this is not returned when you re-request a code for a number this workspace already holds: that resend is always allowed, and it is what to do if a verifyAnchorCode retry told you the code had expired.
- reason already_anchored (409): that number is already the verified human for a different workspace. A number can stand behind one workspace at a time.
- 429 with retryAfterSeconds: too many codes this hour. Wait; do not resend in a loop. Each request sends a real text message to a real person.
- 403: this workspace has requested too many codes in its lifetime and will not be sent another.

RELATED TOOLS:
- verifyAnchorCode: submit the code the person read to you
- registerWorkspace: if you have no key yet

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": {
      "phoneNumber": "<phoneNumber>"
    },
    "name": "requestAnchorCode"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneNumberYesThe mobile number to send the code to, in E.164 format, for example +447700900123. UK, Channel Islands, Isle of Man or US mobiles only.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only mark this as non-read-only, open-world and non-idempotent; the description goes far beyond by enumerating the failure surface: country_not_supported, not_a_mobile, unparseable, anchor_limit_reached (403, non-transient, with the resend exception spelled out), already_anchored (409), 429 with retryAfterSeconds, and a lifetime 403. It also warns that each request sends a real SMS to a real person, which is the key operational cost an agent must weigh.

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?

Strongly front-loaded: the first sentence says what it does and to whom, then labelled sections for usage, arguments, response and refusal reasons make it scannable. It is long, and a few points repeat (the 'code goes to the phone, not you' idea appears in the opening and again under RESPONSE), but the length is largely justified by the dense error taxonomy.

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?

Although an output schema exists, the description still supplies the concrete success contract (202 with sent: true) and the full refusal taxonomy with remediation, which is exactly what an agent needs to recover from failure. Combined with the human-interaction protocol and next-step tool, nothing material is missing for a one-parameter, side-effecting, real-world-action tool.

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% and the schema already states E.164 format, an example, and the UK/Channel Islands/Isle of Man/US restriction, so the description largely restates it. It does add a small amount of meaning: 'no spaces', 'Must be a MOBILE', and the reason landlines fail. Useful but marginal against a fully documented single parameter, so baseline 3.

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 ('Send a one-time code by SMS to a human's mobile phone') plus the downstream purpose (workspace verification / free calling capacity). It explicitly separates itself from verifyAnchorCode by saying 'The code goes to the PHONE, not to you. You then need to ask that person what the code says and pass it to verifyAnchorCode.' An agent can distinguish this from its sibling without opening either 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?

A dedicated USE WHEN block names two concrete preconditions (just called registerWorkspace with no capacity; a person agreed to be accountable and supplied a number), and RELATED TOOLS points to verifyAnchorCode for the next step and registerWorkspace for the prerequisite. It also gives the human-facing script ('tell the person a text is about to arrive'), which is guidance an agent would otherwise have to invent.

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.