Skip to main content
Glama
spare-email-mcp

spare-email-mcp

Official

Wait for a verification code

wait_for_otp

Poll a mailbox until a new message arrives, then extract the verification code for signup or login flows.

Instructions

Poll the mailbox until a NEW mail arrives after this call starts, then extract the most likely verification code. Use right after triggering a signup/verification mail. Requires the mail to actually arrive; if the timeout is reached with no new mail, ask the user to check the flow.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for_otp"
  }
}

Input Schema

NameRequiredDescriptionDefault
poll_secondsNoPoll interval (3-30 seconds; do not go below 3).
timeout_secondsNoHow long to wait for a new mail (10-600 seconds).
subject_containsNoOnly consider new mails whose subject contains this text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and does well: it discloses that this is a blocking poll with a bounded timeout, that pre-existing mail is ignored, that code extraction is a heuristic ('most likely'), and what to do on timeout. It omits how multiple candidate codes are disambiguated and any note on the cost of blocking for up to 600 seconds.

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 filler, and the critical scoping constraint ('NEW mail ... after this call starts') is front-loaded before the usage hint and the failure mode.

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?

There is no output schema and no annotations, and the description never states what is returned — just the code, or the code plus the matched mail? For a tool whose entire purpose is returning an extracted value, that is the one meaningful gap; the timeout and prerequisite behavior are otherwise covered well.

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 coverage is 100%, so poll_seconds, timeout_seconds, and subject_contains are already fully documented with ranges and defaults. The description adds no additional meaning about these parameters, which is the baseline case when the schema does the work.

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 chain (poll, then extract) against a specific resource (mailbox, verification code) with a precise scope: only mail arriving AFTER this call starts. That scoping clause alone separates it from read_mail/list_mails, which return existing mail.

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 a clear trigger condition ('use right after triggering a signup/verification mail') and a fallback path when it fails (ask the user to check the flow). It does not name an alternative tool or state when not to use it, but the timing constraint is explicit enough to guide selection.

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

Deploy Server

Other Tools