Skip to main content
Glama
EveryInc

google-workspace-mcp-server

by EveryInc

Get Gmail Attachment

gmail_get_attachment
Read-onlyIdempotent

Download a file attachment from any Gmail message using the message and attachment IDs.

Instructions

Download an attachment from a Gmail message.

Args:

  • message_id (string): The ID of the message containing the attachment

  • attachment_id (string): The ID of the attachment to download (from gmail_list_attachments)

  • filename (string, optional): Filename for the attachment (for display purposes)

Returns: The attachment content. For images, returns the image directly. For other files, provides download info.

Examples:

  • Download attachment: message_id="abc123", attachment_id="xyz789"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYesThe ID of the message containing the attachment
attachment_idYesThe ID of the attachment to download
filenameNoOptional filename for the attachment (used for saving)
Behavior3/5

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

Annotations already declare readOnlyHint, destructiveHint, idempotentHint. The description adds value by specifying the return format (image directly vs. download info), which is helpful beyond annotations.

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?

The description is concise with a clear one-line summary, structured Args, Returns, and Example sections. Every sentence adds value without redundancy.

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?

Given no output schema, the description adequately explains return types and provides an example. The annotations cover safety and idempotency. No missing information for effective tool use.

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?

With 100% schema description coverage, the baseline is 3. The description adds the origin of attachment_id (from gmail_list_attachments), which provides meaningful workflow context beyond the schema.

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 clearly states 'Download an attachment from a Gmail message' with specific verb and resource. It distinguishes from sibling tools like gmail_list_attachments by referencing the attachment_id source. The return behavior is explained for images vs. other files.

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?

The description implies correct usage by noting that attachment_id comes from gmail_list_attachments, and provides an example. It could be more explicit about prerequisites and when not to use, but the sibling context clarifies differentiation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EveryInc/google-workspace-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server