Skip to main content
Glama

Reject tracked changes

reject_changes

Reject tracked-change suggestions in Overleaf projects by change IDs, author/path/kind/text filters, or all changes; removes insertions and keeps deletions. Irreversible.

Instructions

Rejects the specified tracked-change suggestions. For tracked inserts the inserted text is removed; for tracked deletes the strikethrough is cleared and the text stays. Implemented as an OT update with u:true flags on the inverse ops — same pathway Overleaf's web client uses. Select changes by change_ids from list_tracked_changes, by filters (author, path, kind, text; combined with AND), or with all: true. 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": "reject_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

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does well on outcome semantics — per-kind effects, the OT/u:true implementation pathway, and the explicit 'Irreversible.' — but says nothing about permission requirements, what happens when a selection matches nothing, or how conflicting concurrent changes are handled.

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 sentences, front-loaded with the action and selection mechanism, and the irreversibility warning lands as a crisp one-word closer. The OT/`u:true` internal-implementation sentence is mildly decorative for an agent, but it does not obscure the actionable content.

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 mutation tool with no annotations and no output schema, the description covers what the tool does, how to target work, and that it cannot be undone. Precedence between ids, filters, and all, plus the response shape, are left to the schema and inference.

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. The description adds only one real semantic beyond the schema: that the filters are combined with AND. Everything else (change_ids provenance, all:true, filter fields) restates what the schema already documents.

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 precise verb+resource ('Rejects the specified tracked-change suggestions') and immediately disambiguates the outcome per change kind: inserted text is removed, deleted text stays with strikethrough cleared. That per-kind semantics makes the tool unmistakable against the inverse sibling even though accept_changes is not named.

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?

It enumerates the three selection routes (change_ids sourced from list_tracked_changes, AND-combined filters, or all:true) and flags irreversibility up front, which is exactly the guidance an agent needs before invoking. It stops short of an explicit when-not clause or a named pointer to accept_changes for the opposite intent.

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