Skip to main content
Glama

docx_aplicar_redline

Apply native Word tracked changes and marginal comments to .docx contracts or pleadings while preserving original formatting, producing review-ready redlines.

Instructions

Edita un documento Word (.docx) aplicando Control de Cambios XML nativo (w:del / w:ins) y comentarios marginales (word/comments.xml) preservando el formato del contrato o escrito.

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": {
      "input_docx_path": "<input_docx_path>",
      "cambios": "<cambios>"
    },
    "name": "docx_aplicar_redline"
  }
}

Input Schema

NameRequiredDescriptionDefault
autorNoAutor de las marcas de revisión y comentariosOpen Legal Chile
cambiosYesLista de cambios ({buscar, reemplazar, comentario})
input_docx_pathYesRuta al documento .docx original
output_docx_pathNoRuta de salida .docx (opcional; defecto '<archivo>_redline.docx')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description adds real substance by naming the exact mutation mechanism (w:del/w:ins plus word/comments.xml) and asserting that source formatting is preserved. That is meaningful context for a write tool. It does not say what happens when a 'buscar' string is not found, which is the main behavioral gap.

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?

One front-loaded sentence with no filler, and the mechanism plus the preservation guarantee are packed in efficiently. It is dense and technical but every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 never states what the call returns — a path to the generated file, a summary of applied changes, or nothing. For a mutation tool whose whole value is a produced artifact, that is a real omission. The default output path is documented in the schema, which partially compensates.

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 all four parameters are already documented in the schema, including defaults for autor and output_docx_path. The description adds no syntax or format detail beyond that — 'comentarios marginales' loosely maps to the comentario field but the schema already carries it. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Edita') and resource ('documento Word .docx'), plus the exact mechanism (Control de Cambios XML nativo w:del/w:ins y comentarios en word/comments.xml) and a scope constraint (preservar el formato del contrato o escrito). This goes well beyond the name. It stops short of a 5 only because it never distinguishes itself from any alternative editing path, though no obvious sibling in the catalog overlaps.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: 'contrato o escrito' suggests legal documents, and the tracked-changes mechanism implies the reviewer scenario. There is no explicit statement of when to prefer this tool over a plain text replacement, nor any exclusion for documents without existing revisions.

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

Deploy Server

Other Tools