Skip to main content
Glama

mailgate_wait_for_email

Waits for a matching email in a MailGate inbox, then returns its subject, body, OTP code, and verification link for login or test automation.

Instructions

Poll a MailGate inbox until a matching email arrives and return its subject, text body, OTP code, and extracted magic/verification link.

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_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesRecipient inbox address.
sinceNoISO 8601 timestamp filter.
senderNoOptional sender address substring filter.
passwordNoOptional inbox password if locked.
timeoutMsNoMaximum wait time in milliseconds (default: 30000).
pollIntervalMsNoPolling interval in milliseconds (default: 1500).
subjectIncludesNoOptional case-insensitive subject substring filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 burden. It does convey the key behavioral trait, that this is a blocking poll-until-arrival call, and it discloses the return payload, but it never says what happens when the timeout elapses (error vs. empty result) or that the call can block for the whole timeout window.

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?

A single front-loaded sentence with the action first and the return values second; every clause earns its place and there is no filler.

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 usefully enumerates what comes back, and the polling semantics are stated for a 7-parameter blocking tool. The remaining gap is timeout/failure behavior and sibling differentiation, which a one-line addition could close.

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%, including defaults for timeoutMs and pollIntervalMs and the case-insensitivity of subjectIncludes, so the schema already does the heavy lifting. The description adds no parameter-level meaning beyond 'matching email', which is left undefined against the sender/subject/since filters.

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 resource ('Poll a MailGate inbox until a matching email arrives') and enumerates the returned payload (subject, text body, OTP, magic link). It is clear about what the tool does but never names or contrasts with the obvious sibling mailgate_wait_for_otp, so the agent must infer the difference from the names alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance: nothing says to prefer this over mailgate_list_messages (already-arrived mail) or mailgate_wait_for_otp (OTP-specific waiting). The polling-until-arrival framing implies a use case, but no alternatives or exclusions are stated.

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