Skip to main content
Glama
yahoo-mail-mcp

yahoo-mail-mcp

by nx9161

ym_attachment

Download a single Yahoo Mail attachment to your local workspace, save it to a downloads folder, and get back the saved file path plus a SHA-256 hash for verification.

Instructions

Download one attachment to ~/workspace/yahoo-mail-downloads (or ./yahoo-mail-downloads); returns path + sha256

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>",
      "index": "<index>"
    },
    "name": "ym_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYes
indexYes
folderNoFolder name (default INBOX)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the important behavioral facts: the tool writes to disk, the exact destination directory, the relative-path fallback, and that it returns a path plus a sha256 digest. It says nothing about overwrite behavior when a file exists, permission/auth needs, or size limits on large attachments.

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?

A single front-loaded sentence with the action first, then destination, then return values; nothing is wasted. The parenthetical path alternative is the only slightly cluttered element.

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?

Return values are covered, which matters since there is no output schema, and the write destination is clear. But for a filesystem-writing tool with zero annotations and two undocumented required parameters, it should say more about attachment indexing and file-collision behavior.

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?

Schema description coverage is only 33% (just the folder default), and the description adds no meaning for uid or index beyond implying they select the message and the attachment. It does not say whether index is zero- or one-based, or how an agent discovers valid indexes, leaving the two required parameters underspecified.

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?

"Download one attachment" gives a specific verb plus a bounded resource, and the destination and return values are stated inline. It is distinguishable from ym_read/ym_read_raw by the word "attachment", though it never names those siblings explicitly.

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 only implied: an agent can infer this is the tool for saving attachment content, and the folder fallback is mentioned. There is no explicit when-to-use, no statement of prerequisites, and no pointer to ym_read for getting attachment metadata first.

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