Skip to main content
Glama
This connector has been deprecated

Replaced by SuperMailbox.

Duplicate listing. Please use the official SuperMailbox connector.

get_attachment

Read-onlyIdempotent

Fetch one attachment on demand. The file is returned as an embedded MCP resource; metadata includes its safe filename, MIME type, and size.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "accountId": "<accountId>",
      "messageId": "<messageId>",
      "attachmentId": "<attachmentId>"
    },
    "name": "get_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountIdYes
messageIdYesPass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations.
attachmentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description usefully adds the return shape (embedded MCP resource plus filename, MIME type, and size), but says nothing about size limits, auth requirements, or failure behavior for a tool that may pull large binary data.

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 short sentences, front-loaded with the action and immediately followed by the return contract. Every clause carries information; nothing is redundant.

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?

With no output schema, the description appropriately describes the return value (embedded resource, filename, MIME type, size) and marks it read-only via annotations. The main gap is undocumented parameter provenance for accountId and attachmentId.

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?

Only messageId has schema documentation (33% coverage); accountId and attachmentId are bare strings. The description adds no meaning for any parameter, such as where attachmentId comes from or how accountId scopes the lookup, so it fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Fetch one attachment') and clarifies delivery mechanism (embedded MCP resource) with returned metadata fields. It is clearly distinguishable from get_email and get_cached_message by the 'attachment' resource, though it does not explicitly contrast with them.

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?

'on demand' hints that attachment bytes are not delivered by other tools and must be fetched explicitly, which is useful implied guidance. However, there is no explicit when-to-use vs. when-not guidance or named alternative.

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.

Resources