Skip to main content
Glama
mailbox-org-mcp
by getrdone

Save attachments

mailbox_download_attachments

Saves email attachments from a specified message to a local folder and returns their file paths; choose attachment indexes or save all by default.

Instructions

Save a message's attachments to a local folder (default /root/Downloads/mailbox-org). Returns the saved file paths. Use mailbox_get_message to see attachment indexes.

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": {
      "uid": "<uid>"
    },
    "name": "mailbox_download_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesMessage UID from mailbox_search_messages (UIDs are per folder)
folderNoFolder path, e.g. "INBOX", "Archive", "INBOX/newsletters". Names like archive, trash, junk, sent, drafts also work.INBOX
indexesNoAttachment indexes to save; default all
save_dirNoLocal folder to save into

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare write behavior (readOnlyHint=false), open-world reach, and non-destructiveness; the description adds the default save location and states that saved file paths are returned. It says nothing about overwrite behavior, whether missing directories are created, or what happens on partial failure — meaningful gaps for an operation that writes to disk.

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?

Three short sentences, front-loaded with the action, followed by the return contract and the prerequisite hint. Nothing is wasted or buried.

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?

All four parameters are documented in-schema and the description fills the two remaining gaps an agent needs to call it: the default destination and where indexes come from, plus the return shape despite no output schema. Overwrite and directory-creation behavior are the only notable omissions.

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 baseline is 3, but the description adds information the schema lacks: the default destination /root/Downloads/mailbox-org for save_dir (which has no schema default) and a pointer to mailbox_get_message as the source of valid indexes. Folder and uid semantics remain schema-documented only.

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?

States a specific verb and resource: 'Save a message's attachments to a local folder,' with a concrete destination default. It does not explicitly distinguish itself from a sibling like mailbox_drive_download, but the resource (message attachments vs. drive files) is unambiguous.

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 sentence 'Use mailbox_get_message to see attachment indexes' supplies a prerequisite workflow cue, which is real guidance. However, there is no when-to-use/when-not framing and no routing to alternatives for obtaining attachments by other means.

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