Skip to main content
Glama

reject_change

Rejects a tracked change in a Word document, removing inserted text or restoring deleted text. Specify the change ID and file path.

Instructions

Reject a tracked change (undo the change).

For insertions: The inserted text is removed. For deletions: The deleted text is restored.

Args: path: Path to the .docx file change_id: ID of the track change to reject output_path: Save to new file; if omitted, creates timestamped backup and overwrites original

Returns: Dictionary containing: - success: True if successful - change_id: ID of the rejected change - change_type: "insertion" or "deletion" - output_path: Path where the file was saved

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
change_idYes
output_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations exist, so the description carries full burden. It discloses that for insertions text is removed, for deletions text is restored, and if output_path is omitted, a timestamped backup is created and original overwritten. It does not mention required permissions or error handling.

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?

The description is well-structured with sections for Args and Returns, using bullet points. It is slightly verbose but efficient for the level of detail provided.

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?

Given the presence of an output schema (context signal) and sibling tools, the description covers behavioral nuances (insertion vs deletion), output structure, and backup behavior. It is thorough for a mutation tool with no annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description explains all three parameters (path, change_id, output_path) with details on output_path's default behavior. This adds significant meaning beyond the bare schema.

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 clearly states the tool rejects a tracked change and distinguishes between insertions (remove text) and deletions (restore text). It differentiates from the sibling 'accept_change' by specifying undo behavior.

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 explains what the tool does and its effects, but does not explicitly state when to use reject over accept or provide prerequisites. The contrast with accept_change is implicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kosh-jelly/docx-comments-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server