Skip to main content
Glama
smankoo

owlpost

save_attachment

Idempotent

Download one email attachment from a specified account, folder, and message UID, then save it to a local path without modifying the mailbox.

Instructions

Download one attachment from a message and write it to the local filesystem.

The mailbox is not modified. Returns the written path, size, MIME type and original filename. An existing file at the target path is overwritten.

Args: account: Account name from list_accounts. folder: Folder containing the message. uid: Message UID. part: 1-based part index from read_email's attachments list. save_to: Destination. A directory (trailing slash, existing directory, or a path without an extension) keeps the original filename; anything else is used as the full file path. ~ is expanded and missing directories are created.

Input Schema

NameRequiredDescriptionDefault
uidYes
partYes
folderYes
accountYes
save_toYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

With annotations only flagging readOnlyHint=false and idempotentHint=true, the description carries the real behavioral load and does so well: mailbox is not modified, an existing target file is silently overwritten (key data-loss risk), tilde is expanded, and missing directories are created. Return contents are also disclosed since no output schema exists.

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?

Purpose leads, behavior follows, then parameters — a sound front-loaded order with essentially no wasted words. The multi-line blank-separated prose layout is slightly heavier than needed for a tool description, but every sentence carries information.

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 no output schema, the description supplies the return values (path, size, MIME type, filename); with annotations covering the safety profile, it adds the overwrite warning and filesystem side effects. Nothing an agent needs to invoke this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry all five required parameters, and it documents each one: account's source, folder/uid roles, part as a 1-based index from read_email, and save_to's directory-vs-file-path disambiguation with trailing-slash and extension heuristics. This is exactly the compensation a 0% schema demands.

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?

States a precise verb+resource+effect: download one attachment from a message and write it to the local filesystem. The singling out of 'one attachment' and the write-to-disk outcome clearly separate it from read_email, which merely lists parts.

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 establishes the upstream workflow by tying `part` to read_email's `attachments` list and `account` to list_accounts, so an agent knows what must precede this call. It stops short of naming when-not-to-use cases or explicit alternatives, which is the only gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.