Skip to main content
Glama

excel_add_header_footer

Add header and footer text to a worksheet in an opened workbook, including page and date codes, to prepare Excel files for printing.

Instructions

Add header/footer

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filename": "<filename>",
      "worksheet": "<worksheet>"
    },
    "name": "excel_add_header_footer"
  }
}

Input Schema

NameRequiredDescriptionDefault
footerNoFooter text
headerNoHeader (use &[Page], &[Date], etc.)
filenameYesOpened workbook name
worksheetYesWorksheet name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.3/5.0
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 behavioral burden and does not meet it. It does not say whether the workbook must already be open, whether an existing header/footer is overwritten, whether it applies to a single worksheet or all sheets, or what the call returns for a mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three words contain no waste, but the brevity comes from omission rather than efficiency. There is no structure, no front-loaded context, and nothing that earns its place beyond the bare operation name.

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

Completeness2/5

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

For a mutation tool with no annotations and no output schema, the definition is far too thin: an agent cannot tell overwrite behavior, scope, or required preconditions from the description alone. Only the schema's parameter documentation fills in the mechanics.

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 all four parameters (filename, worksheet, header, footer) are documented in the schema, including the '&[Page]'/'&[Date]' code hint for header. The description adds no meaning beyond that, which is acceptable given complete schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Add header/footer" restates the tool name almost verbatim, so it functions as a tautology rather than an explanation. It gives no hint of what distinguishes this from the sibling excel_apply_header_style, and 'add' leaves ambiguous whether an existing header is replaced or appended.

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 when-to-use guidance, no prerequisites, and no mention of alternatives such as excel_apply_header_style. The agent must infer entirely from the name that this sets page-level header/footer text.

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

Deploy Server

Other Tools