Skip to main content
Glama
sweetrb

apple-mail-mcp

by sweetrb

fetch-attachment

Retrieve an attachment's raw bytes as base64 by message ID and attachment name, returning size and MIME type for inline processing without saving to disk.

Instructions

Use when: retrieving an attachment's raw bytes inline as base64 (by message id and attachmentName), e.g. to process its contents without touching disk. Returns: the attachment's bytes base64-encoded, with its size and (for IMAP) MIME type. Do not use when: you don't know the attachment name (use list-attachments first) or you just want it saved to disk (use save-attachment).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
attachmentNameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bytesNo
mimeTypeNo
contentBase64No
attachmentNameNo
Behavior4/5

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

No annotations provided, so description carries the burden. It discloses return format (base64, size, MIME type) but does not mention side effects or permissions. Adequate for a read operation.

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, well-structured with clear sections (Use when, Returns, Do not use when). No unnecessary words.

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?

Tool has output schema (not provided but referenced), so return details elsewhere. Description covers key context: base64 encoding, size, MIME type, and when to use alternatives. Complete for a simple tool.

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

Parameters3/5

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

Schema coverage is 0%, and description only mentions 'by message id and attachmentName' without elaborating on the pattern or constraints. Schema is clear, but description adds minimal value.

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 the tool retrieves an attachment's raw bytes as base64 for inline processing, using message ID and attachment name. It distinguishes from siblings like save-attachment and list-attachments.

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?

Explicitly provides 'Use when' and 'Do not use when' scenarios, including specific alternatives (list-attachments, save-attachment).

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