Skip to main content
Glama
gmail-reader-mcp

gmail-reader-mcp

by jgimitola

download_attachments

Download Gmail email attachments to a chosen folder and return each saved path; omit part IDs to save all file attachments.

Instructions

Download multiple attachments from an email in a single call and save them to disk. Omit partIds to download all file attachments. Returns the saved path for each 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": {
      "messageId": "<messageId>"
    },
    "name": "download_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveToNoDirectory path to save the files. Defaults to user Downloads folder (e.g. C:\Users\username\Downloads)
partIdsNoSpecific attachment part IDs to download (from list_attachments). Omit to download ALL file attachments of the message.
messageIdYesThe email message ID
includeInlineNoWhen downloading all attachments, also include inline ones (embedded images, signatures). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description does disclose the most important behavioral fact: the tool writes files to disk and returns the saved path per file, which signals a non-trivial side effect. It says nothing about overwrite behavior for existing files, whether directories are created, permission/auth requirements, or what happens when a partId is invalid — meaningful gaps for a filesystem-writing tool.

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 and batch scope, then the default behavior, then the return value. Nothing is redundant and nothing is 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?

For a four-parameter tool with no output schema, the description covers purpose, the key default behavior, and the return shape (saved path per file). Only edge-case behavior such as overwrites and failure modes is absent, which is a minor shortfall rather than a blocking gap.

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 all four parameters are already documented, including the saveTo default and the includeInline fallback. The description only restates the partIds omission behavior already stated in the schema, adding no new syntax or format detail; 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 names a specific verb and resource ("Download multiple attachments from an email") plus the distinguishing scope ("in a single call") and the persistence effect ("save them to disk"). The word "multiple" implicitly separates it from the singular sibling download_attachment, so an agent can pick the batch variant without opening the schema.

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?

It gives one concrete usage rule — omit partIds to fetch every file attachment — which is actionable. It does not state when to prefer this over download_attachment, nor any preconditions such as needing a prior list_attachments call or authentication, so guidance is implied rather than explicit.

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