Skip to main content
Glama

Suggest, accept or reject tracked changes

manage_tracked_changes
Destructive

Propose edits as tracked changes for co-authors to accept or reject, and accept or reject existing suggestions in Overleaf projects.

Instructions

Change the suggestions in Overleaf's review panel; action picks what. suggest proposes a change that arrives as tracked changes a co-author can accept or reject, rather than as finished text, in one of two forms. findText with replaceWith replaces one exact snippet: findText must match exactly and occur once in the document, and an empty replaceWith suggests deleting it. content rewrites more at once: with sectionTitle it is the section's full replacement, from its heading to the next heading of the same or a shallower level, and alone it is the whole document's new text; only the passages that differ become suggestions, so unchanged text keeps its comments. Use suggest when proposing a change to someone else's paper; use edit_file when the edit should simply be made. accept makes suggestions part of the paper, so suggested insertions become ordinary text and suggested deletions are removed for good. reject undoes them: a suggested insertion is removed and a suggested deletion puts the original text back. Name the suggestions to decide by changeIds from read_review (view tracked_changes), or pass all: true for every suggestion in the document. Every action reaches Overleaf immediately, for every collaborator, through the editor rather than the Git bridge, so there is no push step and no undo from here; confirm accept and reject with the user first. suggest needs review access to the project and accept and reject need edit access; the call is refused before anything is sent when the account lacks it. Overleaf's editor cannot store emoji or other characters outside the Basic Multilingual Plane, so replaceWith or content containing one is refused; write a LaTeX command instead. Returns the suggestion made, with the number of suggested deletions and insertions a content rewrite became, or the suggestions decided after checking they are gone from the review panel.

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": {
      "action": "<action>",
      "path": "<path>"
    },
    "name": "manage_tracked_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoaccept and reject: decide every suggestion in the document, whoever made it. Give this or changeIds, not both.
pathYesEvery action: the document, relative to the project root, for example main.tex.
actionYesWhat to do: suggest (propose a replacement, a section or a whole document as tracked changes), accept or reject (decide suggestions already in the review panel).
contentNosuggest, instead of findText and replaceWith: the new text. With sectionTitle it replaces that section and must start with the section's own sectioning command; alone it is the complete new text of the document.
projectNoWhich project to use: its Overleaf address, its 24-character id, or a registered project name. Omit to use the default project.
findTextNosuggest, with replaceWith, for one snippet: exact text to replace, matched literally including whitespace. Must occur exactly once in the document.
changeIdsNoaccept and reject: ids of the suggestions to decide, as read_review (view tracked_changes) shows them in […]. Give these or all, not both.
replaceWithNosuggest, with findText: the suggested replacement text. An empty string suggests deleting findText and nothing more.
sectionTitleNosuggest, with content, for one whole section: its title as in the sectioning command, matched case-insensitively with a substring fallback.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.3

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds far more: changes reach Overleaf immediately for every collaborator through the editor, bypass the Git bridge, require no push step, and cannot be undone from here. It also discloses that calls are refused before any mutation when the account lacks permissions, and that non-BMP characters are rejected outright.

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?

Nearly every sentence carries actionable information and the scoping sentence is front-loaded, but the body is one dense run-on paragraph that mixes suggest mechanics, accept/reject semantics, permissions, and encoding constraints. Splitting by action or using short clauses would make it far more scannable for an agent parsing three modes at once.

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?

There is no output schema, and the description compensates by describing returns for both branches: the suggestion created (with counts of suggested insertions/deletions for a content rewrite) or the suggestions decided after verifying they are gone from the review panel. Combined with permission, atomicity, and encoding caveats, nothing an agent needs to invoke it correctly is missing.

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 already 100%, yet the description still adds real semantics: findText must match literally and occur exactly once, an empty replaceWith means deletion, content with sectionTitle spans from the section heading to the next heading of the same or shallower level, and sectionTitle matching is case-insensitive with a substring fallback. Only the project and all/changeIds exclusivity are lightly restated rather than extended.

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?

The description opens with a concrete verb and resource ("Change the suggestions in Overleaf's review panel") and then disambiguates the three actions the tool multiplexes: suggest, accept, reject. It also names the sibling it is not (edit_file) and the source of suggestion ids (read_review, view tracked_changes), so an agent can place it precisely 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit routing rule: "Use suggest when proposing a change to someone else's paper; use edit_file when the edit should simply be made." It also states prerequisites for each action (review access for suggest, edit access for accept/reject) and a procedural guardrail ("confirm accept and reject with the user first"), plus how to enumerate targets via changeIds or all: true.

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