Skip to main content
Glama
googlarz

Proton Mail Bridge MCP

get_attachment_content

Fetch email attachment metadata and optionally include base64-encoded content for in-memory processing. Use when you need attachment data without saving to disk.

Instructions

Fetch metadata for a specific email attachment and optionally return its base64-encoded content inline. Use when you need to read or process attachment data in-memory. Set includeBase64:false (default) to retrieve metadata only without loading the full payload. Prefer save_attachment to write the file to disk instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailIdYesComposite email id in FOLDER::UID format, as returned by get_emails or search_emails.
attachmentIdYesStable attachment id returned by list_attachments.
includeBase64NoInclude base64 payload in the response.
Behavior4/5

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

No annotations provided, so description carries burden. It discloses the two behavioral modes (metadata-only vs full base64 payload) and default behavior. However, does not mention any side effects, error conditions, or safety guarantees beyond the implied read-only nature.

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?

Four sentences, front-loaded with purpose. No superfluous words. Every sentence serves a clear role: purpose, usage, default behavior, alternative.

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 no output schema, could explain return format for metadata vs base64, but the description sufficiently covers the two main use cases. Simple tool, adequate completeness for typical attachment reading needs.

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 has 100% description coverage, but description adds context: explains emailId format (FOLDER::UID) and source (get_emails/search_emails), attachmentId origin (list_attachments), and reinforces default for includeBase64. Adds value beyond 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?

Description clearly states action ('Fetch metadata for a specific email attachment') and distinguishes from sibling tools like save_attachment, which writes to disk. The verb 'Fetch' and resource 'attachment metadata' are specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use ('when you need to read or process attachment data in-memory') and when not to ('Prefer save_attachment to write the file to disk instead'). Provides clear guidance on alternatives.

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/googlarz/proton-mail-bridge-client'

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