Skip to main content
Glama
combor

Baryon MCP

save_attachment

Save one email attachment to a local file on the server's machine and return the file path. Use for large attachments up to 25 MB that are too big to read inline.

Instructions

Write one attachment (up to 25 MB decoded) to a local file on the server's machine and return only its path, keeping the bytes out of the conversation. Use this for attachments too large to read inline with get_attachment. An existing file is never overwritten and no directories are created.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesmessage uid from list_emails or search_emails
indexYesattachment index from list_attachments or get_email
folderYesfolder name, as returned by list_folders
output_pathYesabsolute path to write the decoded attachment to on the server's machine; the parent directory must already exist and the file must not; not available on Windows
uidvalidityYesuidvalidity value returned alongside the uid; detects stale uids

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesthe attachment's own filename, which is not where it was written
saved_pathYessymlink-resolved path the attachment was written to
content_typeYes
decoded_size_bytesYesbytes written to disk
encoded_size_bytesYes
Behavior5/5

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

The description adds significant behavior beyond the annotations: it discloses the 25 MB decoded size limit, the return format (path only, keeping bytes out of context), and safety guarantees (no overwrite, no directory creation). Annotations only provide readOnly/destructive hints, so this extra context is valuable and consistent.

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 three compact sentences, each earning its place: first states the core action and return value, second gives usage guidance compared to a sibling, third states important safety constraints. It is front-loaded with the primary purpose.

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?

With full parameter schema coverage, a clear output schema, and the description adding usage and behavioral context, the tool is well-specified. The description covers edge cases (size limit, no overwrite, no directories) and guides an agent toward the correct invocation without missing critical information.

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 coverage is 100% with each of the 5 parameters fully described. The description does not add new per-parameter meaning beyond the schema, so the baseline 3 applies. It does clarify the overall purpose of the output_path behavior (server-side, parent dir must exist), which is already in 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 the action ('Write one attachment') and the resource (a local file on the server), and distinguishes itself from the sibling tool get_attachment by specifying it returns only the path and avoids loading bytes into the conversation.

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?

The description explicitly tells when to use this tool: 'Use this for attachments too large to read inline with get_attachment', naming the alternative and the condition. It also preemptively clarifies behavior (never overwrites, no directories created), which helps an agent decide if this is the right tool.

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/combor/baryon-mcp'

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