Skip to main content
Glama

clearRange

Clears cell values in a Google Sheets range while preserving the cells and their formatting. Use it to reset content without deleting rows, columns, or styling.

Instructions

Clears all cell values in a range without deleting the cells themselves. Formatting is preserved.

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

Input Schema

NameRequiredDescriptionDefault
rangeYesA1 notation range to clear (e.g., "A1:B10" or "Sheet1!A1:B10").
readHandleNoCapability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio.
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.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses what is preserved (cells, formatting) but says nothing about irreversibility of the data loss, what happens to formulas/dependent cells, notes, hyperlinks, or data validation, nor about permission requirements for a destructive operation.

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 short sentences, zero filler, with the most decision-relevant constraint (cells not deleted, formatting preserved) front-loaded immediately after the core action.

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?

No output schema and no annotations, so the description is the only source of behavioral information for a destructive operation. It covers the core semantic distinction well but omits irreversibility, permission needs, and how non-value cell content is treated, leaving meaningful gaps for a mutating tool.

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 all three parameters (spreadsheetId, range, readHandle) are already documented in the schema, including A1 notation examples. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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?

Specific verb (clears) plus specific resource (cell values in a range) with an explicit scope boundary: it removes values but not the cells themselves, and formatting is preserved. This implicitly distinguishes it from the sibling deleteRange, so an agent can choose between them without opening the schema.

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?

No explicit when-to-use statement or named alternative. The contrast with deletion is implied by 'without deleting the cells themselves,' which lets an agent infer this is the right tool when content should go but structure/formatting must stay. It stops short of stating conditions or prerequisites such as whether the range must exist.

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