Skip to main content
Glama

Lilia Editor

Add a comment

add_comment

Comment on one block of a document, in the signed-in author's name, as the editor's comment button does: everyone the document is shared with sees it in the Comments panel. Anyone who can open the document may comment, viewers too. Returns the comment's id. To answer a comment that is already there, use reply_to_comment.

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": {
      "documentId": "<documentId>",
      "blockId": "<blockId>",
      "text": "<text>"
    },
    "name": "add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe comment.
blockIdYesThe block to comment on (an id from get_outline).
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safety profile (not read-only, not idempotent, not destructive); the description goes well beyond them by disclosing visibility semantics (everyone the document is shared with sees it in the Comments panel), the permission model including viewers, and the returned value (the comment's id). It also clarifies this is a non-destructive additive write rather than an edit to the block.

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?

Front-loaded with the action and scope, then permissions, then the return value, then the sibling redirect — a sensible priority order. Minor redundancy between 'as the editor's comment button does' and the following visibility/permission sentences, but nothing is wasted enough to hurt.

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?

For a 3-parameter write tool with no output schema, the description covers scope, permission gate, visibility of the side effect, and the return value. An agent has everything needed to invoke it correctly and to know it should not use it for replies.

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 all three parameters described in the schema itself, including that blockId comes from get_outline. The prose adds no further syntax, format, or constraint detail for text length or blockId validity, so the baseline 3 applies.

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?

Specific verb plus a precisely scoped resource: comment on ONE block of a document, attributed to the signed-in author. It explicitly separates itself from reply_to_comment, so an agent can pick it without inspecting the sibling.

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?

States the precondition (anyone who can open the document, including viewers, may comment) and names the alternative with the condition that selects it ('To answer a comment that is already there, use reply_to_comment'). That is an explicit when-to-use and when-not-to-use split.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources