Skip to main content
Glama

Download attachment

download-attachment

Downloads a specified email attachment to a local file path using the message ID and attachment ID.

Instructions

Downloads an email attachment to a local file

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": {
      "id": "<id>",
      "attachmentId": "<attachmentId>",
      "outPath": "<outPath>"
    },
    "name": "download-attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesMessage id
outPathYesLocal file path to write to
attachmentIdYesAttachment id

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

The description adds the destination ('local file'), which matches readOnlyHint=false and clarifies the write target beyond the annotation. However, it never states what happens if outPath already exists (overwrite vs. fail), whether directories are created, or what filesystem permissions are needed — important for a tool 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.

Conciseness4/5

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

A single front-loaded sentence with no wasted words. It is efficient, though so terse that useful behavioral detail is omitted rather than compressed.

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

Completeness3/5

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

Parameters are fully covered by schema and a return schema exists, so the description only needs behavioral context. It is missing overwrite/error semantics for the local write, which is the main risk an agent needs to know about.

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 description coverage is 100%, so id, attachmentId, and outPath are already documented. The description only reinforces outPath's meaning as a local write target and adds no format, path-resolution, or overwrite semantics beyond the schema.

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 ('Downloads an email attachment') plus the destination ('to a local file'), which implicitly separates it from read-attachment-style tools. It does not name a sibling, so the differentiation is inferred rather than stated.

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?

No when-to-use guidance and no mention of alternatives such as read-attachment or list-attachments. An agent must guess whether it should save locally or read inline.

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