Skip to main content
Glama

ungroupAllRows

Removes all row groupings from a sheet by deleting the row dimension group. Run before regrouping to prevent duplicate collapse widgets across report refreshes.

Instructions

Removes all row groupings from a sheet by deleting the entire row dimension group. Use before re-running groupRows to prevent duplicate collapse widgets from accumulating across report refreshes.

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": "ungroupAllRows"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetNameNoName of the sheet/tab. Defaults to the first sheet if not provided.
totalRowsNoNumber of rows to clear groups from (default: 500). Set higher if the sheet has more rows.
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

A3.9/5.0
Behavior3/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 conveys that the operation deletes all groupings wholesale and why that matters, but never states that it is destructive/irreversible, what permissions are needed, or what the response looks like. It also omits the meaningful caveat implied by the totalRows parameter that only a bounded number of rows are processed.

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?

Two sentences, front-loaded with the action and then the workflow rationale, with no redundant restatement of the tool name or schema fields. Every clause earns its place.

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

Completeness3/5

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

A three-parameter mutation tool with no annotations and no output schema needs more than purpose and motivation. The description is adequate on intent but leaves out destructive/irreversibility, the totalRows row-limit implication, and any sense of the result, so an agent could call it without realizing partial coverage is possible on large sheets.

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 explains spreadsheetId, sheetName and totalRows; baseline is 3. The description adds no parameter-level meaning and notably does not tie its 'all row groupings' claim to totalRows, which is the one place where extra narrative would have changed how an agent sets that value.

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

Purpose5/5

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

States a specific verb and resource ('Removes all row groupings from a sheet') and adds the mechanism ('deleting the entire row dimension group'), which tells an agent this is a dimension-level reset rather than a per-row toggle. Naming groupRows as the counterpart operation makes it distinguishable from the obvious adjacent sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit when-to-use rule (run before re-running groupRows) and the reason (avoid accumulating duplicate collapse widgets across report refreshes), which names the alternative tool. It stops short of stating exclusions or preconditions, e.g. whether it is safe or necessary on a sheet with no existing groupings.

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