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); on timeout, check that the app sent to the exact address and call again.

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

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: immediate return for mail already delivered, the bounded wait window, and what to do after a timeout.

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 sentences, zero padding, and the core behavior is front-loaded before the timeout remediation. Every clause carries information an agent needs.

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?

Output schema exists, so return values need no explanation, and annotations cover safety. The only real gap is the implicit prerequisite of having a test inbox address and how this relates to the sibling read tools.

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% and the description only restates the timeout default (30) and cap (60) already documented in the schema. No additional syntax or meaning is supplied for 'to' or 'since', so the baseline 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 (wait for) and resource (email in a test inbox), plus what is returned ('the one-time code and links extracted'). The waiting semantics distinguish it from get_test_email and list_test_emails without needing to name them.

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 clear when-to-use context: already-arrived mail returns at once, and the wait is bounded by timeout. It also gives remediation on timeout, though it never names a sibling alternative or states prerequisites like first obtaining the inbox address via get_test_inbox_address.

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.