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

set_column_widths

Set the width of multiple Excel columns in one bulk call by providing a sheet and column-width pairs.

Instructions

Set widths for multiple columns 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>",
      "columns": "<columns>"
    },
    "name": "set_column_widths"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYesSheet name or 1-based index
columnsYesArray of column-width pairs
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 behavioral burden. It does not disclose that this writes to the .xlsx file on disk, whether existing custom widths are overwritten, what happens on invalid column letters or out-of-range widths, or how partial failures are handled.

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 short sentence with the key scope information front-loaded and no filler. It is arguably too terse for a write tool, but nothing in it is redundant.

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 file-mutating tool with zero annotation coverage and no output schema, the definition says almost nothing about side effects, persistence, or failure behavior. The schema is complete, but the behavioral picture an agent needs before calling it is not.

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%, with each parameter (file_path, sheet, columns including nested column/width) already documented, so the baseline is 3. The description adds only the notion that the columns array is processed as a bulk set; it adds no width units or format guidance beyond 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 ("Set widths for multiple columns") plus a scope qualifier ("at once (bulk)"), which implicitly separates it from the singular set_column_width sibling. It stops short of naming that sibling explicitly, so differentiation is inferred rather than stated.

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)" qualifier implies this is the tool for multi-column edits, leaving single-column use to the sibling. There is no explicit when-to-use/when-not guidance, no mention of alternatives by name, and no prerequisites such as the workbook being open or the file being writable.

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