Skip to main content
Glama

save_attachment

Save an Outlook email attachment to a chosen folder on your computer, using a message ID and attachment name or index. It preserves existing files by adding a number when a name already exists.

Instructions

Save an attachment to a folder on this computer. Never overwrites: adds " (1)" etc. if needed.

Args:
    message_id: The message.
    attachment: Attachment name, its index from read_message, or "all".
    dest_dir: Existing folder inside the allowed folders (default ~/Downloads).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message_id": "<message_id>",
      "attachment": "<attachment>"
    },
    "name": "save_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dest_dirNo~/Downloads
attachmentYes
message_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description adds genuinely useful behavioral facts: the tool never overwrites and instead appends ' (1)' style suffixes, and dest_dir must be an existing folder inside an allowed set. It does not say what is returned (e.g. the final saved path) or what happens if the folder is invalid, leaving some gaps.

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?

Two short sentences plus a compact argument list, with the most decision-relevant behavior (target folder, non-overwrite policy) front-loaded. Every line carries information and there is no filler.

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?

For a 3-parameter write tool with no output schema and no annotations explaining file handling, the description covers the essentials: destination constraints, default, non-overwrite semantics, and the three accepted attachment forms. It stops short of describing the return value or error behavior for a missing/invalid destination folder.

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 coverage is 0%, so the description must carry parameter meaning, and it largely does: it explains that attachment can be a name, an index from read_message, or the literal 'all', and that dest_dir defaults to ~/Downloads and must be existing and within allowed folders. Only message_id ('The message') remains thin, which keeps it from a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb and resource ('Save an attachment to a folder on this computer'), so an agent knows exactly what the call does. It does not name or distinguish itself from any sibling, but no sibling in the listed set performs a comparable save-to-disk action, so ambiguity is low.

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?

Usage is implied rather than stated: the attachment argument references 'its index from read_message', which hints that read_message should be called first, and the dest_dir constraint hints at needing an existing allowed folder. There is no explicit when-to-use / when-not-to-use guidance or statement of prerequisites or failure conditions.

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