Skip to main content
Glama

r7_docx_formatting

Read normalized DOCX formatting before editing: inspect paragraph styles, fonts, alignment, indents, spacing, lists, tables, sections, and headers/footers.

Instructions

Read the normalized formatting of a DOCX document before changing it: per-paragraph style, font family/size/bold/italic/underline/strike/colour, alignment, indents, spacing, list numbering, plus table cell styles (widths, merges, shading, borders, alignment), page/section setup and header/footer parts. Values are normalized (points, #RRGGBB), never raw OOXML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoHow many paragraphs to return (default 200).
filePathYesPath to the DOCX file.
includeRunsNoInclude the per-run detail inside each paragraph (default true).
fromParagraphNo0-based paragraph to start from (default 0).
includeTablesNoInclude the table cell styles (default true).
includeSectionsNoInclude page setup and section breaks (default true).
includeStylesListNoAlso list every style the document defines.
includeHeadersFootersNoInclude header/footer parts and their fields (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries full burden; it discloses the key behavioral trait that values are normalized (points, #RRGGBB, never raw OOXML), which materially shapes output interpretation. It stops short of explicitly confirming the operation is non-mutating, though 'Read' implies it.

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

Conciseness4/5

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

A single dense sentence, front-loaded with the verb+resource and the 'before changing it' rationale, followed by the enumerated payload. It is long but every clause enumerates real content, so little is wasted.

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?

No output schema exists, so the description bears the return-shape burden and does so thoroughly, enumerating paragraph, table, section and header/footer detail. For an 8-param read tool it is complete enough to call correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter (count, fromParagraph, includeRuns, includeTables, etc.) is already documented in the schema with defaults. The description lists return content but adds no syntax or semantics beyond that, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb ('Read') plus resource ('normalized formatting of a DOCX document') and an enumeration of exactly what is read (paragraph styles, table cells, sections, headers/footers). It stands apart from generic siblings like r7_inspect/r7_read through specificity, though it never names them explicitly.

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?

The phrase 'before changing it' implies a when-to-use (inspection prior to an edit), which is useful implied guidance. It stops short of stating when-not to use it or pointing to the overlapping r7_inspect/r7_read tools for other needs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.