Skip to main content
Glama

Flowmails MCP

wait_for_email

Open a durable wait for a mailbox and return immediately — the request never hangs. The wait resolves when a matching message arrives, or expires. Match on the address, and optionally narrow by sender and by a case-insensitive subject substring. Poll the returned waitId with get_wait_status. The resolution is also delivered as the wait.resolved webhook event on the account's verified outbound webhook, so a service with no long-running process need not poll at all.

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
senderNoOptional: only resolve for mail from this sender address.
addressYesThe mailbox to watch, e.g. `billing@example.com`.
subjectNoOptional: only resolve when the subject contains this text (case-insensitive substring).
timeoutMsNoOptional: how long the wait stays open, in milliseconds (max 24h).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description does real work: it discloses the non-blocking contract, that the wait resolves or expires, the 24h ceiling, and the side-channel webhook event name `wait.resolved`. It does not cover auth/permission requirements, whether a wait can be cancelled, or how many concurrent waits are allowed.

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 tight sentences, front-loaded with the core contract, then matching rules, then the two consumption paths. No filler and nothing repeated.

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, so the description must carry the result shape; it names `waitId` and the webhook event but does not sketch the resolved payload (matched message id, expiry status). Adequate for correct invocation, slightly thin for interpreting results.

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. The description restates the matching semantics (address, optional sender, case-insensitive subject substring) but adds little beyond what each parameter's schema description already says.

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 and resource (open a durable wait for a mailbox) and immediately clarifies the unusual non-blocking semantics ('return immediately — the request never hangs'). It also implicitly separates itself from get_wait_status, the polling sibling, so an agent can distinguish the two without opening either schema.

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 concrete guidance on how to consume the result: poll the returned `waitId` with `get_wait_status`, or rely on the `wait.resolved` webhook if the service has no long-running process. What is missing is an explicit exclusion — e.g. when to prefer a plain get_email poll over opening a wait, or what to do when the timeout expires.

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.