Skip to main content
Glama

get_sections

Read-only

Read DOCX sections in document order to return zero-based indexes, paragraph/body boundaries, page numbering, page size, margins, and header/footer references. Re-run after topology changes.

Instructions

Read DOCX main-document sections in document order. Returns zero-based session-relative section_index values, paragraph/body boundary metadata, page numbering, page size, margins, and header/footer relationship references. Call again after any operation that changes section topology. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNoPath to the DOCX or ODT file.
google_doc_idNoGoogle Doc ID or URL (alternative to file_path). Extract from URL: docs.google.com/document/d/{ID}/edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.21.2

TDQS

A3.7/5.0
Behavior4/5

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

With readOnlyHint=true and destructiveHint=false already declared, the description's 'Read-only' adds nothing new, but it does disclose non-obvious behavior: the cache-staleness rule (re-call after topology changes) and that indices are session-relative rather than persistent. That is real behavioral context beyond the annotations.

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?

Three tight sentences, front-loaded with the core verb+resource before the return-value and re-call details. Slightly dense in enumerating return fields, but each clause carries information, and the trailing 'Read-only' is a minor redundancy against the annotations.

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?

No output schema exists, so the description helpfully enumerates the return surface (section_index, boundary metadata, page numbering, size, margins, header/footer refs). Combined with the staleness rule, an agent has enough to call it correctly; only the choice between this tool and get_document_outline is left unaddressed.

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 both file_path and google_doc_id are fully documented in the schema, including the URL-extraction hint. The description adds no parameter meaning at all, so the baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and resource: 'Read DOCX main-document sections in document order,' and names the key return artifact (zero-based session-relative section_index values). It distinguishes itself from generic reads like read_file/grep by scoping to section topology, but never explicitly contrasts with the nearby get_document_outline sibling.

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?

'Call again after any operation that changes section topology' gives one concrete re-invocation trigger, which is genuinely useful. However, there is no guidance on when to prefer this over get_document_outline, read_file, or extract_revisions, leaving the agent to infer the choice among several read-oriented siblings.

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