Skip to main content
Glama

Download Attachment

confluence_download_attachment
Read-only

Download a Confluence attachment as a base64-encoded embedded resource by providing its attachment ID, with support for files up to 50 MB.

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.

Args: ctx: The FastMCP context. attachment_id: The ID of the attachment.

Returns: An EmbeddedResource with base64-encoded content, or a TextContent with an error or size-exceeded message.

Input Schema

TableJSON 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.
Behavior5/5

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

The annotation 'readOnlyHint: true' is complemented by the description explaining the base64 encoding and the size limit behavior. It adds context about the MCP protocol and error handling, fully disclosing behavioral traits beyond annotations.

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 concise, front-loaded with the primary purpose, and every sentence provides necessary information without redundancy. It efficiently covers the return format and size constraint.

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?

Given the single parameter, thorough schema documentation, and presence of annotations, the description fully covers the return type, error cases, and usage context. No output schema is needed as the return is clearly described.

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?

The input schema already provides comprehensive documentation for the single parameter 'attachment_id', including an example and workflow guidance. The description does not add additional parameter semantics beyond the schema, so 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?

The description clearly states the verb 'Download', the resource 'attachment from Confluence', and the format 'embedded resource' (base64-encoded). It distinguishes from sibling tools like 'confluence_download_content_attachments' by focusing on a single attachment.

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 provides a specific constraint for files larger than 50 MB, and guides the user to find attachment IDs via get_attachments. However, it does not explicitly compare with the alternative 'confluence_download_content_attachments' for multiple downloads.

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/GeiserX/atlassian-browser-mcp'

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