Skip to main content
Glama

get_headers_footers

Retrieve every header and footer part across all document sections, including text content, page number fields, and part type. Read-only inspection for later editing.

Instructions

Every header and footer part across all sections: text content, whether it contains a PAGE-number field, and the part type (default, first page, even page). Use set_header/set_footer to write them and setup_chapter_headers for per-chapter running headers. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It discloses the read-only nature ('Read-only') and the comprehensive scope ('Every header and footer part across all sections'), which gives an agent a clear safety profile. It could add more about side effects or file requirements, but for a getter this is adequate.

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?

Three short sentences: the first front-loads the core behavior and output, the second provides sibling routing, and the third adds the read-only trait. Every clause earns its place with no filler.

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 single-parameter read tool with an output schema, the description is largely sufficient: scope, alternatives, and read-only status are all covered. The only completeness gap is the undocumented file_path parameter, which is minor given its standard naming. Overall, an agent can select and invoke it correctly.

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

Parameters2/5

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

Schema description coverage is 0% and the description never mentions the file_path parameter or adds meaning beyond its name and type. The parameter is self-evident, but the description misses the opportunity to explain the expected path format or document context, so the agent gets no semantic help beyond the property name.

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?

The description states a specific verb ('get') and a precise resource: every header and footer part across all sections, listing the exact data returned (text content, PAGE-field presence, part type). It also differentiates itself from sibling writers set_header/set_footer and setup_chapter_headers, so an agent can tell it apart without opening schemas.

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

Usage Guidelines5/5

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

The description explicitly routes to alternatives: 'Use set_header/set_footer to write them and setup_chapter_headers for per-chapter running headers.' This gives clear when-not-to-use guidance and names the sibling tools for those cases, leaving nothing to inference.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nometalalchemist/KitchenSink4Word'

If you have feedback or need assistance with the MCP directory API, please join our Discord server