Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

list-attachments

Enumerate attachments on an email message by ID, returning each file's name, MIME type, and size so you can preview before saving.

Instructions

Use when: enumerating a message's attachments (by id) to discover their names, MIME types, and sizes — typically before saving or fetching one. Returns: each attachment's name, MIME type, and size, plus a count. Do not use when: you want the bytes (use fetch-attachment for inline base64, or save-attachment to write to disk). Get the message id from search-messages or list-messages first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNo
attachmentsNo
Behavior4/5

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

No annotations are provided, so the description carries the behavioral transparency burden. It discloses the returned fields (name, MIME type, size, count) and explicitly notes it does not return bytes, which sets accurate expectations for follow-up actions. It does not cover errors or permissions, but for a read-only enumeration tool this is acceptable.

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?

The description is four short sentences, each with a distinct role: when to use, what it returns, when not to use, and prerequisite. It is front-loaded with the core purpose and contains no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With a single parameter, an output schema, and clear usage guidance, the description covers purpose, return values, alternatives, and prerequisite in a compact form. There are no significant gaps for an agent to select and invoke the tool correctly.

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% and the schema only provides a regex pattern, but the description clarifies that the sole 'id' parameter is the message id and tells the agent how to obtain it. The description compensates for the lack of schema-level semantic detail by tying the parameter to its real-world use.

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?

The description clearly states it enumerates a message's attachments by id to discover their names, MIME types, and sizes. It distinguishes itself from sibling tools by explicitly noting that fetch-attachment and save-attachment handle byte content, while this tool does not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides explicit 'Use when' and 'Do not use when' guidance, naming fetch-attachment and save-attachment as alternatives for byte retrieval. It also instructs the agent to obtain the message id from search-messages or list-messages first, giving a clear prerequisite for correct usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sweetrb/apple-mail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server