Skip to main content
Glama

upload_attachment

Attach a file to a Confluence page by providing a local path or base64 content. Specify the page ID, and optionally set filename, content type, and comment.

Instructions

Upload a file as an attachment to a page.

Can upload from a local file (input_file) or from base64 content.

Args: page_id: The page ID. filename: Name for the attachment (auto-detected from input_file if not given). content_base64: File content as base64 (ignored if input_file is provided). content_type: MIME type (auto-detected from filename if not given). comment: Optional comment for the attachment. input_file: Path to a local file to upload directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentNo
page_idYes
filenameNo
input_fileNo
content_typeNo
content_base64No

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden and discloses important behaviors: content_base64 is ignored if input_file is provided, and if filename/content_type are not given they are auto-detected. It also indicates an optional comment parameter. However, it does not mention side effects, permissions, size limits, or overwrite semantics, which would be valuable for a mutation tool.

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 opens with a one-sentence summary, then sensibly breaks down all parameters in a structured Args list. It is concise for the amount of information conveyed, though slightly verbose with parameter details that are necessary given the schema's lack of descriptions.

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 six parameters, two input modes, and no annotations, the description thoroughly covers how to correctly invoke the tool. It explains precedence rules, auto-detection behavior, and all parameter meanings. The existence of an output schema means return values need not be explained. The description is complete for effective use.

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

Parameters5/5

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

The schema provides no descriptions (0% coverage), but the description's Args block explains every parameter, including the crucial relationships: content_base64 is ignored when input_file is given, filename is auto-detected, and content_type is auto-detected from filename. This adds meaning far beyond the schema's titles and property names.

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 'Upload a file as an attachment to a page' with a specific verb and resource, and distinguishes itself from siblings like download_attachment and upload_image_and_embed by focusing on general file attachments. It also explicitly names the two input modes (local file or base64), making the purpose unambiguous.

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 when to use this tool (for uploading attachments) but does not explicitly compare it with alternatives like upload_image_and_embed or download_attachment. It mentions the two input methods (local file vs base64) but lacks direct 'when to use this over X' guidance. The usage context is clear but exclusions are not stated.

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/1vecera/confluence-mcp'

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