Skip to main content
Glama

resize_rows

Destructive

Sets explicit pixel heights for specified spreadsheet rows or auto-fits them to content, enabling consistent row layout and readable sheet formatting.

Instructions

Set an explicit pixel height for rows, or auto-fit them to content.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet start_row: 0-based index of the first row to resize end_row: 0-based index of the last row to resize (inclusive). If omitted, resizes only start_row. pixel_size: Explicit row height in pixels. Mutually exclusive with auto_resize. auto_resize: If True, auto-fit row height to content instead of setting an explicit pixel_size.

Returns: Result of the batchUpdate operation. Returns {"error": ...} without calling the Sheets API if start_row is negative, end_row precedes start_row, or pixel_size isn't positive.

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": {
      "spreadsheet_id": "<spreadsheet_id>",
      "sheet": "<sheet>",
      "start_row": "<start_row>"
    },
    "name": "resize_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYes
end_rowNo
start_rowYes
pixel_sizeNo
auto_resizeNo
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4/5.0
Behavior4/5

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

With destructiveHint=true already supplied, the description earns credit for adding real behavioral detail: it enumerates the validation rules (negative start_row, end_row before start_row, non-positive pixel_size) that cause an early {"error": ...} return without calling the Sheets API. What it does not disclose is the destructive consequence itself, i.e. that any existing custom row heights are overwritten, which is the main risk implied by the annotation.

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?

The one-line summary is front-loaded and the Args/Returns blocks are organized and scannable. There is minor redundancy in restating every parameter name from the schema, but given zero schema coverage the restatement is doing necessary work rather than padding.

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 six-parameter mutation with an output schema, the definition covers inputs, mutual exclusivity, validation failures, and the return value, so an agent can invoke it correctly. The one gap worth closing is that the destructive effect of replacing existing row heights is never stated explicitly, leaving the destructiveHint annotation to carry that load alone.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden, and it does: all six parameters are explained, including 0-based indexing for start_row/end_row, the inclusive end_row and its omission default, and the pixel_size/auto_resize mutual exclusivity. This adds meaning the bare schema cannot provide.

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 opens with a specific verb and resource: 'Set an explicit pixel height for rows, or auto-fit them to content.' This clearly separates it from sibling mutations like add_rows, delete_rows, or hide_rows. It stops short of explicitly naming the closest sibling (resize_columns) or stating it targets rows only in the named sheet, so it is clear but not maximally differentiating.

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 through parameter semantics rather than stated: 'Mutually exclusive with auto_resize' and 'If omitted, resizes only start_row' tell the agent how to combine inputs. There is no explicit when-to-use-this-vs-alternatives guidance (e.g., prefer this over hide_rows when adjusting display), so the agent must infer the choice from the verb.

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