Skip to main content
Glama
weirdapps

yahoo-access

by weirdapps

yahoo_download_attachments

Download attachments from a Yahoo Mail message to an allowed local folder. Filter by filename, and choose the mailbox folder or account.

Instructions

Download attachments from a message to disk.

Args: msg_id: Message UID from yahoo_list_mail / yahoo_search_mail folder: Mailbox folder (default: INBOX) out_dir: Directory to save files (default: ~/Downloads). Must lie inside an allowed folder: ~/Downloads or a temp folder (the system temp dir, /tmp), unless YAHOO_MAIL_ALLOWED_DIRS replaces that list. Anything else is refused. filename_filter: Only download files matching this substring (case-insensitive) account: Account key from accounts.json, e.g. "personal" or "work". Default: the account that file marks as default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderNoINBOX
msg_idYes
accountNo
out_dirNo
filename_filterNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose meaningful behavior: a filesystem write with a hard security constraint (allowed directories, refusal of anything else, YAHOO_MAIL_ALLOWED_DIRS override) and default account resolution from accounts.json. It omits overwrite behavior, what happens when no attachments match, and any size/rate limits.

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?

Front-loaded purpose sentence followed by structured Args entries; each line adds real meaning. The out_dir entry is the longest but its length is justified by the security constraint it conveys.

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?

An output schema exists, so return-value explanation is unnecessary, and the description covers the risky parts (write target restrictions, account selection, filtering). Minor gaps remain around the no-match/no-attachment case and error behavior, but an agent has what it needs to invoke it correctly.

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

Parameters5/5

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

Schema description coverage is 0% (all 5 params undocumented in the schema), yet the description documents every one: msg_id provenance, folder default INBOX, out_dir default plus the security restriction, filename_filter as a case-insensitive substring match, and account key/default semantics.

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 (download) and resource (attachments from a message) with the destination (to disk). No sibling tool overlaps this action, so an agent can identify it unambiguously from the name and first sentence.

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?

It tells the agent where msg_id comes from (yahoo_list_mail / yahoo_search_mail), which is useful routing context, but gives no explicit when-to-use/when-not guidance or alternatives for retrieving attachments versus other mail operations.

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