Skip to main content
Glama

tempmo

Wait for an email

wait_for_email
Read-only

Wait (long-poll) until an email arrives in the inbox and return it in full, including extracted.code (one-time code) and extracted.verification_link. Returns immediately if a matching email is already there. To wait for the next one, pass after = the previous email's received_at.

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": {
      "address": "<address>"
    },
    "name": "wait_for_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoOnly return an email received after this millisecond timestamp (default 0 = any email still in the inbox).
addressYesA tempmo inbox address, e.g. k3x9q7m2ab@tempmo.com
timeout_secondsNoHow long to wait (default 30, max 50). Call again if it times out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds the genuinely non-obvious behavior that this call blocks until an email arrives. It also discloses the immediate-return fast path and what the returned content contains (one-time code, verification link). It does not say what the tool returns when the wait expires, which is the main remaining behavioral unknown.

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, each carrying distinct information: what it does, the immediate-return case, and the paging idiom. The behavior is front-loaded in the first clause, with no filler or repetition of the title.

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?

With no output schema, the description correctly compensates by describing the return payload including the extracted code and verification link. Timeout handling is only half-covered: the schema says 'Call again if it times out,' but the description never states whether expiry yields an error or an empty result, which matters for a blocking call with a 50-second cap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema by defining `after` operationally as 'the previous email's received_at' rather than just a millisecond timestamp. That gives the agent the actual iteration idiom (call, read received_at, call again) which the schema alone does not convey. The address and timeout_seconds parameters are left entirely to the schema.

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 gives a specific verb and mechanism ('wait (long-poll) until an email arrives') plus the resource (inbox email), which clearly separates it from read_email/list_emails/check_email siblings. It also enumerates the payload ('return it in full, including extracted.code and extracted.verification_link'). No sibling is named explicitly as an alternative, but the blocking semantics are distinctive enough on their own.

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?

Usage context is concrete: 'Returns immediately if a matching email is already there' tells the agent this is safe to call on a populated inbox, and 'To wait for the next one, pass `after` = the previous email's received_at' gives the exact chaining pattern. It stops short of naming the non-blocking alternatives (check_email/read_email) that would be cheaper when an email is already known to exist.

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