Skip to main content
Glama

Comment on a page

add_comment

Add a comment to a Sophia wiki page or reply to an existing thread using parent_comment_id. Use Markdown, mentions, and ticket keys to discuss work; file attachments are not supported.

Instructions

Add a comment to a page, or reply to one with parent_comment_id (reply to the first comment of a thread). Markdown, mentions @[Name](user:<uuid>) and ticket keys work; comments cannot carry files.

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>",
      "body": "<body>"
    },
    "name": "add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
page_idYesSophia page id (uuid), from get_page_tree, search_pages or recent_pages.
parent_comment_idNoComment to reply to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world mutation, so the safety profile is covered. The description adds substantive behavioral detail beyond that: Markdown is accepted, mention syntax `@[Name](user:<uuid>)` and ticket keys are auto-linked, attachments are impossible, and replies are constrained to thread-head comments. Permission or rate-limit behavior is still unstated.

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?

A single dense sentence, front-loaded with the primary action and immediately followed by the reply variant and formatting constraints. Every clause carries actionable information with no filler.

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?

For a 3-parameter mutation with no output schema, the definition covers what an agent needs to construct a valid call: formatting of body, how replies work, and what cannot be attached. It stops short of describing permissions or what the response contains (e.g., the created comment id), which would matter for follow-up calls.

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 coverage is 67% and the schema itself documents page_id and parent_comment_id, so the baseline is already high. The description nevertheless adds meaning the schema lacks: the body's supported formatting (Markdown, mentions, ticket keys) and the non-obvious restriction that parent_comment_id must target the first comment of a thread.

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 description opens with a specific verb and resource ("Add a comment to a page") and immediately extends it to the reply case via parent_comment_id. It is clearly distinct from list_comments or import_comment in behavior, though it never names a sibling to route against.

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?

It states the condition for the reply mode (supply parent_comment_id, and specifically that you reply to the first comment of a thread), which is real guidance an agent would otherwise have to guess. It also implies the attachment path is handled elsewhere ("comments cannot carry files"), but gives no explicit when-not or named alternative.

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