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

inspect_docx_template

Scan a .docx lab report template to locate fillable cover fields, table slots, red prompts, and cell widths, and surface WPS layout diagnostics before filling it.

Instructions

Inspect a .docx lab report template for fillable slots and WPS diagnostics.

Scans cover fields (including fragmented runs and multi-slot lines), table section headings, red instructional prompts, cell widths, and WPS layout risks.

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

Returns: Formatted JSON string containing file, cover_fields, table_slots, and diagnostics.

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": "inspect_docx_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
docx_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 burden. It discloses the scan surface and the returned JSON keys, which implies a read-only analysis operation, but it never states that it is non-mutating, what happens on a non-.docx or malformed file, or any file-size/permission constraints.

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?

Purpose is front-loaded in the first sentence, with scan scope, args, and returns in short labeled sections. The structure is easy to parse; the only mild waste is restating the return keys when an output schema already exists.

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 a one-parameter inspection tool with an output schema present, the description covers purpose, scan scope, and input adequately. The remaining gap is relational: it gives no positioning against audit_docx_wps or fill_docx_report, which matters given the near-identical WPS vocabulary in the sibling name.

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 0% and the single parameter has no schema description, so the description's 'Path to the template .docx file' is the only guidance available. It usefully constrains the input to a template .docx rather than any document, but adds nothing on path format, relative vs absolute resolution, or validation behavior.

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 and resource ('Inspect a .docx lab report template') and enumerates exactly what is scanned: cover fields, fragmented runs, table section headings, red instructional prompts, cell widths, and WPS layout risks. It is clear what the tool does, but it never distinguishes itself from the sibling audit_docx_wps, which plausibly covers overlapping WPS territory.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no sibling is named. The agent must infer that this is a pre-fill inspection step (e.g., before fill_docx_report) and must guess how it differs from audit_docx_wps, which the description leaves entirely unaddressed.

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