Skip to main content
Glama
SheetForge MCP

SheetForge MCP

by iHeldan

autofit_columns

Destructive

Resize worksheet columns to match their content, optionally targeting selected columns and setting min/max width limits. Fixes cramped or overflowing text in spreadsheets.

Instructions

Auto-fit worksheet columns based on content width.

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": {
      "filepath": "<filepath>",
      "sheet_name": "<sheet_name>"
    },
    "name": "autofit_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsNo
dry_runNo
paddingNo
filepathYesReuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing.
max_widthNo
min_widthNo
sheet_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.14.0
    • addedInput schema / properties / filepath / description
      Added value: +"Reuse supplied server path; NEVER prepend client cwd. Rooted: relative OK; unrooted stdio: absolute, ask if missing."
  2. First observedv0.8.0

TDQS

C2.4/5.0
Behavior2/5

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

The annotation declares destructiveHint=true, yet the description does not state that this tool mutates and saves the workbook, nor that dry_run exists as a preview escape hatch. 'Based on content width' hints at the algorithm but discloses nothing about persistence, overwrite of existing widths, or reversibility.

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

Conciseness3/5

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

The single sentence is front-loaded and wastes no words, but its brevity here reflects under-specification rather than efficiency given seven parameters and a mutation side effect.

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 destructive, 7-parameter mutation tool with no output schema and near-zero schema descriptions, the description should at minimum cover the columns scoping, dry_run preview, and padding/bounds parameters. None of that is present, leaving the agent likely to call it with defaults blindly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 14% (only filepath documented), and the description mentions none of the five other parameters: columns, dry_run, padding, min_width, max_width. With the description silent and the schema bare, the agent cannot know how to scope the fit to specific columns or tune width bounds.

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

Purpose3/5

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

States a specific verb and resource ('Auto-fit worksheet columns') and gives the basis for sizing ('content width'), so the core action is understandable. However, it never distinguishes itself from the sibling set_column_widths, which an agent could easily confuse with this tool.

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 guidance on when to auto-fit versus explicitly setting widths via set_column_widths, and no mention of prerequisites such as the sheet needing to exist or be writable. The agent must infer all routing decisions.

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