Skip to main content
Glama

attachments

List metadata, view text content, or save files from an email message. Provide message ID and, for view/download, attachment ID.

Instructions

Inspect or retrieve email attachments. action=list (default) returns metadata for all attachments on messageId (id, name, contentType, size, isInline) — read-only. action=view returns inline content for text/JSON/XML attachments via attachmentId; binary types require download. action=download saves the attachment to disk at outputDir (default system tmpdir, auto-created) and returns the saved file path. messageId is required for all actions; attachmentId is required for view/download. Use outputVerbosity to control list field count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoAction to perform (default: list)
savePathNoDEPRECATED alias for `outputDir`. Will be removed in a future release.
messageIdYesEmail message ID (required)
outputDirNoDirectory to save file (action=download, default: system tmpdir). Auto-created if missing.
attachmentIdNoAttachment ID (action=view/download, required)
Behavior4/5

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

The description accurately notes that list is read-only, while view and download have side effects (inline content retrieval and file saving). It mentions auto-creation of outputDir and deprecation of savePath. Annotations indicate readOnlyHint=false and destructiveHint=false, and the description aligns with that. No contradictions. Could be improved by stating permission requirements or rate limits, but currently adequate.

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 a single paragraph that is well-structured and front-loaded with the primary purpose. Every sentence adds distinct information without redundancy. It efficiently covers all actions, parameters, and return values.

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?

Despite lacking an output schema, the description fully explains return values for each action: list returns metadata fields, view returns inline content, download returns a file path. All essential aspects (actions, required parameters, special behavior for binary types, deprecation) are covered. The description is complete for a tool of this complexity.

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 100%, providing baseline for 3. The description adds significant value beyond the schema: explains the purpose of each action enum value, clarifies default behavior, notes deprecation of savePath, and outlines the behavior of outputDir (auto-created, defaults to tmpdir). This compensates well for the already complete schema.

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 'Inspect or retrieve email attachments' and enumerates the three actions (list, view, download) with specific behaviors. It effectively distinguishes this tool from siblings like read-email or export by focusing on attachment operations.

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

Usage Guidelines4/5

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

The description provides clear guidance on when to use each action (list for metadata, view for inline content of text/JSON/XML, download for binary attachments) and specifies required parameters per action. While it doesn't explicitly state when not to use this tool versus alternatives, the context is sufficient for an AI agent to make appropriate decisions.

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/littlebearapps/outlook-assistant'

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