Skip to main content
Glama
abconsultdev

IMAP MCP

by abconsultdev

Anhang speichern

mail_save_attachment

Save email attachments to a local folder. Specify the message UID and choose the attachment index or omit to save all, with optional target directory and mailbox selection.

Instructions

Speichert einen Anhang einer Nachricht auf der Festplatte. Zielordner ist standardmäßig der downloadDir aus der Konfiguration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYes
indexNoIndex des Anhangs aus mail_read. Weglassen = alle Anhänge.
accountNoE-Mail-Adresse (oder Name) des Postfachs. Weglassen, wenn nur eines eingerichtet ist. Bei mehreren Pflicht - mail_list_accounts zeigt die verfügbaren. Beim Senden immer das Postfach wählen, von dem der Nutzer absenden will, und im Zweifel nachfragen.
mailboxNoIMAP-Ordner, z.B. "INBOX" oder "INBOX/Projekte".INBOX
targetDirNoZielordner (absoluter Pfad). Default: downloadDir der Konfiguration.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With only openWorldHint present and no read-only or destructive annotations, the description carries the burden of disclosing side effects. It does explicitly state that the tool saves to the hard disk and defaults to downloadDir, which is meaningful. However, it does not mention file naming, overwrite behavior, or whether saving affects the mail server state.

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 extremely concise: two short sentences that immediately state the core behavior and the default destination. There is no filler or redundant wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter tool with no output schema, the description is minimally adequate but leaves gaps. It does not mention that omitting index saves all attachments, what the tool returns, or how multiple accounts are handled. The schema fills in parameter details, but the description alone would not fully prepare an agent to invoke the tool confidently.

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 description coverage is 80%, so the schema already documents most parameters. The description only adds that targetDir defaults to downloadDir, which is also repeated in the schema, so it contributes no significant semantic value beyond the structured definitions.

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 states a specific action and resource: 'Speichert einen Anhang einer Nachricht auf der Festplatte.' This clearly identifies it as the save-attachment operation and distinguishes it from the sibling mail tools, none of which write attachments to disk.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool instead of alternatives, nor does it mention prerequisites such as first reading the message with mail_read. The only usage hint appears in the schema's index parameter ('aus mail_read'), not in the description itself.

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