Skip to main content
Glama

autoResizeColumns

Resizes spreadsheet columns to fit their content, optionally within a specified A1 range or across all columns by default.

Instructions

Auto-resizes columns in a spreadsheet to fit their content. Optionally restrict to a column range (e.g., "A:S"); defaults to all 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": {
      "spreadsheetId": "<spreadsheetId>"
    },
    "name": "autoResizeColumns"
  }
}

Input Schema

NameRequiredDescriptionDefault
columnsNoColumn range to resize in A1 notation (e.g., "A:S"). Omit to resize all columns.
sheetNameNoName of the sheet/tab. Defaults to the first sheet if not provided.
spreadsheetIdYesThe spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.4/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. It discloses the important default that omitting the range resizes all columns, but it does not state whether this is a formatting-only change, whether it requires edit permissions, whether existing widths are overwritten unpredictably, or what happens if the range is invalid.

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

Conciseness5/5

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

The description is two short sentences with the primary behavior front-loaded and the optional scope detail following. Every sentence carries useful information and there is no unnecessary wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter formatting tool with full schema coverage and no output schema, the description is largely complete. The main remaining gap is behavioral detail around permissions, reversibility, and what exactly is modified, which is more important because no annotations are present.

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%, so the schema already documents all three parameters. The description reinforces the optional nature of the column range and the all-columns default, but adds no additional semantics beyond what the schema already provides.

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 states a specific verb and resource: 'Auto-resizes columns in a spreadsheet to fit their content.' It also clarifies scope via the optional column-range restriction and default to all columns. It does not explicitly distinguish itself from sibling column operations like deleteColumns, but the purpose is clear enough to select it correctly.

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?

Usage is implied by the purpose: use it to auto-fit column widths, optionally passing a range. There is no explicit when-to-use or when-not-to-use guidance and no named alternative, so an agent must infer the appropriate context.

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