Skip to main content
Glama

audit_document

Run a structural audit to verify Word document integrity by checking footnotes, heading continuity, bookmark pairing, and missing references. Returns a valid/invalid status.

Instructions

Run a comprehensive structural audit of the document.

Checks:

  • Footnote cross-references (references vs definitions)

  • ParaId uniqueness and range validity

  • Heading level continuity (no skips like H2 -> H4)

  • Bookmark pairing (start/end matching)

  • Relationship targets (all referenced files exist)

  • Image references (all embedded images exist)

  • Residual artifacts (DRAFT, TODO, FIXME markers)

Returns a detailed report with an overall valid/invalid status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations provided, so description carries full burden. It describes checks and return report but does not explicitly state whether the audit is read-only or has side effects, or any prerequisites (e.g., document must be open).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Highly concise with structured bullet-point list of checks. Every sentence adds value; front-loaded purpose and return value.

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 no parameters and presence of output schema (even if not shown), description fully covers tool's function, what it checks, and what it returns (detailed report with valid/invalid status).

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

Parameters4/5

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

No input parameters exist (0 params, 100% schema coverage), so description adds no parameter information. Baseline for zero parameters is 4.

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?

Clearly states it runs a comprehensive structural audit of the document, listing specific checks like footnote cross-references, paraId uniqueness, heading continuity, and more. Distinguishes from sibling validation tools (e.g., validate_endnotes, validate_footnotes) by covering multiple aspects in a single audit.

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?

Implied usage as a comprehensive audit, but lacks explicit guidance on when to use this tool versus individual validation tools (e.g., validate_paraids). No when-to-use or when-not-to-use instructions provided.

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/SecurityRonin/docx-mcp'

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