Skip to main content
Glama

Wait for a test email

wait_for_test_email
Read-onlyIdempotent

Wait for an email to a test inbox address and return it, with the one-time code and links extracted. An email that already arrived is returned at once. Waits up to timeout seconds (default 30, at most 60).

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": "wait_for_test_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe exact test address the app sent to
sinceNoOnly emails received at or after this time (ISO 8601)
timeoutNoSeconds to wait, at most 60 (default 30)

Output Schema

NameRequiredDescriptionDefault
emailYesThe test email

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the bar is lower; the description still adds the non-obvious trait that the call blocks for up to timeout seconds and short-circuits if the mail is already there, which is the key latency behavior an agent must plan around. It also discloses the extraction of codes and links, useful context beyond the annotations.

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, front-loaded with the primary action and result, then the already-arrived shortcut, then the timeout bound. No filler or redundancy.

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?

An output schema exists, so return values needn't be spelled out, and the blocking/timeout behavior plus immediate-return case are covered. The only real gap against a crowded sibling set (get_test_email, wait_for_mailbox_message, list_test_emails) is the absence of routing guidance.

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 description coverage is 100%, so the schema already documents 'to', 'since', and 'timeout'. The description only restates the timeout default (30) and ceiling (60), which the schema also contains, and adds nothing about 'since' semantics or what 'exact test address' means in practice. Baseline 3 applies.

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?

States a specific verb and resource ('Wait for an email to a test inbox address and return it') plus the value-add of extracting the one-time code and links. It distinguishes itself from a plain fetch by noting that an already-arrived email 'is returned at once', but it never names the sibling (e.g. get_test_email) that the non-waiting agent should use instead.

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?

Usage is implied rather than stated: the 'already arrived is returned at once' sentence hints this is a poll-or-fetch hybrid, but there is no explicit when-to-use/when-not guidance and no named alternative among the many sibling email tools (wait_for_mailbox_message, get_test_email, list_test_emails).

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.