Skip to main content
Glama
google-sheets-mcp
by ezrazhang7

Clear a range

clear_range

Clear cell values in a Google Sheets range without removing formatting, keeping layout intact. Use it to reset data quickly; for removing rows or columns entirely, use delete operations instead.

Instructions

Clear cell values in a range (formatting is kept). To remove rows or columns entirely, use delete_rows / delete_columns instead.

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>",
      "range": "<range>"
    },
    "name": "clear_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesA1 range to clear, e.g. "A2:C10"
sheetNoSheet (tab) name; defaults to the first sheet
spreadsheetIdYesSpreadsheet ID or full Google Sheets URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A4/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 burden. It discloses the key side effect (values cleared, formatting preserved), but says nothing about irreversibility, required permissions, or whether clearing triggers recalculation of dependent formulas.

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 the preserved property, second sentence devoted entirely to disambiguation. No filler.

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 three-parameter, well-documented read-modify tool with no output schema, the description covers the essentials and the main sibling distinction. Only the destructive/undo semantics are absent.

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 range format and sheet defaulting are already documented in the schema. The description adds no parameter-level detail such as whether ranges can span sheets or accept named ranges.

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 ("Clear cell values in a range") and immediately pins down what survives ("formatting is kept"), which separates it from destructive structural siblings.

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?

Explicitly routes the agent to delete_rows / delete_columns when the intent is removing rows or columns entirely. It does not address the adjacent case of emptying cells via update_cells, but the primary alternative is named with its selection condition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.