Skip to main content
Glama
gmail-reader-mcp

gmail-reader-mcp

by jgimitola

list_attachments

Retrieve metadata for every attachment in a specific Gmail message, including part ID, name, size, MIME type, and inline status, so you can choose files to download.

Instructions

List all attachments of a specific email. Returns each attachment's part ID, name, size, MIME type, and whether it is inline (embedded image/signature). Use download_attachment for one file, or download_attachments to save several (or all) in a single call.

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": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageIdYesThe email message ID (from list_emails or search_emails)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the returned fields (part ID, name, size, MIME type, inline flag), which is genuinely useful given there is no output schema, but it says nothing about read-only semantics, authentication requirements, behavior on an invalid message ID, or empty attachment lists.

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, zero filler, with the core purpose front-loaded and the sibling routing at the end. Every sentence earns its place.

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

Completeness5/5

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

For a one-parameter read tool with no annotations and no output schema, the description covers the purpose, the return payload, and the follow-up action. Nothing an agent needs in order to call it correctly is missing.

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?

There is a single parameter with 100% schema description coverage, and the schema already explains that messageId comes from list_emails or search_emails. The description adds no format or sourcing detail beyond that, so the baseline of 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?

States a specific verb and resource ('List all attachments of a specific email') and immediately distinguishes itself from the download siblings by naming them. An agent can tell this is the enumeration step that precedes downloading, without opening any schema.

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

Usage Guidelines4/5

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

Explicitly routes the agent: use download_attachment for one file, download_attachments for several or all. That is a clear alternative-with-condition. It does not state when *not* to call this tool (e.g., that it is unnecessary if you already have part IDs), so it falls short of full when/when-not coverage.

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