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
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||