Skip to main content
Glama

confluence_upload_attachment

Upload files or content as attachments to Confluence pages using local file paths or base64 encoded data, requiring page edit permissions.

Instructions

上传附件到指定 Confluence (KMS) 页面。支持本地文件路径(filePath)或 base64 内容(contentBase64)。注意:需要页面编辑权限。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdYes要上传附件的页面 ID
filePathNo本地文件路径(优先使用)。建议使用绝对路径。
filenameNo附件文件名(当使用 contentBase64 时必填;使用 filePath 时可选)
contentBase64No附件内容 base64(与 filename 配合使用;与 filePath 二选一)
commentNo可选:附件备注
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does disclose the permission requirement ('需要页面编辑权限') and mentions the two input methods (filePath vs contentBase64), which is useful context. However, it doesn't describe what happens on success/failure, whether the operation is idempotent, rate limits, or file size restrictions. For a mutation tool with zero annotation coverage, this leaves significant behavioral gaps.

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 perfectly concise - two sentences that each earn their place. The first sentence states the core purpose and supported input methods. The second sentence provides crucial permission information. No wasted words, and the most important information (what the tool does) is front-loaded.

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

Completeness3/5

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

For a mutation tool with 5 parameters, no annotations, and no output schema, the description is adequate but has clear gaps. It covers the basic purpose, input methods, and permission requirement, but doesn't describe the return value, error conditions, or behavioral constraints. Given the complexity of file upload operations and lack of structured metadata, more contextual information would be helpful.

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 the schema already documents all 5 parameters thoroughly. The description adds minimal value beyond the schema - it mentions the two input methods (filePath/contentBase64) and their relationship, but doesn't provide additional syntax, format details, or constraints beyond what's in the parameter descriptions. Baseline 3 is appropriate when schema does the heavy lifting.

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 specific action ('上传附件' - upload attachment) and target resource ('指定 Confluence (KMS) 页面' - specified Confluence page), distinguishing it from sibling tools like confluence_get_page_attachments (which retrieves attachments) and confluence_update_page (which modifies page content). The mention of Confluence/KMS provides additional context about the platform.

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 about when to use this tool ('上传附件到指定 Confluence 页面' - upload attachment to specified Confluence page) and mentions permission requirements ('需要页面编辑权限' - requires page edit permission). However, it doesn't explicitly state when NOT to use it or name specific alternative tools from the sibling list for different attachment-related operations.

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/caijohnny/confluence-node'

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