Skip to main content
Glama

list_comments

Read-only

Lists the comment threads of the project. Filters: status (open/resolved/all), anchorCellId, documentId (the threads anchored to ONE document range), taskId (the threads anchored to ONE task), threadId (ONE specific thread, resolved or not), since (ISO 8601). Answers the user's question 'which comments were left on X?'. WITHOUT includeMessages, the tool only returns COUNTERS (messageCount): it does not say what was said. With includeMessages: true, it returns the message BODIES (Markdown as is, with author, creation and edit dates), from oldest to newest, under messages of each thread — this is how you READ the discussion that a get_document flagged to you through its comments field. A call returns at most 40 messages and 20,000 characters of body: hasMore says whether more remain, nextCursor (the value of the cursor parameter of the next call) resumes STRICTLY after the last message returned, with no gap or duplicate. since + includeMessages only returns the messages after that instant (polling an ongoing discussion). messageCount remains the TOTAL of the thread, not that of the page. A thread on a PRIVATE document you did not create is never listed, even by threadId/documentId. Each thread anchored to a block carries orphaned:true when that block has since been deleted: the thread survives (nothing is ever destroyed) but is INVISIBLE on the canvas — which sets it apart from a legitimate thread awaiting a reply. The same goes for a thread anchored to a deleted TASK.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of THREADS considered (with `includeMessages`: the threads whose messages are read).
sinceNoISO 8601 (e.g. "2026-09-20T09:00:00Z"). With `includeMessages`: only the messages STRICTLY after it, and only the threads that have some. Without: the threads modified after that instant.
cursorNoThe `nextCursor` of the previous page (with `includeMessages`). It is never a date: a cursor is not built by hand.
statusNoFilter by status (default 'open')
taskIdNoFilter on the threads anchored to ONE task ("task" anchor).
threadIdNoReads ONE specific thread, resolved or not (the `status` filter does not apply). An identifier unknown to this project is a named refusal.
documentIdNoFilter on the threads anchored to ONE document ("document_range" anchor). get_document returns the number of threads of a document; this argument lists them.
anchorCellIdNoFilter on a block
includeMessagesNoReturns the message BODIES (Markdown as is, with author and date), from oldest to newest, under `messages` of each thread. At most 40 messages and 20,000 characters per call: `hasMore` and `nextCursor` give the rest. Omitted: only the counters (`messageCount`).
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed1 schema field changed
    • changedInput schema / properties / taskId / description
      Previous value: -"Filter on the threads anchored to ONE task (\"task\" anchor). Refused, by name, as long as the instance does not serve this anchor (ignoring the filter would return the threads of the whole project to whoever asked for one task)."New value: +"Filter on the threads anchored to ONE task (\"task\" anchor)."
  4. Changed10 schema fields changed
    • changedInput schema / properties / anchorCellId / description
      Previous value: -"Filtrer sur une cellule"New value: +"Filter on a block"
    • changedInput schema / properties / cursor / description
      Previous value: -"Le `nextCursor` de la page précédente (avec `includeMessages`). Jamais une date : un curseur n’est pas construit à la main."New value: +"The `nextCursor` of the previous page (with `includeMessages`). It is never a date: a cursor is not built by hand."
    • changedInput schema / properties / documentId / description
      Previous value: -"Filtrer sur les fils ancrés à UN document (ancre « document_range »). get_document rend le nombre de fils d’un document ; cet argument les énumère."New value: +"Filter on the threads anchored to ONE document (\"document_range\" anchor). get_document returns the number of threads of a document; this argument lists them."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / includeMessages / description
      Previous value: -"Rend les CORPS des messages (Markdown tel quel, avec auteur et date), du plus ancien au plus récent, sous `messages` de chaque fil. Au plus 40 messages et 20 000 caractères par appel : `hasMore` et `nextCursor` disent la suite. Omis : seuls les compteurs (`messageCount`)."New value: +"Returns the message BODIES (Markdown as is, with author and date), from oldest to newest, under `messages` of each thread. At most 40 messages and 20,000 characters per call: `hasMore` and `nextCursor` give the rest. Omitted: only the counters (`messageCount`)."
    • changedInput schema / properties / limit / description
      Previous value: -"Nombre maximal de FILS considérés (avec `includeMessages` : les fils dont on lit les messages)."New value: +"Maximum number of THREADS considered (with `includeMessages`: the threads whose messages are read)."
    • changedInput schema / properties / since / description
      Previous value: -"ISO 8601 (ex. \"2026-09-20T09:00:00Z\"). Avec `includeMessages` : seuls les messages STRICTEMENT postérieurs, et les seuls fils qui en ont. Sans : les fils modifiés après cet instant."New value: +"ISO 8601 (e.g. \"2026-09-20T09:00:00Z\"). With `includeMessages`: only the messages STRICTLY after it, and only the threads that have some. Without: the threads modified after that instant."
    • changedInput schema / properties / status / description
      Previous value: -"Filtrer par status (défaut 'open')"New value: +"Filter by status (default 'open')"
    • changedInput schema / properties / taskId / description
      Previous value: -"Filtrer sur les fils ancrés à UNE tâche (ancre « task »). Refusé, nommément, tant que l’instance ne sert pas cette ancre (ignorer le filtre rendrait les fils de tout le projet à qui en a demandé une tâche)."New value: +"Filter on the threads anchored to ONE task (\"task\" anchor). Refused, by name, as long as the instance does not serve this anchor (ignoring the filter would return the threads of the whole project to whoever asked for one task)."
    • changedInput schema / properties / threadId / description
      Previous value: -"Lit UN fil précis, résolu ou non (le filtre `status` ne s’applique pas). Un identifiant inconnu de ce projet est un refus nommé."New value: +"Reads ONE specific thread, resolved or not (the `status` filter does not apply). An identifier unknown to this project is a named refusal."
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/non-destructive annotations: it discloses the access-control rule (threads on a private document you did not create are never listed, not even by `threadId`/`documentId`), the pagination envelope (40 messages / 20,000 characters per call), and that `nextCursor` resumes strictly with no gap or duplicate. It also explains the `orphaned:true` state and clarifies that nothing is ever destroyed but such threads are invisible on the canvas.

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 purpose and the filter catalog, then behavior, which is the right order for a 10-parameter tool, and the capitalized emphasis makes the critical contrasts scannable. It is nonetheless a dense block that re-states pagination details already present in the schema, so it is slightly longer than strictly necessary.

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?

With no output schema, the description carries the full return-value burden and does so: `messages` bodies with author and dates, `hasMore`/`nextCursor` paging, `messageCount` as thread total, and the `orphaned` flag. An agent has everything needed to call it correctly and interpret the response.

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 100%, so the baseline is 3, and the description earns an increment by adding cross-parameter semantics the schema states only in isolation: `threadId` bypasses the `status` filter, `since` changes meaning depending on `includeMessages`, and `messageCount` stays the thread total rather than the page total. Some of the pagination wording duplicates the schema's own `includeMessages` description, limiting it to a 4.

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?

Opens with a specific verb and resource ("Lists the comment threads of the project") and immediately enumerates every filter dimension, including what each targets (threads anchored to ONE document range, ONE task, ONE thread). It also states the user question it answers, so an agent can match it to an intent without opening the 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 clear when/when-not guidance for the key branch: without `includeMessages` you get only counters, with it you get bodies. It also names the polling pattern (`since` + `includeMessages`) and positions itself as the way to read discussions that `get_document` flagged via its `comments` field. Missing only an explicit statement of when to prefer another sibling outright.

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.