Skip to main content
Glama

Write Sheets range

sheets_write_range
DestructiveIdempotent

Write cell values directly into a Google Sheets range, overwriting existing content immediately without confirmation. Use it to update or replace spreadsheet data in one call.

Instructions

Writes cell values into a range in a Google Sheet immediately, overwriting existing content in that range. No confirmation step.

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": {
      "spreadsheetId": "<spreadsheetId>",
      "range": "<range>",
      "values": "<values>"
    },
    "name": "sheets_write_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesA1 notation range to write into, e.g. "Sheet1!A1". The written block extends right and down from the start cell, overwriting whatever is there.
valuesYesRows of cell values, outer array = rows, inner = columns. e.g. [["Name","Score"],["Ada",91]].
spreadsheetIdYesSpreadsheet id — the long string between "/d/" and "/edit" in the sheet URL. Not the sheet name.
valueInputOptionNo"USER_ENTERED" parses values as if typed, so "=…" becomes a live formula: never use it for text from web pages or messages. Defaults to "RAW".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false. The description adds meaningful detail beyond those annotations by stating that the write happens immediately, overwrites existing content in the range, and has no confirmation step. It does not cover permissions, reversibility, or rate limits, but the key destructive behavior is well disclosed.

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?

Two short sentences with no wasted words, front-loading the action and immediately following with the overwrite and no-confirmation warning. Every sentence earns its place.

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 tool is a simple destructive write with four fully documented parameters and no output schema. The description plus annotations and schema give enough information to call it correctly, though it could be slightly more complete by explicitly mentioning the lack of undo or the idempotent nature of the write.

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 the input schema already documents all four parameters thoroughly, including A1 range notation, value array structure, spreadsheetId lookup, and USER_ENTERED behavior. The description adds no parameter-specific detail beyond what the schema provides, which is acceptable given the complete schema coverage.

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 states a specific verb and resource: writes cell values into a range in a Google Sheet. The write operation is clearly distinguishable from the read-oriented sibling sheets_read_range, though no sibling is explicitly named.

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?

The description makes clear this is an immediate write, but it does not explicitly say when to use it versus alternatives or when to avoid it. The 'No confirmation step' warning is useful context but not a full usage guideline.

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