Skip to main content
Glama

get_attachment

Download an email attachment and retrieve its size and base64-encoded content for decoding.

Instructions

Download a single attachment from an email. Returns { size, contentBase64 } — decode the base64 to get the bytes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageIdYes
attachmentIdYes
Behavior4/5

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

Discloses the return format { size, contentBase64 } and that base64 must be decoded. No annotations provided, so the description carries the burden; it adequately conveys the output nature.

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?

Two sentences with no fluff, front-loading the action and output format. Every sentence adds value.

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

Completeness3/5

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

Given no annotations and no output schema, the description provides return format info but lacks parameter explanations and usage context. Adequate but not fully complete.

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

Parameters2/5

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

Schema description coverage is 0%, and the description does not explain the parameters (messageId, attachmentId). While names are suggestive, the description should elaborate to compensate for missing schema descriptions.

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?

Clearly states it downloads a single attachment from an email, distinguishing it from siblings like get_email (which gets the email itself). The verb 'download' and resource 'attachment' are specific.

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?

No explicit when-to-use or when-not-to-use guidance, but the tool name and siblings imply it's for downloading attachments after retrieving an email. No alternatives mentioned.

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/Murali1889/MCP-mursa'

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