Skip to main content
Glama

Mailbox Email Download

mailbox_email_download
Read-onlyIdempotent

Get a temporary download URL for one selected attachment or the original EML. No additional API key is required at the returned URL. Links expire after 15 minutes; do not share them publicly. Downloads leave shared read status unchanged. No attachment analysis is performed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoOptional reason for this action. AI agents should include a short purpose for intentional reads and changes when known. Do not invent a reason or include secrets, file contents, or transcripts.
purposeNoValue for purpose.
email_idYesValue for email id.
account_idNoOptional account id from revdoku_status.accounts for this call only. Omit for the credential's default account. Client accounts require explicit Agency authorization; never infer an account from a mailbox id.
mailbox_idYesValue for mailbox id.
attachment_idNoValue for attachment id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
downloadYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the returned URL needs no extra API key, that links expire after 15 minutes, that they must not be shared, that read status is left unchanged, and that no attachment analysis is performed. These are exactly the operational facts an agent needs before handing a URL onward.

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?

Four short sentences, each carrying a distinct fact (what you get, auth, expiry/sharing, side effects), with the core purpose front-loaded and zero filler.

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?

An output schema exists and annotations already declare the read-only, idempotent, non-destructive profile; the description fills the remaining gaps around URL lifetime, credential needs at the returned URL, and the absence of read-status side effects. Nothing needed to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics by explaining that attachment_id selects a single attachment while its absence yields the original EML. It says nothing about the reason/purpose/account_id parameters, but the schema already covers those.

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+resource (retrieve a temporary download URL) and scopes it precisely to one attachment or the original EML, which cleanly separates it from metadata tools like mailbox_email_get and mailbox_file_read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The implied trigger (you want the actual bytes of an attachment or EML rather than metadata) is reasonably clear, but there is no explicit when-to-use/when-not guidance and no named alternative among the many sibling read tools, so the agent must infer routing.

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.