Skip to main content
Glama

edit_header_footer

Edit text in document headers or footers. Replace old text with new text, optionally with tracked changes for review.

Instructions

Edit text in a header or footer.

By default (tracked=True) the change is recorded as a deletion of the old text and an insertion of the new text — the human reviewer accepts/rejects in Word. Pass tracked=False to replace the text directly with no revision markup.

Args: location: "header" or "footer" (matches the first found of that type). old_text: Text to find and replace. new_text: Replacement text. author: Author name shown in Word's review pane (tracked=True only). tracked: True (default) = tracked del+ins. False = direct replacement, no markup. document_handle: Optional handle for concurrent session isolation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
locationYes
old_textYes
new_textYes
authorNoClaude
trackedNo
document_handleNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description effectively discloses key behaviors: tracked mode records deletion/insertion, direct mode replaces without markup, and author parameter is only relevant when tracked=True. It also mentions optional document handle for session isolation. However, it does not state whether the document must be open or what happens if the old_text is not found.

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?

The description is well-structured with a concise summary, parameter details, and clear separation of tracked vs direct behavior. It is appropriately sized and front-loaded with the core action, though the parameter listing could be slightly more compact.

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

Completeness3/5

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

The description covers the main functionality and parameter semantics well. However, it lacks details about error handling (e.g., missing old_text, non-existent location) and does not explain the return value or output schema. Given the output schema exists, the completeness is adequate but not exhaustive.

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

Parameters5/5

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

The description includes a detailed Args section that explains all six parameters, including their meaning and default values. This compensates for the 0% schema description coverage, adding significant value beyond the bare input schema.

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 states the tool edits text in a header or footer, specifying the action and target. It distinguishes between tracked and direct modes, but does not explicitly differentiate from sibling tools like replace_text that could also modify text in other parts of the document.

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 description provides guidance on when to use tracked=True vs tracked=False, explaining the tracking behavior. However, it does not compare this tool to alternatives like replace_text or delete_header for achieving similar goals, leaving the agent without explicit when-to-use vs when-not-to-use context relative to siblings.

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/SecurityRonin/docx-mcp'

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