Skip to main content
Glama

read_comments

Read review threads to see new reviewer feedback since your last call, fetch selected threads in full, or list and search comments. Use it to decide what to reply to or resolve.

Instructions

Read review threads: what is new, selected threads in full, or a listing. new answers a Call agent press in one call. For each open thread it returns what the reviewer has written that no earlier call with new returned and no answer has covered yet, with the thread's rev, which a write passes back. A thread's last answer covers everything before it; an answer is your reply, your Overleaf draft, or a public reply the reviewer sent to Overleaf. A suggestion the reviewer applied is returned once, as an entry marked applied with the lines it changed. Your wording is then in the file, and the entry needs no reply, except on a thread from Overleaf with no draft, where the change calls for a reply. A suggestion or an Overleaf draft the reviewer rejected is also returned once, as an entry marked rejected with the rejected text, and it stays in the thread for a later read by id. It needs no reply. Do not propose the same thing again unless the reviewer asks; if they give a reason, it is in one of their replies. The answer gives the moment the read started from (from) and the one it moved to (cursor), so a turn that went wrong can be repeated with since=; to see again what was already answered, read the thread by id. A thread from Overleaf is marked on_overleaf, and one the reviewer started for Overleaf but has not sent there yet is marked new_thread; a thread with a draft for Overleaf comes with that draft. An entry is public, on Overleaf for everyone in the project, when it has name (written there) or overleaf (sent there from the page), and so is comment, the first message, of a thread marked on_overleaf. Every other entry is private, for the reviewer and you, and so is everything in a thread that is not on Overleaf. ids returns those threads in full, for when you no longer remember a conversation; with since it returns only the entries after that time. With neither, it returns a listing: the newest limit threads, each request shortened to its beginning and the rest counted in older, narrowed by status, unanswered or since. With find or until it is a search instead, entry by entry: a thread is listed when something said in it between since and until contains find's words, whether the reviewer's, yours, a public reply sent to Overleaf (marked overleaf) or its draft for Overleaf, and it comes with those entries and its location. A long entry is shortened to the words around the match and marked cut, and only a thread's newest few matches are shown, with the rest counted in more_matches; read the thread by id to see it in full. The bounds and the words are each optional, and status="all" also searches closed threads. A thread from Overleaf the reviewer hid on the page has status "hidden": it is set aside, as an archived thread is, so new and the open listing leave it out. on_overleaf limits a listing or a search to Overleaf's threads or to the page's own, which are entirely private, and file limits either to the threads on one source file, each with its lines in source. Times are shown and passed back as MM-DD HH:MM on this server's clock. save requires ids; edit only the Reply and Edit blocks of the saved draft.

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": "read_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNo
newNoOnly what the reviewer has written since the last call with new; cannot be combined with ids.
fileNoA source file's name or path, like 'intro.tex' or 'tex/intro.tex', to keep only the threads on that file. For a listing or a search.
findNoWords to search for, ignoring case, in a thread's entries and its draft for Overleaf.
saveNo
limitNo
sinceNoA time this server printed, like '09-19 00:52'; only what came after it.
untilNoA time this server printed; a search covers only what came up to the end of that minute.
statusNoopen
unansweredNoOnly threads where the reviewer wrote to you after the thread's last answer: your reply, your Overleaf draft, or a reply sent to Overleaf.
on_overleafNotrue keeps only threads from Overleaf or started for it, false only the page's own threads, which are entirely private, and leaving it out keeps both. For a listing or a search.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and largely succeeds: it explains that applied/rejected suggestions are returned once, that hidden and archived threads are excluded from new/open listings, the public-vs-private rules, the from/cursor recovery idiom, and the MM-DD HH:MM time format. It never states permission requirements, failure modes, or what 'save' actually mutates, which is a notable omission for a tool that can write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The mode summary is correctly front-loaded, but the body is a single dense wall of run-on sentences with heavy backtick and quoted-term noise. Many clauses (public/private rules, applied/rejected entries, matching) could be split into short bullets for the same word count, so length is not the only problem — structure is.

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 an 11-parameter tool with no output schema and no annotations, the description covers return shapes and semantics unusually thoroughly, including fields like rev, older, more_matches, cut, and the applied/rejected markers. The remaining gap is the 'save' write path and any error or permission behavior an agent would need before mutating.

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 64% across 11 parameters, and the prose meaningfully supplements several: new, ids, since, until, find, status="all", on_overleaf, file, limit, and unanswered all get behavioral context beyond the schema strings. The weakest spot is 'save', which is only described as requiring ids and editing Reply/Edit blocks, leaving its actual effect obscure.

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 opening 'Read review threads: what is new, selected threads in full, or a listing' gives a specific verb and resource and enumerates the three operating modes, so an agent can tell what the tool does. It does not explicitly contrast itself with the sibling write_comments, and the 'Call agent press' jargon assumes context the reader may not have, which keeps it out of 5 territory.

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?

Usage is well specified internally: 'new' is for answering a press in one call, 'ids' is for when you no longer remember a conversation, and the default with neither returns a listing, with find/until switching to search. It also tells the agent to read the thread by id to see already-answered content or a truncated match. What is missing is any routing guidance against the sibling write tool.

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