Skip to main content
Glama

Get Content Attachments

confluence_get_attachments
Read-only

List all attachments for a Confluence page or blog post, returning metadata such as file type, size, and download URL. Use it to discover attached files, verify existence, or retrieve attachment IDs for downloads.

Instructions

List all attachments for a Confluence content item (page or blog post).

Returns metadata about attachments including:

  • Attachment ID, title, and file type

  • File size and download URL

  • Creation/modification dates

  • Version information

Important: Confluence API returns 'application/octet-stream' as the media type for most binary files (PNG, JPG, PDF) instead of specific types like 'image/png'. For filtering by file type, using the 'filename' parameter is more reliable (e.g., filename='*.png' pattern matching if supported, or exact filename).

Useful for:

  • Discovering what files are attached to a page

  • Getting attachment IDs for download operations

  • Checking if a specific file exists

  • Listing images/documents for processing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo(Optional) Maximum number of attachments to return per request (1-100). Use pagination (start/limit) for large attachment lists. Default: 50
startNo(Optional) Starting index for pagination. Use 0 for the first page. To get the next page, add the 'limit' value to 'start'. Default: 0
filenameNo(Optional) Filter results to only attachments matching this filename. Exact match only. Example: 'report.pdf'
content_idYesThe ID of the Confluence content (page or blog post) to list attachments for. Example: '123456789'
media_typeNo(Optional) Filter by MIME type. **Note**: Confluence API returns 'application/octet-stream' for most binary files (PNG, JPG, PDF) instead of specific MIME types like 'image/png'. For more reliable filtering, use the 'filename' parameter. Examples: 'application/octet-stream' (binary files), 'application/pdf', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' (for .docx)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds valuable behavioral context by disclosing the media type quirk (application/octet-stream for binary files) and recommending filename filtering instead. It also lists the metadata fields returned, giving the agent a clear picture of the tool's output. No contradictions with 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 well-structured with a clear opening, a bulleted list of return metadata, a highlighted 'Important' caveat, and a 'Useful for' section. Every sentence adds value and supports tool selection or invocation. Despite its length, it remains focused and scannable.

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 tool's moderate complexity and the presence of an output schema, the description covers all essential aspects: what it lists, what metadata is returned, a critical API behavior caveat, and practical use cases. It doesn't need to explain return values in detail because the output schema exists. It is complete and well-suited for an agent deciding when and how to use it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all parameters are documented. The description goes beyond the schema by explicitly advising that 'filename' is a more reliable filter than 'media_type' and mentioning pattern matching support. This adds practical interpretation that the schema alone does not fully convey, warranting a score above the baseline.

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 opens with a specific verb and resource: 'List all attachments for a Confluence content item (page or blog post).' It clearly distinguishes this from sibling tools like download_attachment, upload_attachment, or delete_attachment by focusing on listing metadata rather than performing an action on files. The scope is explicit and unambiguous.

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 'Useful for' section provides clear practical contexts (discovering files, getting IDs for download, checking existence, listing for processing). It implicitly positions the tool as a precursor to download operations, which differentiates it from sibling download tools. However, it does not explicitly name alternative tools or state when not to use this tool, so it falls short of full alternative/exclusion guidance.

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/hieptran87/atlassian-mcp-server'

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