Skip to main content
Glama

Write to a range

write_range

Overwrites cells in a specified Google Sheets A1 range with a new value grid, replacing existing data. Use append_rows to add rows or update_row to edit a field.

Instructions

Overwrites the cells of a range with the given values. Warning: existing data in that range is lost. To add rows at the end use append_rows; to change a field in an existing record use update_row.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeYesTarget A1 range, e.g. 'Sheet1!A1'.
valuesYesValue grid: an array of rows, each row an array of cells.
spreadsheetIdYesSpreadsheet ID, or its full URL. The ID is the segment between /d/ and /edit in the URL.
valueInputOptionNoUSER_ENTERED parses values as if typed by hand (formulas, dates, numbers). RAW stores them literally as strings.USER_ENTERED

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/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 does disclose the critical destructive trait: existing data in the range is lost. It does not cover permission/auth requirements or the response shape, so it falls short of a full 5, but the most important risk is stated prominently.

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?

Three tightly packed sentences: behavior, warning, and alternatives. The destructive warning is front-loaded after the action, and every clause earns its place with zero redundancy.

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 4-parameter write tool with no annotations and no output schema, the description covers the destructive overwrite semantics and sibling routing that an agent needs. It could optionally note return behavior or scope-limiting, but nothing essential for correct invocation 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 description coverage is 100%, so range, values, spreadsheetId, and the valueInputOption enum are all documented in the schema itself. The description adds no parameter-level detail beyond that, which makes the baseline 3 appropriate.

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?

States a specific verb and resource ('Overwrites the cells of a range') and immediately distinguishes itself from the two nearest siblings by naming them (append_rows for adding rows, update_row for editing a field). An agent can route correctly without opening any sibling schema.

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

Usage Guidelines5/5

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

Explicit when-to-use and when-not-to-use guidance: use append_rows to add rows at the end, update_row to change an existing field. This is the exact routing information needed among list_tabs/read_range/append_rows/update_row/clear_range siblings.

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