Skip to main content
Glama

inbox_wait

Read-only

Wait for mail in this session's private inbox (its address is in the result; type it into the app's email field). Returns the first message that matches, already there or arriving within timeout_ms: from, subject, text, the 4 to 8 digit codes and the links in it. Use it to finish an emailed code or magic-link sign-in. Fails with inbox_timeout when nothing matches in time. Only this session can read this inbox; mail is kept in memory and removed when the session ends.

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": {
      "session": "<session>"
    },
    "name": "inbox_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoOnly mail whose sender contains this
sessionYesSession from open_app
subjectNoOnly mail whose subject contains this (not case sensitive)
timeout_msNoHow long to wait, in ms (default 10000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the readOnly/destructive annotations, it discloses that the inbox address appears in the result and must be typed into the app, that only this session can read it, that mail lives in memory and is dropped at session end, and that it fails with inbox_timeout. That is substantial operational context; only auth requirements and any rate/volume limits are left unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and scope, then usage, then return shape, then failure mode and lifetime. Dense but purposeful; the mention of codes and links slightly overlaps with the sign-in use case sentence, a minor redundancy.

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 carries the burden of describing returns and does so (from, subject, text, digit codes, links, inbox address). Combined with the timeout bound in the schema and the inbox_timeout failure name, an agent has nearly everything needed; the exact result envelope is the only gap.

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 the schema already documents from, subject, session and timeout_ms. The description reinforces that matching is filter-based and returns the first match, but adds no syntax or format detail beyond what the schema states, so the baseline applies.

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 opens with a specific verb and resource: "Wait for mail in this session's private inbox," and pins the scope to a single session. It is clear what the tool does, though it never names the closely related siblings (inbox_read, inbox_clear) to draw the boundary explicitly.

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?

"Use it to finish an emailed code or magic-link sign-in" gives a concrete triggering scenario, and "already there or arriving within timeout_ms" tells the agent it does not need a prior read before waiting. It stops short of explicit when-not guidance or pointing to inbox_read for non-blocking reads.

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.