Skip to main content
Glama
gworkspace-mcp
by ctschak

Clear ranges

sheets_clear

Clear values from specified A1 ranges in Google Sheets while preserving formatting, with an optional dryRun preview before applying.

Instructions

Clear values from A1 ranges, leaving formatting intact. Supports dryRun.

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": "<spreadsheet>",
      "ranges": "<ranges>"
    },
    "name": "sheets_clear"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, returns the exact API request that would be sent plus an impact summary, and sends nothing.
rangesYesA1 ranges to clear. Clears values only; formatting is left intact.
accountNoGoogle account to act as. Optional when one account is authorised or a default is set; required otherwise.
spreadsheetYesSpreadsheet URL or file id. Both accepted; a URL has its id extracted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does add real value: it discloses that only values are removed and formatting survives, and that a dryRun mode exists. It omits that the clear is destructive/irreversible (no undo note) and says nothing about required scopes or auth.

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?

Two short sentences, front-loaded with the core action and its key constraint (formatting preserved). "Supports dryRun" is slightly redundant with the schema but still useful as a signal at selection time.

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?

For a destructive mutation tool with zero annotations and no output schema, the description covers the essential scope-of-destruction point but leaves reversibility, auth requirements, and result shape unaddressed. Adequate but with clear gaps.

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 four parameters including dryRun and account are fully documented in the schema. The description's mention of A1 ranges and dryRun restates that without adding format or syntax detail, so the baseline 3 applies.

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?

"Clear values from A1 ranges, leaving formatting intact" states a specific verb and resource and clarifies scope by excluding formatting changes, which separates it from sheets_format and sheets_write. It doesn't explicitly name a sibling, but the operation 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: use this to remove cell contents while keeping formatting. There is no explicit when-to-use versus alternatives such as sheets_write (which would overwrite values) or sheets_batch_update_raw, and no stated preconditions like required permissions.

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