Skip to main content
Glama
qihaze123
by qihaze123

confluence_upload_attachment

Upload an attachment to a Confluence page. Supports local files or base64 data, and automatically updates existing files with the same name.

Instructions

Upload an attachment to a Confluence page. Supports local filePath or base64Data; same-name files are updated by default. Returns attachment fields and image storage markup when applicable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdYesConfluence page ID
filePathNoLocal file path to upload from the MCP server machine
base64DataNoBase64 file content, optionally as a data URL
fileNameNoAttachment file name. Required for base64Data; defaults to basename(filePath)
contentTypeNoMIME type such as image/png. Inferred from fileName when omitted
commentNoAttachment version comment
minorEditNoWhether this attachment version is a minor edit (default true)
overwriteNoUpdate same-name attachment as a new version when true (default true); fail on duplicates when false
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: supports two data sources, updates same-name files by default (overwrite), and returns attachment fields and image storage markup. It could mention potential side effects like file size limits, but overall covers main behavior.

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 very concise: three sentences covering purpose, data source options, overwrite behavior, and return value. Every sentence adds information, and the main action is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (8 parameters, 1 required, no output schema), the description covers the key aspects: how to provide file data, overwrite behavior, and return format. It relies on the schema for individual parameter details, which is appropriate since schema coverage is 100%. Minor omission: no mention of error cases.

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 description coverage is 100%, so baseline is 3. The description adds value by summarizing the two input methods and the return behavior (image storage markup), which is not in the schema due to lack of output schema. This goes beyond what the schema provides.

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 it uploads an attachment to a Confluence page, and specifies two methods (filePath or base64Data) and default overwrite behavior. This distinguishes it from sibling tools, which focus on pages, sections, and anchors, not attachment upload.

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 clear context for usage by explaining the two data source options and default overwrite behavior. It doesn't explicitly state when not to use it or name alternatives, but sibling tools are sufficiently different that confusion is unlikely.

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/qihaze123/confluence-mcp-server'

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