Skip to main content
Glama

r7_docx_sections

Read or alter DOCX page setup and sections: set page size, orientation, margins, columns, page-number restart, and page/section breaks. Change one property without affecting other section elements.

Instructions

Read or change DOCX page setup and sections: page size, portrait/landscape, margins, columns, page-number restart, page breaks and section breaks. Changing one property preserves everything else in the section (headers, footers, columns, document grid, title-page setting).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoFor insertBreak: page setup applied to the NEW (following) section.
typeNoSection break type.
actionNoread (default) reports every section and page break; set changes one section; insertBreak starts a new section.
columnsNoNumber of text columns.
marginsNoMargins in centimetres: { top, right, bottom, left, header, footer, gutter }.
titlePgNoDifferent first-page header/footer.
widthCmNoExplicit page width in centimetres.
filePathYesPath to the DOCX file.
heightCmNoExplicit page height in centimetres.
separatorNoDraw a vertical line between columns.
outputPathNoWrite to a copy instead of editing in place.
orientationNoPage orientation.
sectionIndexNoWhich section to change (0-based; -1 is the final section, which is the default).
columnSpaceCmNoSpace between columns, in centimetres.
pageNumberStartNoRestart page numbering at this value.
pageNumberFormatNoPage number format.
afterParagraphIndexNoFor insertBreak: the last paragraph of the section being closed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does add a genuinely useful behavioral fact: changing one property preserves the rest of the section (headers, footers, columns, grid, title-page). It still omits permission requirements, in-place vs copy side effects, and what 'read' reports, so disclosure is helpful but incomplete for a mutation tool with zero annotation support.

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?

Two tight sentences, front-loaded with scope and followed by the key preservation guarantee. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter tool with nested objects and no output schema, the description covers scope, actions, and the section-preservation behavior well. The main gap is the shape of 'read' output, which the absence of an output schema leaves undocumented.

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 the baseline is 3. The description names some property families that map to parameters (margins, columns, page-number restart) but adds no syntax, units, or defaults beyond what the schema already documents.

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?

States a specific verb pair ('Read or change') and resource ('DOCX page setup and sections') and enumerates the exact properties covered (page size, orientation, margins, columns, page-number restart, breaks). An agent can distinguish this from siblings like r7_docx_formatting or r7_docx_header_footer without opening a schema.

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 property list implies when the tool applies (page/section layout), and the schema's action enum conveys read/set/insertBreak/remove. However, there is no explicit when-to-use guidance or routing against siblings such as r7_docx_formatting, so selection remains partially inferential.

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