Skip to main content
Glama

Accept tracked changes

accept_changes

Permanently accept tracked-change suggestions in an Overleaf project by IDs or filters, clearing pending-change metadata. Use for finalizing reviewed edits; the action is irreversible.

Instructions

Permanently accepts tracked-change suggestions. The text stays in the doc; the pending-change metadata is cleared. Select changes either by change_ids from list_tracked_changes, or by filters (author, path, kind, text; combined with AND), or with all: true. Changes that span multiple docs are grouped automatically. Irreversible.

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

Input Schema

NameRequiredDescriptionDefault
allNoSelect every pending change in the project. Required to act without ids or filters.
kindNoRestrict filter selection to inserts or deletes.any
change_idsNoTracked-change ids (from list_tracked_changes). Alternatively, select changes with the filters below.
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.
author_emailNoSelect all changes by this exact author email.
path_containsNoSelect all changes in docs whose path contains this substring.
text_containsNoSelect changes whose inserted/deleted text contains this (case-insensitive).
author_id_endswithNoSelect all changes by a user_id ending in this suffix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.4.0
    • addedInput schema / properties / all
      Added value: +{
      +  "default": false,
      +  "description": "Select every pending change in the project. Required to act without ids or filters.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / author_email
      Added value: +{
      +  "description": "Select all changes by this exact author email.",
      +  "type": "string"
      +}
    • addedInput schema / properties / author_id_endswith
      Added value: +{
      +  "description": "Select all changes by a user_id ending in this suffix.",
      +  "type": "string"
      +}
    • changedInput schema / properties / change_ids / description
      Previous value: -"Tracked-change ids to accept (from list_tracked_changes)."New value: +"Tracked-change ids (from list_tracked_changes). Alternatively, select changes with the filters below."
    • addedInput schema / properties / kind
      Added value: +{
      +  "default": "any",
      +  "description": "Restrict filter selection to inserts or deletes.",
      +  "enum": [
      +    "any",
      +    "insert",
      +    "delete"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / path_contains
      Added value: +{
      +  "description": "Select all changes in docs whose path contains this substring.",
      +  "type": "string"
      +}
    • 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"
      +}
    • addedInput schema / properties / text_contains
      Added value: +{
      +  "description": "Select changes whose inserted/deleted text contains this (case-insensitive).",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "change_ids"
      -]
  2. First observedv0.3.5

TDQS

A4.1/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 burden and does well: it discloses irreversibility, that document text is preserved while metadata is removed, and that changes spanning multiple docs are grouped automatically. It does not cover permission requirements, atomicity across multiple documents, or error behavior on partial matches, which keeps it below a 5.

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?

Four tight sentences with no filler, front-loaded with what the tool does and its side effect. The selection-mode sentence packs three alternatives into one long clause, and the critical 'Irreversible' warning sits at the very end rather than up front, which costs a point.

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 8-parameter destructive tool with no annotations and no output schema, the description covers the essentials an agent needs: selection modes, multi-document grouping, and irreversibility. Gaps remain around what is returned on success, behavior on zero-match filters, and whether a multi-document accept is all-or-nothing.

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 100%, so the baseline is 3 and the schema already documents each parameter including the project_id session caveat. The description adds the useful framing that ids, filters, and all:true are alternative selection modes and that filters combine with AND, but it does not expand on individual parameter semantics, so a 3 is appropriate.

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 ('Permanently accepts tracked-change suggestions') and immediately clarifies the observable effect: text stays, pending-change metadata is cleared. That effect statement separates it cleanly from reject_changes without needing to name the sibling.

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?

The description spells out the three selection strategies (ids, AND-combined filters, all:true) and routes the agent to list_tracked_changes as the id source, which is real invocation guidance. It stops short of explicitly saying when to prefer this over reject_changes or what to do when a filter matches nothing, so it is clear context without full when/when-not coverage.

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