Skip to main content
Glama
google-sheets-mcp
by ezrazhang7

Update cells

update_cells

Writes values into a specified range, overwriting existing cells. Strings starting with '=' become formulas, and dates and numbers are recognized.

Instructions

Write values into a range in place, overwriting existing cells. Values are parsed as if typed in the Sheets UI, so strings starting with '=' become formulas, and dates/numbers are recognized.

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": "update_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesA1 range to write, e.g. "B2" or "A1:C3". The values array is anchored at its top-left cell.
sheetNoSheet (tab) name; defaults to the first sheet
valuesYes2D array of cell values, one inner array per row
literalNoIf true, store values exactly as given (no formula or date parsing)
spreadsheetIdYesSpreadsheet ID or full Google Sheets URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does meaningful work: it flags the destructive nature (overwriting existing cells) and the coercion rules that make writes surprising ('=' becomes a formula, dates/numbers auto-parsed). It does not cover permissions/scopes, what happens when the values array shape does not match the range, or what is returned, so it stops short of full transparency.

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 sentences, zero filler, and the most consequential fact (in-place overwrite) is front-loaded before the parsing caveats. Every clause earns its place.

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 five-parameter destructive mutation with no annotations and no output schema, the description covers the write semantics and type coercion well but omits return behavior, error/shape-mismatch handling, and any routing to the batch or append alternatives. It is adequate to invoke correctly, but not complete given the tool's risk profile.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description adds value by framing the whole values payload as "parsed as if typed in the Sheets UI", which explains why strings, numbers and dates behave the way they do and motivates the literal escape hatch defined in the schema. The 2D anchoring and literal flag are left to the schema, which is fine given its 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 ("Write values into a range") and qualifies the semantics as in-place overwrite. It implicitly distinguishes itself from append-style siblings via "overwriting existing cells", but never names an alternative such as batch_update or append_rows.

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 only implied: the overwrite framing hints this is the tool for replacing existing cell content rather than appending or formatting. There is no explicit when-to-use vs when-not-to-use statement and no mention of the multi-range batch_update sibling.

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