Skip to main content
Glama

Add Comment

confluence_add_comment
Destructive

Add a Markdown-formatted comment to a Confluence page by page ID. Use it to attach feedback, notes, or discussion directly to the relevant page.

Instructions

Add a comment to a Confluence page.

Args: ctx: The FastMCP context. page_id: The ID of the page to add a comment to. content: The comment content in Markdown format.

Returns: JSON string representing the created comment.

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

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page_id": "<page_id>",
      "content": "<content>"
    },
    "name": "confluence_add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe comment content in Markdown format
page_idYesThe ID of the page to add a comment to

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (title and destructiveHint=true), the description discloses that the call fails with ValueError when the server is in read-only mode or the client is unavailable, and that it returns a JSON representation of the created comment. It does not clarify whether the comment is appended as a page-level footer comment or supports threading/replies, which matters for an additive write. The 'add' framing and destructiveHint=true are not strictly contradictory, since adding a comment is still a mutation, but the description could have reconciled them.

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 summary sentence is front-loaded and the Args/Returns/Raises sections are easy to scan. The 'ctx: The FastMCP context' entry is framework boilerplate that does not appear in the input schema and adds no value for an agent. Otherwise the text is tight and earns its place.

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?

An output schema exists, so the Returns line is only a light restatement and the description needn't detail response structure. For a two-parameter write tool, the main remaining gap is not saying what kind of comment is created or any rate-limit/permission constraints. The stated error conditions cover the most important failure mode.

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 both page_id and content are already documented in the schema. The docstring repeats those same meanings ('The ID of the page to add a comment to', 'The comment content in Markdown format') without adding format, length, or ID-expectation detail. Baseline 3 applies since the schema carries the semantic load.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first line states a specific verb and resource: 'Add a comment to a Confluence page.' This clearly separates it from read-side siblings such as confluence_get_comments. It stops short of naming any sibling or noting that it creates a page-level (not inline) comment, so it is clear but not fully differentiated.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no named alternative. The only usable context is the Raises entry noting a ValueError in read-only mode, which does tell an agent that a write-enabled server is required. That is implied usage guidance rather than a stated selection rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.