Skip to main content
Glama

Get attachment

attachments.get
Read-onlyIdempotent

Download an attachment. The file contents are returned base64-encoded in the JSON "data" field.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mailIdYesMail ID
mailboxIdYesMailbox ID
attachmentIdYesAttachment ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesAttachment ID
dataYesFile contents, standard base64
filenameYesAttachment file name
expiresAtNoExpiry timestamp (RFC 3339)
sizeBytesNoSize in bytes
contentTypeNoMIME type

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The description adds useful behavioral detail beyond the annotations by specifying that the file contents are returned base64-encoded in the JSON data field. The annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered; the description goes further on output format.

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 two concise sentences with no filler. The core action is front-loaded, and the return encoding detail is placed second, making it easy to parse quickly.

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?

For a simple, read-only attachment download, the description, schema, and annotations cover the essential behavior. The output schema presumably documents the return shape, so explaining base64 encoding is a helpful addition. It could mention how attachment IDs are discovered, but this is not a blocking gap.

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?

All three parameters have schema descriptions, so the baseline is 3. The tool description does not add parameter-level meaning beyond what the schema provides, such as how to obtain the IDs or guarantee the relationship between mailboxId, mailId, and attachmentId.

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 states a specific action, 'Download an attachment,' and identifies the exact resource being acted upon. This clearly distinguishes it from sibling operations like attachments.list, attachments.add, and attachments.delete.

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?

Usage is implied by the verb 'Download': use this when you need attachment content. However, there is no explicit guidance about when not to use it or how it relates to alternatives such as attachments.list, which would help an agent distinguish metadata retrieval from content retrieval.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.6/5.0
Disambiguation4/5

The resource namespaces make most tools easy to tell apart, and each action has a clear target. A couple of boundary cases exist, such as attachments.add versus mails.inject, since both relate to putting files on a simulated email, but descriptions mostly resolve the ambiguity.

Naming Consistency5/5

Every tool follows the same resource.action convention, and the action verbs are predictable across the set, including delete_bulk and rotate_secret. The pattern is uniform even across different resource families, making the API very predictable.

Tool Count2/5

With 40 tools, the surface is quite large for an MCP server, even though the namespaces are clean. Many singular and bulk delete variants could be combined or expressed as parameters to reduce the count, so the set feels heavier than it needs to be.

Completeness4/5

The server covers the main lifecycle needs for mailboxes, emails, attachments, archived mailboxes, domains, identities, OAuth clients, and team management. Minor gaps remain, such as no mailbox update/rename, no manual archive action, and no invitation acceptance endpoint, but agents can work around these.