Skip to main content
Glama
docx-lab-mcp
by eljcf

audit_docx_wps

Audit a .docx file for OOXML fidelity and WPS Office layout risks across 12 checks, returning pass counts and a list of detected issues.

Instructions

Audit a .docx file across 12 OOXML fidelity and WPS Office compatibility checks.

Checks ZIP/XML well-formedness, media relationships, w:ulTrailSpace, cover hard page break, fixed table layout, exact row height clipping, inline image bounds, unique drawing IDs, East Asian font coverage, residual red prompt hints, header/footer integrity, and table borders.

Args: docx_path: Path to the .docx file to audit.

Returns: Formatted JSON string with passed, pass_count, total_checks, checks, and issues.

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": {
      "docx_path": "<docx_path>"
    },
    "name": "audit_docx_wps"
  }
}

Input Schema

NameRequiredDescriptionDefault
docx_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 behavioral burden. It discloses the check roster and the return shape, but never states that the operation is read-only/non-destructive, what it does on a missing or corrupt file, or whether the DOCX must be closed/unlocked — real gaps for a file-consuming tool with zero annotation coverage.

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?

Front-loaded summary sentence followed by a scannable check inventory and a compact Args/Returns block; nothing is padding. The wrapped checklist line is slightly verbose but each item earns its place by naming a distinct failure mode.

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?

With an output schema present, the Returns section is a bonus rather than a necessity, and the definition tells an agent everything needed to invoke the tool correctly with one path argument. It only lacks read-only/error-behavior statements that annotations would normally cover.

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?

The Args section restates the single parameter as "Path to the .docx file to audit," which is essentially what the schema's name and title already convey, at 0% schema description coverage. It confirms the value type but adds no constraints such as absolute vs relative path, must-exist, or extension handling.

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?

Names a specific verb and resource ("Audit a .docx file") and enumerates the 12 concrete OOXML/WPS checks performed, so the agent knows exactly what class of problem it detects. It stops short of explicitly contrasting itself with siblings like inspect_docx_template, so the distinction is inferred rather than stated.

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 implied: an agent can infer this is the pre-delivery fidelity audit step, and the check list hints at when it matters. There is no explicit when-to-use, when-not-to-use, prerequisite, or named alternative to route against the sibling tools.

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