Skip to main content
Glama
tg-tool

Google Sheets Write MCP Server

by tg-tool

clear_range

Clear cell values in a specified range without affecting formatting. Default dry-run mode allows preview before permanent deletion, with snapshot support for restoring cleared data.

Instructions

Clear all values in a range (destructive — dry_run defaults to TRUE).

Values are snapshotted before clearing so they can be restored. Formatting is not affected by this operation.

Args: spreadsheet_id_or_url: Full Sheets URL or bare spreadsheet ID. sheet: Sheet name OR gid string. range: Bare A1 range without sheet prefix, e.g. 'B2:D10'. dry_run: Defaults to TRUE. Pass false to actually clear. force: Allow clears touching more than the cell limit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
rangeYes
sheetYes
dry_runNo
spreadsheet_id_or_urlYes
Behavior5/5

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

No annotations provided, so description carries full burden. It discloses destructive nature, snapshot before clearing, formatting not affected, dry_run default true, and force parameter. This is comprehensive behavioral disclosure.

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?

The description is concise with a one-line summary followed by clear argument descriptions. It is well-structured and front-loaded, with every sentence adding value.

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?

The description covers behavior, parameters, and safety. However, it does not explicitly mention the return value or response format. Given no output schema, mentioning the snapshot or result would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description's 'Args' section explains all 5 parameters in detail, adding meaning beyond the schema names. For example, it clarifies the format of sheet and range parameters and explains dry_run default.

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?

The description clearly states 'Clear all values in a range' which is a specific verb+resource. It distinguishes from siblings like update_range or delete_rows by specifying that only values are cleared and formatting remains unaffected.

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?

The description provides usage context with dry_run default and force parameter, but does not explicitly compare to sibling tools. It implies when to use by describing destructive nature and snapshot behavior.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tg-tool/google-sheets-write-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server