Skip to main content
Glama
mjyoo2
by mjyoo2

set_header_footer

Set header or footer text on chosen pages (all, odd, even, or first) in an HWP document. Specify document ID, type, and text content.

Instructions

Set header or footer text.

Args: doc_id: Document ID from open_document type: "header" or "footer" where: 0=all pages, 1=odd, 2=even, 3=first text: Text content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNo
typeNoheader
whereNo
doc_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description carries the full burden of disclosing side effects. It states that the tool sets header/footer text and explains the 'where' page-scope codes, but it does not say what null/empty text does, whether existing content is replaced, or how odd/even/first scopes interact.

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 short and front-loaded: a one-line action followed by an efficient Args block. Every line earns its place, and there is no repeated or irrelevant detail.

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?

With four parameters and no annotations, the description gives enough detail to construct a basic call. However, it is not fully complete because edge behavior (null text, clearing, scope interactions) and practical preconditions are left unspecified, leaving the caller to infer important semantics.

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%, so the Args block is the only parameter documentation and it compensates well: doc_id is tied to open_document, type lists the allowed values, where explains the numeric page-scope mapping, and text is identified as the content. It adds real meaning beyond the bare schema properties.

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 first sentence states a specific operation, 'Set header or footer text', and the Args block clarifies the resource (doc_id) and the target (header/footer). It is clear enough to distinguish from most sibling tools, though it does not explicitly contrast itself with nearby tools like set_page_number or set_watermark.

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 this tool versus alternatives, and no exclusions or prerequisites beyond the hint that doc_id comes from open_document. The description implies the tool is for header/footer editing but does not state when a caller should pick it over related formatting commands.

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/mjyoo2/hwp-mcp'

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