Skip to main content
Glama
xlsx-mcp-server
by knorq-ai

format_cells_bulk

Apply formatting to multiple cell ranges at once in a single file operation, so you can style a worksheet without repeating edits.

Instructions

Apply different formatting to multiple ranges at once (bulk). One file I/O 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": {
      "file_path": "<file_path>",
      "sheet": "<sheet>",
      "groups": "<groups>"
    },
    "name": "format_cells_bulk"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYesSheet name or 1-based index
groupsYesArray of range-format groups (max 1,000)
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden for a mutation tool. It discloses one real behavioral trait — a single file I/O operation — but says nothing about whether supplied format keys merge with or overwrite existing cell formatting, whether the file is persisted, or what happens on partial failure across groups.

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?

Two short sentences, front-loaded with the action and scope. The 'One file I/O operation' fragment is slightly clipped but still earns its place as a performance cue; no filler.

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?

For a 3-parameter mutation tool with full schema coverage and no output schema, the definition is adequate but leaves the key semantic question unanswered: does formatting replace or layer onto existing cell styles? An agent could call it correctly but not predict the result on already-formatted cells.

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 every parameter and nested format field is already documented in the schema. The description only adds the 'multiple ranges' framing; it contributes no syntax or constraint detail beyond what the schema provides. Baseline 3 applies.

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?

Names a specific verb+resource (apply formatting to multiple ranges) and the parenthetical '(bulk)' distinguishes it from the single-range format_cells sibling without naming it. Clear enough to separate bulk from single-range operations, though the sibling is only implied.

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 'at once (bulk)' and 'One file I/O operation' imply this is the efficient choice when formatting several ranges, but the description never states when to prefer format_cells instead or any preconditions (file must exist, sheet must be valid). Usage is inferred rather than stated.

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