Skip to main content
Glama

excel_format_worksheet

Apply professional styling to an entire worksheet in one operation, including title, header, and data ranges, column widths, and auto-fit for consistent Excel formatting.

Instructions

Format entire worksheet with professional styling in one operation

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_format_worksheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesOpened workbook name
dataStyleNoData range styling (optional)
worksheetYesWorksheet name
titleStyleNoTitle cell styling (optional)
headerStyleNoHeader row styling (optional)
columnWidthsNoJSON string of column widths: [{"column":"A","width":20},{"column":"B","width":15}] (optional)
autoFitColumnsNoAuto-fit all columns (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It does not disclose whether existing formatting is overwritten, whether the workbook must already be open, which style defaults apply when optional style objects are omitted, or what the call returns — significant gaps for a mutation that restyles an entire sheet.

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?

One front-loaded sentence with no wasted words and the bulk-operation qualifier placed early. The brevity is efficient, though it edges toward under-specification given seven parameters.

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 7-parameter mutation with nested style objects, no annotations, and no output schema, the description does not explain what the style objects contain, what happens to unstyled regions, or the effect of combining explicit columnWidths with autoFitColumns.

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 the baseline is 3; the description adds nothing about the nested headerStyle/titleStyle/dataStyle objects, their accepted keys, or how they interact with autoFitColumns. It neither compensates for nor undermines the 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?

States a specific verb and resource ('Format entire worksheet') plus a scope qualifier ('entire worksheet... in one operation'), which distinguishes it from per-range tools like excel_set_range_format. It stops short of saying which styling aspects are applied, so 'professional styling' remains an unquantified claim.

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 phrase 'entire worksheet... in one operation' implies this is the bulk option versus single-cell/range formatting siblings, but no explicit when-to-use or when-not-to-use guidance, prerequisites, or named alternatives are given.

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