Skip to main content
Glama

Download Attachment

confluence_download_attachment
Read-onlyIdempotent

Download a Confluence attachment by ID as a base64-encoded MCP embedded resource, enabling access without server filesystem access; files over 50 MB return an error.

Instructions

Download an attachment from Confluence as an embedded resource.

Returns the attachment content as a base64-encoded embedded resource so that it is available over the MCP protocol without requiring filesystem access on the server. Files larger than 50 MB are not downloaded inline; a descriptive error message is returned instead.

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": {
      "attachment_id": "<attachment_id>"
    },
    "name": "confluence_download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
attachment_idYesThe ID of the attachment to download (e.g., 'att123456789'). Find attachment IDs using get_attachments tool. Example workflow: get_attachments(content_id) → use returned ID here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.0
    • addedInput schema / properties / attachment_id / pattern
      Added value: +"^(att)?\\d+$"
  2. Changed1 schema field changedv1.4.1
    • addedInput schema / additionalProperties
      Added value: +false
  3. Addedv1.0.1

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds real value beyond them by disclosing the base64 embedded-resource return format and the 50 MB inline cap that yields an error message instead of content. It stops short of saying how that error surfaces or whether alternatives exist for large files.

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 three sentences are front-loaded: purpose, return mechanism, and size limit. Nothing is wasted, though 'Returns the attachment content as a base64-encoded embedded resource' restates the first sentence's embedded-resource phrase, costing a little redundancy.

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?

For a one-parameter read tool with no output schema and full annotation coverage, the description covers purpose, delivery format, size limitation, and failure behavior. An agent has what it needs to call the tool correctly and interpret the result.

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 coverage is 100%: the single attachment_id parameter is fully documented in the schema with a pattern example and a discovery workflow. The description adds no meaning beyond the schema for the parameter, so 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?

This description uses a specific verb, 'Download', and a specific resource, 'an attachment from Confluence', and also names the delivery mechanism, an embedded base64 resource. This distinguishes it from sibling retrieval tools such as confluence_download_content_attachments and jira_download_attachments, which are plural or cross-system.

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?

The description implies use when an agent needs attachment bytes over MCP without server filesystem access, and the schema text gives the prerequisite workflow: get_attachments → use returned ID. However, it does not state when not to use this tool or compare it explicitly with the bulk sibling, so routing is only partly guided.

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