Skip to main content
Glama

excel_auto_fit_columns

Auto-fit Excel worksheet columns to fit their content, optionally across a specified start-to-end range, so data displays clearly without manual resizing.

Instructions

Auto-fit columns

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": {
      "filename": "<filename>",
      "worksheet": "<worksheet>"
    },
    "name": "excel_auto_fit_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesOpened workbook name
endColumnNoEnd column (e.g., Z)
worksheetYesWorksheet name
startColumnNoStart column (e.g., A)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and delivers almost none. It does not state that this mutates the workbook, whether changes are persisted to disk, whether the range defaults to the used range when startColumn/endColumn are omitted, or what happens on an invalid column string.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three words contain no filler, but the issue is under-specification rather than concision. There is no structure at all — no scope statement, no range semantics, no persistence note.

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?

This is a workbook-mutating tool with four parameters, two required, no annotations and no output schema. The schema covers parameter names, but an agent still cannot tell what the mutation affects or what the result looks like, so the definition is incomplete for its complexity.

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 each of the four parameters has an inline description, so the baseline is 3. The description adds no meaning beyond the schema, such as whether startColumn/endColumn are optional range bounds and what the default range is.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Auto-fit columns" is essentially a restatement of the tool name with no additional specificity. It does not say which columns (all vs. a range), which workbook/worksheet context, or how it differs from formatting siblings like excel_batch_format or excel_insert_columns.

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?

There is no when-to-use guidance, no exclusions, and no mention of alternatives. The only implied context is that the agent already knows why auto-fitting is wanted, which is not guidance.

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

Deploy Server

Other Tools