Skip to main content
Glama

sync_file

Sync local files to Confluence pages by uploading content directly from your filesystem to specified URLs, maintaining exact file paths as provided.

Instructions

Sync a LOCAL file to a Confluence page. This tool reads the file directly from the filesystem.

⚠️ CRITICAL INSTRUCTIONS FOR AI:

  • file_path MUST be the EXACT path specified by the user

  • Do NOT infer or guess file path based on Confluence page title or URL content

  • If user says "sync readme.md to URL", find "readme.md" file, NOT files matching page title

  • If multiple files match, ask user to specify the exact path

  • This tool handles file reading internally - just pass the path

Examples:

  • User: "sync readme.md to https://..." → file_path: "/path/to/readme.md" (find readme.md)

  • User: "sync /docs/guide.md to https://..." → file_path: "/docs/guide.md" (exact path)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesExact local file path to sync. Use the path specified by user, NOT inferred from Confluence URL.
page_urlYesConfluence page URL to update
titleNoOverride page title (optional)
Behavior4/5

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

With no annotations provided, the description carries full burden and adds valuable behavioral context: it discloses that the tool reads files directly from the filesystem, handles file reading internally, and includes critical instructions about path handling and user interaction for ambiguities. However, it doesn't mention potential errors, permissions, or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized but could be more front-loaded; the purpose is clear in the first sentence, but the critical instructions and examples are lengthy. Every sentence adds value, but the structure could be tighter by integrating examples more succinctly.

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 no annotations and no output schema, the description does well by covering purpose, usage guidelines, and parameter semantics with examples. It addresses key complexities like file path handling. However, it lacks details on error cases, response format, or confirmation of success, leaving some gaps for a mutation tool.

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 the baseline is 3. The description adds meaningful context beyond the schema: it emphasizes that 'file_path' must be exact and not inferred, provides examples of usage, and clarifies the tool's internal handling of file reading. This compensates well, though it doesn't detail optional 'title' parameter usage.

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 ('sync a LOCAL file to a Confluence page') and resource ('file from the filesystem'), distinguishing it from sibling tools like 'update_page' or 'upload_page' which don't mention local file reading. It explicitly mentions the filesystem source, making the purpose distinct.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool vs. alternatives through critical instructions: it specifies to use exact file paths from user input, not inferred from URLs, and to ask for clarification if multiple files match. This clearly defines the tool's context and exclusions compared to other page-update tools.

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/Gyeom/md2confluence-mcp'

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