Skip to main content
Glama

mailgate_wait_for_otp

Poll a MailGate inbox until an OTP or verification code arrives; pass the since timestamp to ignore stale codes from earlier tests.

Instructions

Poll a MailGate inbox until a verification/OTP code arrives. Pass since (ISO timestamp) to ignore stale OTPs from earlier tests.

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": {
      "email": "<email>"
    },
    "name": "mailgate_wait_for_otp"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesRecipient inbox address (e.g. qa-login@example.com).
sinceNoISO 8601 timestamp; only consider emails received at or after this time.
senderNoOptional substring filter on sender address (e.g. github.com).
passwordNoOptional inbox password if the inbox is locked.
timeoutMsNoMaximum wait time in milliseconds (default: 30000).
pollIntervalMsNoPolling interval in milliseconds (default: 1500).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it only conveys that the call blocks and polls. It never says what happens if the timeout elapses (error vs empty result), whether it returns the parsed code or the whole message, or that a password may be required for locked inboxes. These are material gaps for a blocking wait primitive.

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?

Two short sentences: the primary behavior first, the key usage caveat second. No filler, no restatement of the name, and the critical parameter hint is front-loaded.

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

Completeness2/5

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

For a six-parameter blocking poller with no annotations and no output schema, the description is under-specified: the caller cannot learn the return shape or the timeout/failure behavior from any structured field. The description would need to cover those to be complete for this complexity.

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 baseline is 3 and all six parameters are already documented. The description adds a small amount of meaning for `since` (staleness guard against earlier test runs), but says nothing extra about sender filtering, timeout, or poll interval beyond the schema text.

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 (poll) and resource (MailGate inbox) plus a precise target (verification/OTP code), which implicitly distinguishes it from the generic mailgate_wait_for_email sibling. It stops short of naming that sibling explicitly, so a 5 is not warranted.

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?

The second sentence gives a concrete usage rule for the `since` parameter ('ignore stale OTPs from earlier tests'), which is genuine guidance. However, there is no statement of when to prefer this tool over mailgate_wait_for_email or mailgate_list_messages, and no exclusions or prerequisites beyond the optional password note in the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.