Skip to main content
Glama

check_template_compliance

Validate Word documents against custom formatting rulesets (dissertation guides, journal styles) to identify violations, with unverified items flagged for review.

Instructions

Validate the document against a formatting ruleset (university dissertation guide, journal style sheet). Every rule key is optional; unknown keys are rejected with the allowed list. Example ruleset:

{"page": {"margins_pt": {"top": 72, "bottom": 72, "left": 90, "right": 72}, "tolerance_pt": 1, "size": "letter", "orientation": "portrait"}, "fonts": {"allowed": ["Times New Roman"], "body_size_pt": 12}, "line_spacing": {"body": 2.0}, "headings": {"max_skip": 0, "required_first_level": 1}, "page_numbering": [{"section": 0, "format": "lowerRoman"}, {"section": 1, "format": "decimal", "restart_at": 1}], "required_headings_in_order": ["Abstract", "Acknowledgments"]}

Returns {compliant, violations: [{rule, expected, found, location, severity}], unverified, rules_checked}. Fonts/sizes/spacing resolve through explicit formatting, the basedOn chain, and docDefaults; theme-indirected fonts land in 'unverified', never guessed. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rulesYes
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries the full burden and does so excellently. It discloses read-only behavior, optionality of rule keys, rejection of unknown keys, the exact return shape, resolution through basedOn/docDefaults, and the fact that theme-indirected fonts are never guessed and instead land in 'unverified'.

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 purpose is front-loaded, and every sentence adds value. The ruleset example is large but necessary because the schema is just an object with additionalProperties true. The description remains focused and ends with a useful 'Read-only.' note.

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?

The description is complete for a tool of this complexity: it covers the return structure, parameter semantics, resolver behavior, edge cases like unverified fonts, and safety. The output schema is present, and the description's extra return-field detail further strengthens completeness.

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. It provides a complete ruleset example that gives real meaning to the opaque 'rules' object, and it explains unknown-key handling. The 'file_path' parameter is self-evident from its name and required status.

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 states a specific verb and resource: 'Validate the document against a formatting ruleset' with concrete application contexts (university dissertation guide, journal style sheet). This clearly separates it from generic validation and document-checking siblings.

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 usage context is clear: use when a document must be checked against a custom formatting ruleset. It does not explicitly name alternatives or provide when-not-to-use guidance among the many validation-related sibling tools, so it falls short of a 5.

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/nometalalchemist/KitchenSink4Word'

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