Skip to main content
Glama

verify_email_code

Use this after create_invoice or get_invoice returns verification_required. Arguments: { challenge_id, code }. On success returns a verification_token. Retry the same call with the same arguments plus that verification_token passed in its verification_token field. The token is reusable for ~30 min, so thread the same one into every subsequent create_invoice for the same sender email until it expires. Only ever call this with a code the user gave you: attempts are capped and the fifth wrong code revokes the challenge, after which (or once it expires after 15 minutes) no code works. verification_revoked means exactly that, so call the tool that sent the code (create_invoice or get_invoice) again to send the user a new code, never retry this one; on the hosted endpoint such a challenge reports verification_invalid instead, so after five failed codes do the same. A rate_limited error means stop and tell them to wait, not retry.

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": {
      "challenge_id": "<challenge_id>",
      "code": "<code>"
    },
    "name": "verify_email_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe 8-character code copied from the verification email body: uppercase letters and digits from the confusable-free alphabet {23456789ABCDEFGHJKMNPQRSTVWXYZ}, so never 0, 1, I, L, O or U. Case, spaces and hyphens do not matter. Check the user's paste against that alphabet before calling: a malformed code costs one of the few attempts the challenge allows.
challenge_idYesThe opaque challenge id surfaced by the previous `create_invoice` `verification_required` error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / code / description
      Previous value: -"The 6-character code copied from the verification email body. Drawn from the confusable-free alphabet {2,3,4,5,6,7,8,9}. Check the user's paste against that alphabet before calling — a malformed code costs one of the few attempts the challenge allows."New value: +"The 8-character code copied from the verification email body: uppercase letters and digits from the confusable-free alphabet {23456789ABCDEFGHJKMNPQRSTVWXYZ}, so never 0, 1, I, L, O or U. Case, spaces and hyphens do not matter. Check the user's paste against that alphabet before calling: a malformed code costs one of the few attempts the challenge allows."
  2. Changed1 schema field changed
    • changedInput schema / properties / code / description
      Previous value: -"The 6-character code copied from the verification email body. Drawn from the confusable-free alphabet {2,3,4,5,6,7,8,9}."New value: +"The 6-character code copied from the verification email body. Drawn from the confusable-free alphabet {2,3,4,5,6,7,8,9}. Check the user's paste against that alphabet before calling — a malformed code costs one of the few attempts the challenge allows."
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are provided, and the description carries the full load: attempt caps, the fifth wrong code revoking the challenge, the 15-minute challenge expiry, the ~30-minute reusability of the returned token, error-code semantics, and the distinction between revoked and invalid on hosted endpoints. This is about as complete a behavioral picture as a mutation-ish auth tool can give.

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-loaded with the trigger condition, then flows through success, retry, token lifetime, and error branches in a logical order with no filler. It is dense and long-ish, but nearly every clause carries operational consequences, so the length is earned rather than padded.

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?

With no annotations and no output schema, the description supplies the return contract (verification_token), the multi-call protocol, and the failure taxonomy. Nothing an agent needs to invoke this correctly under error conditions is missing.

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

Parameters5/5

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

Schema coverage is already 100%, yet the description adds the cross-call semantics the schema cannot express: the retry reuses the same arguments plus a verification_token field that is not itself in the schema, and that token must be threaded into subsequent create_invoice calls. That is meaning well beyond the structured fields.

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 action (verify the emailed code) and pins the triggering condition precisely: use after create_invoice or get_invoice returns verification_required. That distinguishes it cleanly from every sibling without needing to open any 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?

Explicit about when to call, when not to call, and what to do instead: on verification_revoked or repeated verification_invalid, call the tool that sent the code rather than retrying this one; on rate_limited, stop and tell the user to wait. It even scopes the instruction to only call with a user-supplied code.

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.