Skip to main content
Glama
Sendmux

Sendmux Email Inbox API + Sending

Official

Wait For Message

mailbox_wait_for_message
Read-onlyIdempotent

Wait for new email messages without manual polling. Polls up to 25 seconds and returns matching messages or a clean no_message result.

Instructions

Use this to wait briefly for new mail instead of manual polling. It polls for up to 25 seconds, returns a matching message with attachment metadata when found, or a clean no_message result so you can call again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoOptional full-text query to match.
afterNoISO 8601 lower bound for received_at. Omit to wait for messages received after this call starts.
keywordNoOptional keyword/label that the message must have, such as $seen.
subjectNoOptional subject text filter.
folder_idNoOptional folder ID filter.
from_emailNoOptional sender email address or display-name filter.
mailbox_idNoMailbox public ID when the credential can access more than one mailbox.
has_attachmentNoWhen true, wait only for messages with attachments.
timeout_secondsNoMaximum seconds to wait. Capped at 25 seconds so MCP clients do not hold a tool call open indefinitely.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Discloses polling duration (up to 25s), return types (matching message with attachment metadata or no_message), and clean exit for retries. Annotations already indicate readOnly and idempotent, so description adds behavioral nuance beyond annotations.

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 concise sentences front-loaded with purpose and behavior. No redundancy or irrelevant information.

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?

Core behavior is well-covered: polling, timeout, return types. With 9 optional parameters and an existing output schema, the description sufficiently sets expectations for a waiting tool, though could mention the polling interval or retry mechanism.

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 all parameters described. The description adds little beyond schema (mentions 'attachment metadata' indirectly), so 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?

Clearly states verb 'wait for new mail' with resource 'mailbox' and distinguishes from sibling tools by emphasizing polling instead of manual polling. Specific behavior (up to 25 seconds, returns message or no_message) makes purpose unambiguous.

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 context 'instead of manual polling' which implies usage scenario, but does not explicitly list when not to use or alternative tools. However, given sibling tools are non-polling, the guidance is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sendmux/sendmux-sdk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server