Skip to main content
Glama

Add Inline Comment

confluence_add_inline_comment
Destructive

Add an inline comment anchored to a specific text selection on a Confluence page. Specify the exact text and optional occurrence index for precise placement.

Instructions

Add an inline comment anchored to a text selection on a page.

Args: ctx: The FastMCP context. page_id: The ID of the page to add the inline comment to. body: The comment content in Markdown format. text_selection: The exact text on the page to anchor the comment to. text_selection_match_count: Total occurrences of the selected text on the page. text_selection_match_index: Zero-based index of which occurrence to anchor to.

Returns: JSON string representing the created inline comment.

Raises: ValueError: If in read-only mode or Confluence client is unavailable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesThe comment content in Markdown format
page_idYesThe ID of the page to add the inline comment to
text_selectionYesThe exact text on the page to anchor the inline comment to. Must match text that exists in the page content.
text_selection_match_countNoTotal number of times the selected text appears on the page. Defaults to 1.
text_selection_match_indexNoZero-based index of which occurrence of the text to anchor to. Defaults to 0 (first occurrence).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations include destructiveHint=true, indicating modification. The description adds that the tool raises ValueError in read-only mode or if the Confluence client is unavailable, providing useful behavioral context beyond annotations. However, it does not detail behaviors such as what happens if the text selection is not found.

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 one-line purpose followed by Args, Returns, and Raises sections. It is front-loaded but slightly verbose; a more concise version could omit redundant parameter details already covered by the schema.

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 presence of an output schema and detailed schema coverage, the description adequately explains the return value (JSON string) and error conditions. It covers all essential aspects: action, inputs, output, and failure modes, making it complete for the tool's complexity.

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 coverage is 100% with descriptions for all parameters. The description's docstring repeats this information without adding significant new semantics. The function signature and argument descriptions align with the schema, but no additional meaning beyond what the schema provides is introduced.

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 action ('add an inline comment anchored to a text selection on a page'), specifying the resource (page) and the unique anchoring aspect. This distinguishes it from sibling tool 'confluence_add_comment' which adds a general comment.

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 usage for adding a comment anchored to specific text, but does not explicitly state when to use this tool vs. alternatives like 'confluence_add_comment' or 'confluence_reply_to_comment'. No exclusion criteria or contextual prerequisites are provided.

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/GeiserX/atlassian-browser-mcp'

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