Skip to main content
Glama

attachments

List, view, or download email attachments from a message. Provides metadata, inline content for text formats, or saves files to disk.

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)
messageIdYesEmail message ID (required)
attachmentIdNoAttachment ID (action=view/download, required)
outputDirNoDirectory to save file (action=download, default: system tmpdir). Auto-created if missing.
savePathNoDEPRECATED alias for `outputDir`. Will be removed in v3.8.0.
Behavior3/5

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

The description discloses key behaviors such as read-only nature of list/view and download writing to disk, aligning with annotations. However, it does not cover potential side effects like disk space usage or security implications, which would be valuable for an agent.

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?

The description is well-structured and informative, front-loading the purpose and then detailing each action. While slightly long, every sentence adds value, with no unnecessary repetition.

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?

Given the tool's three actions and no output schema, the description comprehensively covers return types for each action (metadata, inline content, file path). It also notes deprecation and default behavior. Minor gaps exist, such as error handling or permissions, but overall it's commendably complete.

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?

The schema covers all parameters (100%), so baseline is 3. The description adds meaningful context for action, messageId, attachmentId, and outputDir, but introduces a non-existent parameter (outputVerbosity), which confuses the schema. This inconsistency prevents a higher score.

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's purpose: inspecting or retrieving email attachments with three distinct actions. It also distinguishes from sibling tools by focusing specifically on attachments, making it easy for an agent to select correctly.

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, view, download) and notes constraints like binary types requiring download. However, it lacks explicit when-not-to-use or alternative tool references, leaving some ambiguity.

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