Skip to main content
Glama

layout_get

Read-only

Retrieve the page layout plan for a .docx to inspect section starts, breaks, page numbering, title page, and header/footer text per kind.

Instructions

The document's page plan: per section where it starts, its break, page numbering, title page, and the header and footer text per kind (default, first, even), with PAGE, NUMPAGES and chapter (STYLEREF) fields as {PAGE}, {NUMPAGES} and {chapter}. A kind the section does not define is null (inherited). The plan carries "version": 1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docYesPath to the .docx.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

readOnlyHint=true already covers the safety profile, so the description is free to add value, and it does: it discloses that undefined header/footer kinds are returned as null (inherited) and that the plan carries a "version": 1. That inheritance and versioning detail is non-obvious behavioral context an agent would otherwise have to discover empirically.

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 but well-ordered paragraph that front-loads the resource ("The document's page plan") before enumerating contents. Every clause carries information; nothing is padded, though the enumeration is slightly list-like in prose form.

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?

With no output schema, the description carries the burden of describing the return value, and it does so thoroughly: section structure, header/footer kinds, null inheritance, field placeholders ({PAGE}, {NUMPAGES}, {chapter}), and a version marker. Only the relationship to sibling layout/section tools is left unexplained.

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% and the single parameter (doc) is documented as "Path to the .docx." The description adds nothing further about the parameter, so the 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?

The description clearly identifies the resource as "The document's page plan" with a precise enumeration of what it contains (section starts, breaks, page numbering, title page, header/footer per kind). It is a noun-phrase rather than an explicit verb, and it does not distinguish itself from siblings like layout_apply or sections_list, but an agent can tell this is a read of layout data.

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

Usage Guidelines2/5

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

There is no guidance on when to use layout_get versus layout_apply or sections_list, nor any prerequisites (e.g. whether the .docx must be open). The description only says what the tool returns, not when to reach for it.

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