Skip to main content
Glama
arkaigrowth

Gmail MCP Server

by arkaigrowth

gmail_download_attachment

Download an email attachment to a sandboxed quarantine directory, returning its local path, SHA-256 hash, and image flag.

Instructions

Download an email attachment to a sandboxed quarantine directory. Returns local path, SHA-256 hash, and image flag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoEmail or alias (uses active account if omitted)
filenameYesOriginal filename of the attachment
mime_typeNoMIME type (defaults to application/octet-stream)
message_idYesGmail message ID containing the attachment
attachment_idYesAttachment ID from gmail_read_message response
Behavior3/5

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

No annotations provided, so description carries full burden. Mentions sandboxed quarantine directory (a behavioral constraint) and return fields, but lacks discussion of idempotency, permissions, or side effects.

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 sentences, front-loaded with key action and output. No extraneous words, efficient.

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 tool with 5 parameters (3 required) and no output schema or annotations, the description covers purpose and output but lacks usage guidelines and behavioral depth, leaving gaps.

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?

Schema has 100% coverage with descriptions for all parameters. Description adds minimal extra meaning (e.g., attachment_id origin), so baseline 3 is appropriate.

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?

Clearly states the verb (download), resource (email attachment), and specific output (local path, SHA-256 hash, image flag). Distinguishes from siblings like gmail_read_message which retrieves message content.

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?

Implies usage context (needs attachment_id from gmail_read_message) but does not explicitly state when to use or when not, nor does it mention alternatives among siblings.

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/arkaigrowth/gmail-mcp-server'

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