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

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
inspect_docx_templateB

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.

fill_docx_reportA

Fill a .docx lab report template in-place while preserving its OOXML styling.

Preserves headers, footers, page numbers, table borders, cover underlines, and signature blocks. Optionally applies WPS Office compatibility sanitization and exports directly to PDF.

Args: template_path: Path to the source template .docx file. payload_json: JSON object string with cover_fields, sections (subheading, paragraph, code, image items), and optional keep_together_headings. output_path: Destination path for the filled .docx file. sanitize_wps: Apply 7-point WPS Office compatibility sanitization (default: True). export_pdf_path: Optional destination path to export a PDF after filling. pdf_engine: PDF engine when export_pdf_path is set: auto, dxpdf, or libreoffice (default: auto).

Returns: Formatted JSON string summarizing filled fields, sections, inserted images, WPS audit status, and optional PDF export details.

audit_docx_wpsA

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.

convert_docx_to_pdfA

Convert a .docx file to high-fidelity PDF and optionally render PNG previews.

Uses the Rust+Skia dxpdf engine by default without requiring Microsoft Word or WPS Office, with automatic LibreOffice headless fallback when engine="auto".

Args: docx_path: Path to the input .docx file. pdf_path: Destination path for the output .pdf file. engine: Conversion engine: auto, dxpdf, or libreoffice (default: auto). preview_dir: Optional directory path to render each PDF page as a PNG for visual verification. dpi: Resolution in DPI for rendered preview PNGs (default: 150).

Returns: Formatted JSON string containing conversion metadata and optional preview_pages paths.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 4 tools

Disambiguation4/5

The four tools form a mostly distinct pipeline: inspect template, fill report, audit WPS fidelity, and convert to PDF. The only meaningful overlap is between `inspect_docx_template` diagnostics and `audit_docx_wps`, since both surface WPS/layout risks, but the template-inspection vs post-fill-audit distinction is largely clear.

Naming Consistency5/5

All tool names use a consistent snake_case verb_docx_* pattern: inspect_docx_template, fill_docx_report, audit_docx_wps, convert_docx_to_pdf. The suffixes vary by target operation, but the naming convention is predictable throughout.

Tool Count5/5

Four tools is well-scoped for a focused DOCX lab report workflow. Each tool covers a distinct stage of the lifecycle and none feels redundant or unnecessary.

Completeness4/5

The tool set covers the core lifecycle: inspect a template, fill it, audit fidelity, and convert/export PDF with previews. Minor gaps exist around payload validation or repair workflows, but agents can reasonably work around them.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues