Skip to main content
Glama
Google Workspace MCP
by holms

Download Gmail Attachments

download_gmail_attachments

Downloads Gmail message attachments to a local directory, optionally saving only a specified filename, and returns the saved file paths.

Instructions

Download attachments from a Gmail message to a local directory (default ~/Downloads). If filename is given, only that attachment is saved. Returns saved file paths.

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": {
      "message_id": "<message_id>"
    },
    "name": "download_gmail_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo
save_dirNo
message_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose that files are written to a local directory, gives the default location (~/Downloads), and notes the return of saved file paths. It omits significant behavior: overwrite handling for existing filenames, what happens when the message has no attachments, authentication requirements, and any sandbox/path restrictions.

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 destination, then the filtering condition, then the return value. No filler or redundant restatement of the title.

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?

An output schema exists, so the brief return-value note is sufficient. However, for a filesystem-writing tool with zero annotation coverage and no parameter descriptions in the schema, the description should say more about failure modes, overwrite behavior, and permissions before an agent can call it confidently.

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 description coverage is 0%, so the description must compensate, and it does for two of three parameters: filename is scoped to a single attachment and save_dir's real default (~/Downloads) is given rather than the schema's empty-string placeholder. Only message_id's expected format or source is left unstated.

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 ('Download attachments from a Gmail message') plus the destination scope, which is unambiguous. It does not name or contrast with the sibling list_gmail_attachments, so an agent must infer the natural list-then-download workflow.

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?

Usage is only implied: the message_id requirement and the optional filename filter hint at when to use it, and the sibling list_gmail_attachments suggests a prerequisite step that is never stated. There is no explicit when-not-to-use guidance or mention of alternatives such as download_drive_file.

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