Skip to main content
Glama

Restyle the imported workbook in place

restyle_workbook

Rewrites workbook formatting only—applying house, plain, or template styles to detected blocks while preserving values, formulas, charts, and validation without rebuilding.

Instructions

Fast path for an imported workbook: rewrite formats only (fonts, colours, borders, alignment, number formats where a cell has none, column widths, gridlines, title merges) on every block the scanner detected in the original file, in the chosen style. Values, formulas, charts, data validation and conditional formats are untouched; cells outside detected blocks keep their formatting; a Read Me cover sheet is left as is. Writes a new file in the project's output folder, never over the original. Use when the user wants the file to follow the house (or plain, or template) format without rebuilding it.

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": {
      "project": "<project>"
    },
    "name": "restyle_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesAn imported project id (from import_workbook)
fileNameNoFile name without extension. Default: <original name> restyled
formattingNoDefault: the project's formatting
templatePathNotemplate mode: the .xlsx whose fonts to reuse

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it states what is mutated, what is preserved (values, formulas, charts, data validation, conditional formats, cells outside blocks, the Read Me sheet), and that output goes to a new file and never over the original. It stops short of failure behavior, idempotency, or permission requirements, which keeps it off a 5.

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 scoping clause is front-loaded ('Fast path for an imported workbook') and each sentence carries real information about mutation scope or output location. It is dense rather than padded, though the long parenthetical list of format attributes is heavier than it needs to be.

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

Completeness4/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 description supplies what changes, what is safe, and where the result lands, which is nearly everything an agent needs. The remaining gap is return-value detail and error/edge-case behavior, which nothing else in the definition covers.

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 are already documented in the schema; the description mostly restates the enum values ('house (or plain, or template) format') rather than adding new meaning. The one useful addition is tying 'template' mode to reusing fonts, but the schema's templatePath description already covers that.

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 names a specific verb and resource ('rewrite formats only ... on every block the scanner detected') and enumerates the exact surface it touches (fonts, colours, borders, alignment, number formats, column widths, gridlines, title merges). It also distinguishes itself from the rebuild path ('without rebuilding it'), so an agent can tell it apart from build_workbook without opening either schema.

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 closing sentence gives a clear triggering condition: use when the user wants the file to follow the house/plain/template format without rebuilding it. It does not, however, address the apply_template sibling, which is the most likely alternative for style-only work, leaving that routing decision to inference.

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