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

set_row_heights

Set heights for multiple rows in an Excel .xlsx sheet at once to bulk-adjust row sizing.

Instructions

Set heights for multiple rows at once (bulk).

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>",
      "rows": "<rows>"
    },
    "name": "set_row_heights"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYesArray of row-height pairs
sheetYesSheet name or 1-based index
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/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 burden. It does not disclose that setting a height overwrites any existing height, what units the numeric height is in, or whether the file is saved/committed after the operation—all significant for a mutation tool.

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; the key scope qualifier ("bulk") appears immediately. It is terse to the point of under-specification, but no sentence is wasted.

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 three-required-parameter mutation tool with no annotations and no output schema, the description omits units for height, overwrite semantics, and error behavior for invalid rows or sheets. Those gaps leave an agent unable to predict side effects confidently.

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 row/height properties are documented in the schema, so the baseline is 3. The description adds only the notion that rows is a batch collection, not any new meaning about sheet indexing or height units.

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 ("Set heights for ... rows") and the scope ("multiple rows at once (bulk)"), which distinguishes it from the singular sibling set_row_height. It is clear but does not explicitly name the sibling as the alternative.

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 "(bulk)" and "multiple rows at once" phrasing implies this is the batch variant to use when several rows need heights, versus a single-row tool. However, it never states when to prefer it over set_row_height, nor any prerequisites such as the file needing to exist.

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