Skip to main content
Glama
tszaks

Gmail Multi-Inbox MCP Server

by tszaks

get_all_attachments

Fetches all email attachments from a Gmail message using its ID, extracts text from PDFs, Office docs, and images via OCR, and saves files to ~/Downloads/mcp-attachments/.

Instructions

Call this whenever a thread or email shows attachments. Fetches and extracts content from all attachments in one shot: PDF (text extraction), DOCX, XLSX, PPTX, images (OCR). Use the Gmail message ID ("Gmail ID" from get_email_thread output) — NOT the thread ID. Saves each file to ~/Downloads/mcp-attachments/ and returns extracted text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesAccount id.
email_idYesGmail message id.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses side effects (saving files to ~/Downloads/mcp-attachments/), return behavior (extracted text), and supported formats. It does not mention auth requirements or failure modes, but for an extraction tool this is fairly transparent.

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 sentences, front-loaded with the trigger condition, and every sentence adds operational value. No fluff or repetition.

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?

The tool handles multiple file types with extraction and local saving, and the description covers formats, ID requirement, save path, and output type. It does not mention limits or error handling, but given the absence of an output schema and the tool's moderate complexity, this is reasonably complete.

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?

Schema covers 100% of parameters, so baseline is 3. The description adds significant meaning by clarifying that email_id is the Gmail message ID (not thread ID) and points to get_email_thread output for reference. This goes beyond the schema's minimal 'Gmail message id'.

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 it fetches and extracts content from all attachments in one shot, listing supported formats. It distinguishes itself from the sibling get_attachment by emphasizing 'all attachments' and 'one shot'.

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 explicitly says to call this whenever a thread or email shows attachments, and gives a critical usage note about using the Gmail message ID rather than the thread ID. It stops short of naming alternatives or when not to use, so it doesn't fully meet the 'explicit when/when-not/alternatives' bar.

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/tszaks/ghub'

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