Skip to main content
Glama

hide_columns

Destructive

Hide one or more columns in a Google Sheets sheet by specifying column indexes, removing them from view without deleting their data.

Instructions

Hide columns in a sheet from view.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet start_column: 0-based index of the first column to hide (0 = column A) end_column: 0-based index of the last column to hide (inclusive). If omitted, hides only start_column.

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

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_column": "<start_column>"
    },
    "name": "hide_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYes
end_columnNo
start_columnYes
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 declare destructiveHint=true; the description adds that hiding is a view-level operation done via batchUpdate, that end_column omitted hides only start_column, and that invalid indices short-circuit with {"error": ...} without touching the Sheets API. It still does not say whether hidden data remains intact or whether the change is reversible via unhide_columns, which are the most safety-relevant facts for a destructive-hinted tool.

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?

Summary line comes first, then a compact Args/Returns block with no filler. The Args section is somewhat repetitive of the schema structure, but since the schema has zero descriptions that repetition is load-bearing rather than wasteful.

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 4-parameter mutation tool with annotations and an output schema, the definition covers parameter meaning, default behavior, and the failure path. The remaining gaps — permission requirements and whether the operation is reversible — are real but modest given the existing annotation and output schema.

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 does so: spreadsheet_id is tied to the URL, sheet is a name not an ID, start_column is 0-based with a concrete anchor (0 = column A), and end_column is documented as inclusive with its default behavior when omitted.

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?

States a specific verb and resource ('Hide columns in a sheet from view'), which cleanly separates it from hide_rows and unhide_columns by resource and direction. It does not explicitly name those siblings or contrast itself with them, so it falls short of the top band.

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 purpose implies when to use it (making columns invisible rather than deleting them), but there is no explicit 'use X instead when...' guidance against delete_columns or unhide_columns. The precondition about negative start_column / inverted end_column is a validation rule, not usage guidance, though it does help the caller avoid a failed call.

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