Skip to main content
Glama

wait_for_link

Block until a message containing an extracted link arrives, then return that link (optionally only a given class: verify | reset | unsubscribe | other). The one-call answer to 'trigger the email, get the magic/verification link'. Returns {message_id, link, links}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
classNoOnly accept links classified as this: verify | reset | unsubscribe | other. Omit for the first link of any class.
matchNoFilter: `subject:term`, `from:term`, or `to:term`; a bare term matches the subject.
sinceNoOnly consider messages received after this RFC 3339 timestamp. Omit to accept a message that already arrived.
inbox_idYesInbox id (uuid) to watch.
timeout_secondsNoGive up after this many seconds (default 45, max 60).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description fully discloses blocking behavior, return fields (message_id, link, links), optional class filtering, and timeout. It accurately describes the tool's synchronous nature and output.

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?

The description is three sentences, front-loading the core function, then use-case, then return fields. Every sentence adds value with no wasted words.

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

Completeness5/5

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

Given no output schema, the description includes return fields and explains blocking and filtering. For a tool with 5 parameters (1 required) and a clear use case, the description covers all necessary context.

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% with descriptions for all 5 parameters. The description adds minimal extra meaning beyond the schema, mainly repeating the class option. Baseline 3 is appropriate.

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?

The description clearly states the tool blocks until a link arrives and returns it, with optional class filtering. It distinguishes itself as the one-call solution for getting verification links, setting it apart from siblings like wait_for_message or get_links.

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?

The description implies when to use it (after triggering an email) and mentions optional class filtering, but does not explicitly compare to alternatives or state when not to use it. The guidance is clear but lacks exclusionary context.

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.

Resources