Skip to main content
Glama
soil-dev

capsulemcp

by soil-dev

get_attachment

Read-only

Downloads an attachment by ID. Returns images as viewable content, text and JSON as decoded text, and binary files as metadata plus base64 payload. Files exceeding the size limit return metadata only, flagged truncated.

Instructions

Download an attachment by id. Returns image content for image/* types (Claude can describe it natively); decoded text for text/* and application/json (small files); JSON metadata + base64 payload for other binary types (PDF, Office docs, etc.). Files exceeding maxSizeBytes (default 5MB) return metadata only with a truncated: true flag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesAttachment ID.
maxSizeBytesNoRefuse to return content over this size (default 5242880 bytes ≈ 5MB; max 26214400 bytes ≈ 25MB). Files exceeding the cap return metadata only with a 'truncated: true' flag.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.0
    • addedInput schema / required
      Added value: +[
      +  "id"
      +]
  2. Addedv1.7.0
  3. Removedv1.6.2
  4. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

The description discloses detailed behavioral traits beyond the readOnlyHint and destructiveHint annotations: image/* returns native image content, text/* and application/json return decoded text, other binary types return metadata + base64, and files exceeding maxSizeBytes return truncated metadata only. This is exactly the kind of response behavior an agent needs to handle results correctly.

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, front-loaded with the core action and resource, followed by a compact breakdown of return formats for different MIME families. No filler or redundancy; the brief mention of maxSizeBytes default in prose contextualizes the truncation flag without bloating the description.

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?

With no output schema, the description fully carries the burden of explaining return values, and it does so across all relevant cases: images, text/JSON, binary types, and oversize truncation. Parameter semantics are fully covered by the schema, so nothing an agent needs to call the tool correctly is missing.

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?

Schema description coverage is 100%, and the schema already documents both parameters, including maxSizeBytes' default (5242880), maximum (26214400), and truncation behavior. The description repeats the default but adds no new parameter semantics beyond what the schema provides. The baseline 3 is appropriate.

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?

States a specific verb and resource: 'Download an attachment by id.' The type-specific return details reinforce that this is a retrieval tool, not a mutation. It clearly distinguishes itself from the upload_attachment sibling by its download focus.

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 makes the tool's purpose unambiguous: retrieve attachment content by id. It doesn't explicitly name alternatives or when-not-to-use conditions, but the only related sibling (upload_attachment) is the inverse operation, so there is no genuine alternative for downloading. This provides clear context without needing explicit exclusions.

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

Deploy Server

Other Tools