Skip to main content
Glama

check_docx_structure

Extract structural facts from a .docx file—heading hierarchy, TOC consistency, headers/footers, page numbering, styles, list numbering, and captions—returning anomaly flags for pre-delivery review.

Instructions

Extract structural facts from a .docx file: heading hierarchy, TOC consistency, header/footer consistency, page-numbering-field presence, orphaned/empty styles, list-numbering restarts, and image/table caption presence + sequencing. Returns facts and anomaly flags only — never a verdict on correctness (see the server's global instructions).

Accepts the document either as a filesystem path OR as inline content_base64 (with filename required alongside it) — useful when the .docx only exists in the conversation (e.g. a file uploaded directly in chat) rather than saved to disk. Exactly one of the two input forms must be given.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
filenameNo
content_base64No

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
listsYes
formatYes
stylesYes
captionsYes
headingsYes
page_numberingYes
headers_footersYes
heading_hierarchyYes
table_of_contentsYes
table_of_contents_flagsYes
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so well. It states that the tool returns only facts and anomaly flags, never a verdict, and it discloses the input-mode constraint that exactly one of path or content_base64 must be provided.

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?

The description is dense but every sentence earns its place: purpose and scope, output limitation, and input alternatives with the exclusivity constraint. The main purpose is front-loaded, and the structure makes the tool's contract easy to understand.

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 the output schema exists and no annotations are present, the description supplies all essential invocation context: what is analyzed, what is returned, how the document can be supplied, and which input combinations are valid. It is complete enough for an agent to select and call the tool correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate — and it does. It explains the meaning and relationship of all three parameters: path as a filesystem location, content_base64 as inline document content, and filename as required when inline content is used. It also communicates the critical exclusivity rule.

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?

The description opens with a specific verb and resource: 'Extract structural facts from a .docx file', then enumerates the exact structural dimensions checked. This clearly distinguishes the tool from siblings like check_docx_typography and check_pdf_layout, which target different concerns.

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

Usage Guidelines4/5

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

The description establishes clear context for when the tool is appropriate: structural analysis of .docx files, and explicitly notes that it never renders a correctness verdict. It does not name alternative tools or give explicit when-not-to-use conditions, but the scoping to structural facts and .docx inputs makes the selection context clear.

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/Nasser9892/vellum-mcp'

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