Skip to main content
Glama

Comment on a passage of a page, an element of a board or a cell of a table

add_comment

Start a comment thread on a Folio Wiki page by attaching text to an exact document quote, board element, or table cell; returns the new thread.

Instructions

Starts a comment thread. On a document page: attached to the FIRST occurrence of quote in the page's current text (the markdown as read_page returns it, including any formatting characters — copy it exactly); fails when the quote is not on the page. On a board: pass elementId (a shape/arrow/text id from read_page) instead of quote; fails when the board has no such element. On a table: pass BOTH rowId and columnId (row ids from folio_table_query, column ids from folio_table_schema) to comment on that cell; fails when the table has no such row or column. The comment is authored by the connected user and does not change the page. Requires a write-scoped token and a signed-in account that can read the page. Not available on a public site. Returns the new thread.

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

Input Schema

NameRequiredDescriptionDefault
bodyYesThe comment, plain text (@username mentions are kept as written)
pageYesPage id
quoteNoDocuments: exact text from the page to attach the comment to; the first occurrence is used
rowIdNoTables: id of the row of the cell to comment on (with columnId)
columnIdNoTables: id of the column of the cell to comment on (with rowId)
elementIdNoBoards: id of the element to attach the comment to (from read_page)

Output Schema

NameRequiredDescriptionDefault
threadYesThe new thread

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: authorship by the connected user, that the page is not modified, that a write-scoped token and a readable page are required, and that it is unavailable on public sites. These are the auth/permission and side-effect details the readOnlyHint=false / destructiveHint=false pair does not convey.

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 one-line purpose, then one compact sentence per target mode. Dense and purposeful, though the parenthetical about formatting characters makes the page sentence noticeably heavier than the rest.

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?

An output schema exists, yet the description still names the return ('the new thread'). Combined with the per-mode parameter rules, failure modes, and auth/public-site constraints, nothing material is missing for a non-idempotent write tool.

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 already 100%, so this is a baseline-3 case. The description does add real meaning by specifying that quote must be copied exactly from read_page markdown including formatting characters, and by naming the source of rowId, columnId and elementId, which goes beyond the terse schema descriptions.

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?

States a specific verb and resource ('Starts a comment thread') and immediately differentiates the three targets it operates on (document page, board element, table cell), so an agent can tell it apart from reply_comment and the table tools without opening a schema.

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?

Gives explicit per-context routing: quote for a page, elementId for a board, both rowId and columnId for a table, plus the failure condition for each. It does not explicitly name reply_comment as the tool to use for continuing an existing thread, so the alternative routing is only implied by 'Starts a comment thread'.

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