Skip to main content
Glama

accept_ai_edits

Destructive

Accept tracked changes by revision ID or author in a DOCX/ODT session, leaving other revisions untouched. Call save to persist changes.

Instructions

Selectively accept tracked changes by revision id or author in the in-memory session, leaving all other (e.g. third-party reviewer) revisions byte-untouched. This does not write file_path; call save to persist the mutation. Provide revision_ids (array of w:id values) to target specific revisions, or author to accept every revision by one actor. Sweeps document.xml and supported side-story parts (footnotes, endnotes, comments). An ambiguous overlap — a targeted revision structurally containing, or contained by, a non-targeted revision (nested ins/del/move) — hard-errors with code AMBIGUOUS_REVISION_OVERLAP and a structured overlaps list unless normalize_first is set (best-effort, no byte-identical promise).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authorNoAccept every revision authored by this w:author. Convenience alternative to revision_ids.
file_pathYesPath to the DOCX or ODT file.
revision_idsNow:id values of the revisions to accept. Mutually preferred over author.
normalize_firstNoAttempt best-effort resolution on an ambiguous (overlapping) revision graph instead of hard-erroring. No byte-identical guarantee. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.16.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only supply destructiveHint=true; the description adds substantial behavior beyond that: the operation is in-memory and non-persisting, which document parts are swept, and the AMBIGUOUS_REVISION_OVERLAP hard-error with a structured overlaps list. This is exactly the context a mutation tool needs.

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?

Dense but front-loaded: the core action and the persistence caveat come first, then targeting, then scope, then the error case. Every sentence carries new information, though the error/overlap sentence is heavy enough to slow scanning slightly.

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?

For a destructive mutation with no output schema, the description covers persistence implications, targeting modes, affected parts, and the failure mode. 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%, so the baseline is 3. The description still adds value by clarifying that revision_ids are w:id values, that author is a convenience alternative, and that normalize_first is best-effort with no byte-identical promise — semantics that go beyond the schema wording.

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?

Opens with a specific verb+resource: 'Selectively accept tracked changes by revision id or author in the in-memory session.' The 'selectively' and 'leaving all other revisions byte-untouched' scope makes it clearly distinct from the siblings accept_changes and reject_ai_edits.

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?

Explicitly routes the agent: use revision_ids for specific revisions, author for a whole actor, and call save to persist since this tool does not write file_path. It also names the normalize_first fallback condition, so the agent knows when to reach for each option.

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