Skip to main content
Glama

Get Content Attachments

confluence_get_attachments
Read-only

List all attachments on a Confluence page or blog post to discover files, retrieve attachment IDs and metadata, or check if a specific file exists.

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

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

Annotations only declare readOnlyHint=true, and the description adds substantial behavioral context: the API's application/octet-stream media type quirk, the reliability of filename filtering, and the returned metadata fields. This goes beyond the annotations and helps agents avoid a common filtering pitfall.

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 description is well-structured with a clear lead sentence, bulleted return details, an highlighted important note, and a useful-for list. It is slightly longer than strictly necessary because the media type caveat is repeated from the schema, but the formatting keeps it scannable and front-loaded.

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 output schema exists, parameters are 100% documented, and annotations indicate a read-only operation, the description provides complete context. It explains return fields, the core API behavior caveat, and common use cases, so an agent has everything needed to invoke the tool correctly and interpret results.

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%, so all parameters are already well documented. The description reinforces the media type caveat and suggests filename as more reliable, adding a small amount of context beyond the schema. However, it doesn't substantially extend parameter semantics for the rest of the parameters, and the wildcard/pattern matching hint conflicts slightly with the schema's exact match statement.

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 states a specific verb ('List all attachments') and resource ('Confluence content item (page or blog post)'), and differentiates from siblings by focusing on metadata listing rather than download or upload operations. This distinguishes it clearly from tools like confluence_download_attachment and confluence_get_page_images.

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 explicit use cases ('Discovering what files are attached', 'Getting attachment IDs for download operations', etc.), giving clear context for when to use the tool. However, it does not explicitly name alternative tools or state when not to use this tool in favor of a sibling.

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/Nikel-san/AtlMCPforDC'

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