Skip to main content
Glama
Google Workspace MCP
by holms

List Gmail Attachments

list_gmail_attachments

Retrieves the filenames, MIME types, and sizes of attachments in a Gmail message without downloading them, helping you inspect message files before deciding what to fetch.

Instructions

List attachments of a Gmail message (filename, mime type, size). Does not download.

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

Input Schema

NameRequiredDescriptionDefault
message_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/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 load: it discloses that this is a non-destructive read that surfaces metadata only and never fetches file content. It says nothing about permission/scope requirements, result limits, or pagination for messages with many attachments, which leaves real behavioral gaps for a tool with zero annotation coverage.

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?

Two short sentences with the operation front-loaded and the negative constraint second. No filler, no restatement of the tool title.

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?

An output schema exists, so return-field explanation is not required, and the tool has only one required parameter that the description at least contextualizes. The remaining shortfall is the absence of any note on ID format or behavior with large attachment sets.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single required message_id parameter, so the description must compensate. "Of a Gmail message" only loosely signals that message_id identifies the parent message; it does not state the expected ID format (raw ID vs. thread ID vs. RFC message-id), which is the main ambiguity an agent faces here.

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 and resource ("List attachments of a Gmail message") and enumerates the returned fields (filename, mime type, size). The trailing "Does not download" cleanly separates it from the download_gmail_attachments sibling, so an agent can choose between them 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 Guidelines4/5

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

It states the condition for this tool and a clear exclusion ("Does not download"), which implies the download path belongs elsewhere. It stops short of naming the alternative tool outright, so the routing is strongly 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.