Skip to main content
Glama

wait_for_email_code

Wait until an email code arrives. The code is consumed and is not returned. Use fill_email_code to type it into the page.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for_email_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNo
approval_idNo
identity_idNoIdentity to use. Omit when the account has exactly one identity.
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / approval_id
      Added value: +{
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does surface one critical trait: the code is consumed and never returned, so an agent knows not to attempt to read it back. It omits other important behavior: what happens at timeout (the timeout_seconds cap of 120), whether the code is lost on timeout, and whether the call blocks.

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 short sentences, zero filler, with the crucial consumption caveat placed before the follow-up instruction. Nothing could be trimmed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The blocking/waiting nature and consumption semantics are covered, but timeout behavior, failure modes, and what the tool returns on success (no output schema exists) are left unexplained, and three of four parameters are undocumented. For a waiting tool with side effects, that leaves meaningful gaps.

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

Parameters2/5

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

Schema description coverage is only 25% (just identity_id), leaving site, approval_id, and timeout_seconds undocumented in both schema and description. The description mentions no parameters at all, so it adds no meaning beyond the structured field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action and resource (waiting for an email code to arrive) and implicitly differentiates itself from get_email_code by stating the code is not returned. It could go one step further and name the sibling it replaces, but an agent can already tell what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a downstream workflow hint ("Use fill_email_code to type it into the page"), which tells the agent what to do after waiting. However, it never states when to pick this over get_email_code or wait_for_approval/wait_for_login, nor any precondition such as an email having been triggered.

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