Skip to main content
Glama

wait_for_sms

Block until a matching SMS arrives on the phone number (or timeout_seconds elapses), then return its full detail including extracted data. Call this right after triggering an SMS flow in the app under test.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchNoFilter: `from:term`, `to:term`, or `body:term`; a bare term matches the body.
sinceNoOnly consider messages received after this RFC 3339 timestamp. Omit to accept a message that already arrived.
phone_number_idYesPhone number 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.0
Behavior3/5

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

No annotations provided, so the description must cover behavior. It mentions blocking, timeout, and returning full detail, but lacks details on side effects or cancellation.

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?

Two sentences with no wasted words. First sentence states purpose and behavior, second gives usage guidance. Very concise.

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?

Covers main points: blocking, timeout, matching, return. No output schema, so return value described as 'full detail including extracted data' is adequate but vague. Fairly complete for a waiting tool.

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 parameters. The description adds 'including extracted data' but doesn't provide significant additional meaning beyond the schema.

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 it blocks until a matching SMS arrives, using specific verb 'Block' and resource 'SMS on the phone number'. It distinguishes from siblings like wait_for_message and wait_for_otp.

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?

Provides explicit usage guidance: 'Call this right after triggering an SMS flow in the app under test.' This sets clear context, though no alternative tools are mentioned.

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