Skip to main content
Glama

unhide_rows

Destructive

Reveals previously hidden rows in a Google Sheets spreadsheet by specifying the sheet and row range, restoring visibility to concealed data.

Instructions

Unhide previously hidden rows in a sheet.

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 unhide end_row: 0-based index of the last row to unhide (inclusive). If omitted, unhides 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": "unhide_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

A4/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true, so the description carries most of the behavioral burden. It adds genuinely useful context beyond that: the operation is a batchUpdate, and invalid ranges (negative start_row or end_row before start_row) return an error without calling the Sheets API. It does not mention permission requirements or what unhiding exposes, which keeps it at 4.

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 Args/Returns structure is scannable and front-loads the purpose in one sentence. The error-handling sentence is slightly wordy but earns its place by documenting validation behavior.

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 four-parameter mutation with an output schema present, the definition covers purpose, all parameters, range validation, and the return type. Missing only secondary details like permission needs or whether the unhide persists across sessions.

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 must compensate and it does: spreadsheet_id is sourced from the URL, sheet is by name, start_row and end_row are 0-based with end_row inclusive, and omitting end_row unhides only start_row. Every parameter's meaning and default is spelled out.

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 ('Unhide previously hidden rows in a sheet'), which is unambiguous and distinguishable from the opposite action in hide_rows. It does not explicitly name a sibling tool for contrast, keeping it just short of a 5.

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?

The phrase 'previously hidden rows' implies the precondition that rows must already be hidden, but there is no explicit when-to-use/when-not guidance or pointer to alternatives such as hide_rows. Usage is inferable rather than stated.

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