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

format_cells

Apply font, fill, border, alignment, and number formats to an Excel cell range to make workbook data clear and consistent.

Instructions

Apply formatting (font, fill, border, alignment, number format) to a cell range.

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>",
      "range": "<range>",
      "format": "<format>"
    },
    "name": "format_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesCell range (e.g. 'A1:C10')
sheetYesSheet name or 1-based index
formatYesFormat options to apply
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely does not pick it up. It never states that this is a mutating operation, that it overwrites existing formatting on the target range, whether the change is reversible, or what happens to properties of the cell not mentioned in the options (e.g. whether omitting bold clears bold). Only the bare operation is disclosed.

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?

A single, front-loaded sentence with no filler or hedging. The parenthetical list slightly duplicates what the schema already enumerates, which keeps it just below the top score, but it is a useful at-a-glance scope signal for tool selection.

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 mutating tool with a required nested options object, four required parameters, and no annotations or output schema, the description is too thin. An agent cannot tell from it whether omitted format keys leave existing formatting intact or reset it, which is a consequential ambiguity for a write operation on user data.

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%, and the nested format object documents every option with examples and ranges, so the schema does the heavy lifting. The description's parenthetical categories (font, fill, border, alignment, number format) loosely mirror the schema groups but add no details about semantics or defaults. Baseline 3 is appropriate.

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 description pairs a specific verb ('Apply') with a specific resource ('a cell range') and enumerates the formatting categories (font, fill, border, alignment, number format), so the agent knows exactly what the tool affects. It stops short of a sibling distinction: format_cells_bulk exists and nothing in the text tells the agent how the two differ.

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?

The description provides no when-to-use or when-not-to-use guidance. It is a mutation tool with a sibling that performs the equivalent operation in bulk, yet no condition is given for choosing between them, and no prerequisites (file must exist, sheet must be present, formatting scope) are stated.

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