Skip to main content
Glama

hide_rows

Destructive

Hides a specified range of rows in a Google Sheets spreadsheet from view to keep sensitive, outdated, or distracting data out of sight without deleting it.

Instructions

Hide rows in a sheet from view.

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 hide end_row: 0-based index of the last row to hide (inclusive). If omitted, hides only start_row.

Returns: Result of the batchUpdate operation. Returns {"error": ...} without calling the Sheets API if start_row is negative or end_row precedes start_row.

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

Input Schema

NameRequiredDescriptionDefault
sheetYes
end_rowNo
start_rowYes
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, so the safety profile is carried structurally. The description adds genuinely useful behavior beyond that: 0-based indexing, inclusive end_row, the omit-end_row default, and an important pre-flight rule that invalid ranges return a local error without calling the Sheets API. It does not explain whether hiding is reversible or what happens when rows are already hidden, leaving some mutation behavior opaque.

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?

A single front-loaded summary followed by structured Args and Returns blocks; nothing is redundant. The Returns block partially restates what an output schema would cover, but the error-semantics detail keeps it useful.

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?

For a mutating tool with an output schema and only a destructiveHint annotation, the definition covers arguments and validation well but omits the relationship to unhide_rows (reversibility), behavior on already-hidden rows, and failure modes for a missing sheet. Adequate but with clear gaps given the tool's complexity.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry all parameter meaning, and it does: each of the four parameters is described, including that spreadsheet_id is found in the URL, that start_row is a 0-based index, and that end_row is 0-based and inclusive with a documented default when omitted. Minor gaps remain, such as whether 'sheet' must be an exact name versus an ID.

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 first line states a specific verb and resource ('Hide rows in a sheet from view'), which is immediately distinguishable from siblings like hide_columns and unhide_rows. It stops short of explicitly naming or contrasting those siblings, so it is clear but not fully differentiated.

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 hide versus delete_rows, unhide_rows, or resize_rows, nor any note about prerequisites such as the sheet needing to exist. The only conditional behavior documented is about the row-range arguments, not about tool selection.

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