Skip to main content
Glama

setup_chapter_headers

Puts the current chapter title in each Word page header using STYLEREF fields, avoiding section breaks. Can include heading numbers and skip the first-page header.

Instructions

Put the current chapter title in the running header via a STYLEREF field referencing the Heading style of level: the standard Word mechanism, evaluated per page, no per-chapter section breaks needed. include_number adds the heading number (STYLEREF \n). scope 'auto' targets every section containing body headings of that level; pass a list of section indices to override. first_page_blank sets titlePg (no header on section-opening pages). Watermarks are preserved; other header content is replaced and reported, with the exact field codes written. Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNo
scopeNoauto
backupNo
alignmentNoright
file_pathYes
include_numberNo
first_page_blankNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden and does so thoroughly. It discloses that existing header content is replaced and reported, watermarks are preserved, exact field codes are written, backups are rotated in .ks4w-backups, saves are atomic and validated, and the tool refuses documents open in Word.

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?

The description is dense but well structured: core mechanism first, then option semantics, then side effects and safety behavior. Every sentence adds distinct value, and there is no filler or unnecessary repetition.

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?

For a 7-parameter document mutation with no annotations and an output schema, the description covers the mechanism, replacement behavior, reporting, backup rotation, atomic validated save, and open-file refusal. The only minor omission is alignment semantics, which is outweighed by the breadth and depth of the rest.

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

Parameters4/5

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

Schema description coverage is 0%, and the description compensates by explaining level, include_number, scope ('auto' vs explicit section indices), first_page_blank, and backup semantics. Alignment is not explained, but most parameters receive meaningful operational detail beyond the raw schema.

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 operation ('Put the current chapter title in the running header') and the exact mechanism (STYLEREF referencing the Heading style of level). It is clearly distinguishable from generic header tools like set_header and from validation tools like validate_chapter_headers.

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

Usage Guidelines4/5

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

The description gives clear context for when to use the tool: any time chapter titles should appear in running headers, using the standard STYLEREF mechanism and avoiding per-chapter section breaks. It does not explicitly name sibling alternatives or state when not to use it, so exclusion guidance is missing but implied.

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