Skip to main content
Glama
email-mcp

email-mcp

by kerodkibatu

download_attachments

Save a real email attachment to a dated, sender-and-subject subfolder under Downloads, returning the folder path and saved file list; inline images are skipped unless you opt in.

Instructions

Save real (non-inline) attachments from an email to a descriptive subfolder under the user's Downloads folder (~/Downloads/email-attachments/YYYY-MM-DD_sender_subject/). Returns the folder path and the list of saved files. Inline images (signatures, embedded screenshots) are filtered out by default — set include_inline=true to save them too.

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": {
      "entry_id": "<entry_id>"
    },
    "name": "download_attachments"
  }
}

Input Schema

NameRequiredDescriptionDefault
entry_idYesEntryID of the email (from query_emails or read_email)
include_inlineNoAlso save embedded inline images (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the exact filesystem destination, that a subfolder is created, what is returned (folder path plus saved-file list), and the default inline-image filtering. It omits collision/overwrite behavior if the target folder already exists, which is the main remaining gap.

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?

Three sentences, front-loaded with the action and destination, then return value, then the one behavioral flag an agent might need. No filler or redundant restatement of the name.

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 two-parameter write-to-disk tool with no output schema, the description supplies the return shape and the default filtering rule, which is most of what an agent needs. Only edge-case behavior (existing folder, name collisions) is left unstated.

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 already 100%, so the baseline is 3; the description goes further by clarifying what 'inline' means (signatures, embedded screenshots) and by implying the destination is derived rather than a parameter. entry_id is not re-explained, but the schema covers it with its source tools.

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 specific verb and resource ('Save real (non-inline) attachments from an email') and adds scope detail (destination folder pattern) that no sibling tool covers. An agent can distinguish this from forward_email or read_email purely from the sentence.

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?

Gives clear operative context: it saves non-inline attachments by default and tells the agent exactly how to change that behavior with include_inline=true. It does not name alternative tools or state when not to use this one, which keeps it below a 5.

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