Skip to main content
Glama

clear_sheet

Clear data from a specified range in a Google Sheet to remove content while preserving formatting and the sheet.

Instructions

Clear data from a specified range in a Google Sheet.

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

Input Schema

NameRequiredDescriptionDefault
rangeYesThe range to clear (e.g., 'Sheet1!A1:D10' or 'A1:D10')
spreadsheet_idYesThe ID of the Google Sheet (from the URL: docs.google.com/spreadsheets/d/{ID})

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing beyond the verb. It does not say whether formulas and formatting survive, whether the operation is reversible, what permissions are needed, or what is returned on success - all critical for a mutation 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?

A single front-loaded sentence with no filler or redundancy. Its brevity is appropriate stylistically, though it leaves the specification thin rather than being verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive write operation with zero annotation coverage and no output schema, the definition should state what exactly is removed and whether it can be undone. The two parameters are well documented by the schema, but the behavioral side of the contract is missing.

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 coverage is 100% and both parameters already have examples and format hints (A1-style ranges, ID extracted from the URL), so the description's omission of parameter detail costs little. It adds no meaning beyond the schema, which is the expected baseline here.

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?

Names a specific verb ('Clear') and resource ('data from a specified range in a Google Sheet'), which is enough to distinguish it from read_sheet, write_sheet and append_sheet. It stops short of explicitly contrasting itself with those siblings, so an agent must infer the difference between clearing and overwriting.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No statement of when to use this instead of write_sheet (which would replace content) or append_sheet. The only guidance is implied by the word 'Clear'; there are no exclusions, prerequisites, or alternative-routing instructions.

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