Skip to main content
Glama
mcp-icloud
by ak1tnk

mail_download_attachment

Downloads an email attachment from a specified mailbox and saves it to a new absolute file path with private permissions.

Instructions

Download an attachment to a new absolute file with private permissions.

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": {
      "mailbox": "<mailbox>",
      "uid": "<uid>",
      "index": "<index>",
      "path": "<path>"
    },
    "name": "mail_download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYes
pathYes
indexYes
mailboxYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful side effects: the file is written to an absolute path, it is a NEW file (implying no silent overwrite), and permissions are restricted to private. It omits error behavior, whether an existing target path causes failure, and any size or permission constraints of the mailbox, leaving real gaps for an unannotated write tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single tight sentence with no filler, and the most distinctive constraint (new absolute file, private permissions) is front-loaded. The only structural weakness is that brevity here comes at the cost of the parameter explanation the tool needs.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but for a four-parameter filesystem-writing tool with zero annotation coverage and zero schema descriptions, the definition is far too thin. It should identify the mailbox/UID/index semantics and state what happens if the destination path already exists.

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

Parameters2/5

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

Schema description coverage is 0% across four required parameters, so the description must compensate and largely fails to: 'mailbox', 'uid', and especially 'index' get no explanation, and only 'path' is loosely implied by 'new absolute file'. An agent cannot tell from the definition whether 'index' is zero-based or what 'uid' refers to.

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?

The description names a specific verb and resource ('Download an attachment'), making the operation unmistakable and easy to distinguish from siblings like mail_read or mail_search. It does not explicitly contrast with alternative ways of retrieving attachment content, but the verb+resource pairing is concrete enough on its own.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus mail_read or mail_search, nor any mention of prerequisites such as needing a message UID and attachment index obtained from a prior read. The agent must infer the entire call sequence and the meaning of 'index' from the schema alone.

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