Skip to main content
Glama
gmail-reader-mcp

gmail-reader-mcp

by jgimitola

download_attachment

Download a specific Gmail attachment to disk using the message ID and attachment part ID, and return the saved file path.

Instructions

Download a specific email attachment and save it to disk. Use list_attachments (or get_email) first to get the part ID. To save several (or all) attachments from an email in one call, use download_attachments instead. Returns the full path where the file was saved.

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": {
      "messageId": "<messageId>",
      "partId": "<partId>"
    },
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
partIdYesThe attachment part ID (from list_attachments or get_email)
saveToNoDirectory path to save the file. Defaults to user Downloads folder (e.g. C:\Users\username\Downloads)
messageIdYesThe email message ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses the side effect (writes a file to disk) and the return value (full path where the file was saved), but says nothing about overwrite behavior when a file already exists, authentication requirements, or size limits.

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 prerequisite, alternative, and return value. Every sentence carries information the agent needs; there is no filler.

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?

For a simple three-parameter download tool with no output schema, the description covers action, prerequisite, alternative, and the return value. The remaining gap is the absence of overwrite/conflict behavior and permission expectations, which matters somewhat since no annotations exist to fill in that profile.

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%, so all three parameters are already documented, including the saveTo default Downloads folder. The description only restates the partId source implicitly via the prerequisite sentence and adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

The description gives a specific verb+resource ('Download a specific email attachment and save it to disk') and immediately distinguishes this single-item tool from the bulk sibling download_attachments, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

It states an explicit prerequisite ('Use list_attachments (or get_email) first to get the part ID') and an explicit alternative with the condition that selects it ('To save several (or all) attachments from an email in one call, use download_attachments instead'). Both when-to-use and when-not-to-use are covered.

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