Skip to main content
Glama
Gmail MCP Server

Gmail MCP Server

by Abhitkumar89

list_attachments

Retrieves and lists all attachments from a specific Gmail message by its ID, helping you inspect available files before downloading or processing them.

Instructions

List attachments on an email by ID (requires OAuth2 config)

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": {
      "id": "<id>"
    },
    "name": "list_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesGmail message ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the disclosure burden alone; it does add one real trait, the OAuth2 configuration requirement, which an agent would otherwise not know. However it does not confirm the operation is read-only beyond the word "List", nor describe what is returned (attachment names/IDs vs. content) or any pagination, which matters since download_attachment presumably needs those IDs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short front-loaded sentence with the purpose first and the prerequisite tucked in parentheses; nothing is wasted. It is slightly terse in that the parenthetical is vague about what "OAuth2 config" entails, but the sizing is appropriate.

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?

For a one-parameter list tool with no output schema, the definition covers purpose and an auth prerequisite, which is the minimum viable set. It omits what the response contains and how the returned attachments relate to download_attachment, leaving gaps an agent would have to discover by calling it.

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 and schema coverage is 100%, with the schema already labeling it "Gmail message ID". The description restates this as "on an email by ID" but adds no format, sourcing, or lookup guidance 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("List attachments") plus the scoping mechanism ("on an email by ID"), which is enough to separate it from download_attachment and get_email. It stops short of any explicit sibling routing, so it is clear but not differentiated by name.

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?

The parenthetical prerequisite ("requires OAuth2 config") gives a setup condition, but there is no statement of when to choose this over download_attachment or get_email. Usage is only implied by the verb: inspect attachment metadata before fetching content.

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