Skip to main content
Glama

List review-panel comment threads

list_comments
Read-only

List all review-panel comment threads in the open Overleaf project, sorted by most recent update, with thread id, doc path, quoted text, message preview and resolved status.

Instructions

Returns all review-panel comment threads in the open project, sorted by most recently updated. Each entry includes the thread id, the doc path it's anchored on, the quoted text it refers to, the latest message preview, and whether it's resolved. Use read_comment_thread for full content.

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
fullNoInclude full message history per thread instead of just a preview.
project_idNoOverleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it.
path_containsNoFilter to threads anchored in docs whose path contains this substring.
include_orphanedNoInclude orphaned threads, which no doc references any more, typically because their doc was deleted (default: false). Overleaf's Review panel hides these.
include_resolvedNoInclude already-resolved threads (default: false — show open threads only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / include_orphaned
      Added value: +{
      +  "default": false,
      +  "description": "Include orphaned threads, which no doc references any more, typically because their doc was deleted (default: false). Overleaf's Review panel hides these.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "Overleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it.",
      +  "minLength": 8,
      +  "type": "string"
      +}
  2. First observedv0.3.5

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered; the description adds useful behavior (sort by recency, preview vs. full history, per-entry field list). It does, however, say "all" threads while the schema defaults exclude resolved and orphaned threads, so the description overstates scope rather than clarifying the default filtering.

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?

Three tight sentences: scope and ordering first, then the payload shape, then the alternative-tool pointer. Every sentence carries information an agent needs and nothing is padded.

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?

With no output schema, describing the per-entry fields (thread id, doc path, quoted text, preview, resolved flag) is genuinely necessary and is done well. The one gap is that the description never states the default filtering (open, non-orphaned threads only), which the schema handles but which a reader of the description alone would get wrong.

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%, including the meaning of `full`, `path_contains`, `include_orphaned`, and `include_resolved`, so the baseline applies. The description adds essentially no parameter guidance beyond noting a "latest message preview" that `full` switches off, and its "all" phrasing slightly cuts against the documented defaults.

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 ("Returns all review-panel comment threads"), scopes it ("in the open project"), gives the ordering ("sorted by most recently updated"), and enumerates the returned fields. It also names the sibling that serves a different need ("Use `read_comment_thread` for full content"), so the agent can distinguish the two without opening schemas.

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?

Explicitly routes the agent to `read_comment_thread` when full thread content is needed, which is the main selection decision here. However, it does not discuss project scoping prerequisites or when to prefer `search_project`/file-level listing, leaving some contextual selection implicit.

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