Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

get_gmail_attachment_content

Download specific email attachment content from Gmail messages using message and attachment IDs. Retrieve base64-encoded files for secure access and processing within Google Workspace.

Instructions

Downloads the content of a specific email attachment.

Args: message_id (str): The ID of the Gmail message containing the attachment. attachment_id (str): The ID of the attachment to download. user_google_email (str): The user's Google email address. Required.

Returns: str: Attachment metadata and base64-encoded content that can be decoded and saved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_idYes
attachment_idYes
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the return format (base64-encoded content) but doesn't address important behavioral aspects like authentication requirements (beyond the user_google_email parameter), rate limits, file size limitations, or whether this is a read-only operation. The description provides basic output information but misses key operational context.

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?

The description is well-structured with a clear purpose statement followed by Args and Returns sections. The first sentence efficiently states the core functionality. While the parameter documentation is necessary given the schema coverage gap, the overall structure is clean and front-loaded.

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?

Given the tool's moderate complexity (3 parameters, no annotations, but with output schema), the description provides a solid foundation. The output schema handles return value documentation, so the description appropriately focuses on purpose and parameters. For a download operation with authentication requirements, it could benefit from more behavioral context, but it covers the essentials adequately.

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 0% schema description coverage, the description must compensate for the lack of parameter documentation. It provides clear semantic meaning for all three parameters: message_id identifies the containing message, attachment_id identifies the specific attachment, and user_google_email specifies whose account to access. This adds significant value beyond the bare 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 the specific action ('Downloads the content'), target resource ('a specific email attachment'), and scope ('of a specific email attachment'). It distinguishes itself from siblings like 'get_gmail_message_content' by focusing specifically on attachments rather than full messages.

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 description implies usage when you need attachment content rather than just message metadata, but doesn't explicitly state when to use this vs alternatives like 'get_gmail_message_content' or 'get_gmail_messages_content_batch'. No explicit exclusions or prerequisites are mentioned beyond the required parameters.

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/c0webster/hardened-google-workspace-mcp'

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