Skip to main content
Glama
email-mcp

email-mcp

by a1exsun

download_attachment

Saves an email attachment to a local directory and returns the saved file path, letting you retrieve attachments from a specific message and folder.

Instructions

Save an email attachment to a local directory. Returns the saved path.

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": {
      "uid": "<uid>",
      "filename": "<filename>",
      "save_dir": "<save_dir>"
    },
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYes
folderNoFolder path from list_foldersINBOX
accountNoMailbox: WORK | PERSONAL. Default WORK
filenameYes
save_dirYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden and falls well short. It does not say whether an existing file at the target path is overwritten, whether save_dir must already exist or is created, what happens if the attachment is missing, or what permission or auth constraints apply. Disclosing that it returns the saved path is the one behavioral fact provided.

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 with zero filler, and the core action is front-loaded. Nothing is repeated and nothing needs trimming. Brevity is not the problem here; it is under-specification.

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 simple two-sentence description the shape is right, but with five parameters at 40% schema coverage and no output schema, the definition omits information an agent needs to invoke it correctly, notably the meaning of uid/filename and overwrite behavior. Wait, this is a copy error.

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

Parameters2/5

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

Five parameters with only 40% schema coverage; the schema documents folder ('path from list_folders') and account ('WORK | PERSONAL, default WORK'), but uid, filename, and save_dir are bare. The description adds nothing, leaving open whether filename must match the attachment name from a prior read and whether save_dir is a path that must exist.

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?

States a specific verb and resource: 'Save an email attachment to a local directory.' That is unambiguous and unlikely to be confused with any listed sibling, though the description never names or rules out an alternative tool. The second sentence adds the return value, which strengthens the purpose statement.

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?

There is no when-to-use guidance at all. It never says to first locate the attachment via read_email or list_folders (even though the schema's folder param points at list_folders), nor does it state prerequisites such as the message needing an attachment. The agent must infer the entire workflow.

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