Skip to main content
Glama

clear_values

Destructive

Clears cell content in a chosen range while preserving formatting; omit the range to clear the entire sheet.

Instructions

Clear cell content in a range without touching formatting.

Args: spreadsheet_id: The ID of the spreadsheet (found in the URL) sheet: The name of the sheet range: A1 notation range to clear (e.g., 'A1:D10'). If omitted, clears the entire sheet.

Returns: Result of the clear operation

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

Input Schema

NameRequiredDescriptionDefault
rangeNo
sheetYes
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.6/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 destructive nature is established before the description is read. The description does add one genuinely valuable behavioral fact -- formatting is preserved, so the destruction is partial -- and it discloses the whole-sheet default when `range` is omitted. It does not say whether the clear is reversible, whether formulas or merged cells are affected, or what happens to protected ranges.

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 lead sentence is front-loaded and earns its place. The Args block is informative, but the 'Returns: Result of the clear operation' line is pure filler given an output schema exists, and the multi-line wrapping of the `range` entry is slightly noisy.

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 mutation tool with a declared destructive hint and an output schema, the definition covers what an agent needs to call it correctly, including the risky whole-sheet default. The remaining gap is irreversibility and edge-case behavior on formulas or merged cells, which matters for a destructive operation but is not strictly required to invoke it.

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 carries the full burden for all three parameters, and it does so: `spreadsheet_id` is identified as coming from the URL, `sheet` is the sheet name, and `range` is documented as A1 notation with a concrete example ('A1:D10') plus its null default behavior. This adds substantial meaning beyond the bare schema types.

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 gives a specific verb and resource ('Clear cell content in a range') and adds a meaningful scope qualifier ('without touching formatting') that separates it from a full row/column delete or a formatting reset. It doesn't name any sibling, but the operation itself is unambiguous.

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?

Usage is implied by the verb. The only real guidance is the conditional default for `range` ('If omitted, clears the entire sheet'), which is useful but stated flatly as an arg note rather than as a warning. No guidance on when to prefer this over `clear_data_validation` or a batch update, and no preconditions are 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