Skip to main content
Glama
gworkspace-mcp
by ctschak

Write cells

sheets_write

Writes cell values to one or more A1 ranges in a single batch, parsing formulas and dates with USER_ENTERED or storing literal text with RAW, and supports dry-run previews.

Instructions

Write values to one or more A1 ranges in a single batch. valueInput USER_ENTERED (default) parses input as if typed, so formulas and dates work; RAW stores literal text. Supports dryRun.

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": "<spreadsheet>",
      "updates": "<updates>"
    },
    "name": "sheets_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoWhen true, returns the exact API request that would be sent plus an impact summary, and sends nothing.
accountNoGoogle account to act as. Optional when one account is authorised or a default is set; required otherwise.
updatesYesRanges to write. Several are applied in one batch — one API call, one unit of quota.
valueInputNoUSER_ENTERED (default) parses input as if typed: "=SUM(A1:A9)" becomes a formula and "9/13" becomes a date. RAW stores the literal string.
spreadsheetYesSpreadsheet URL or file id. Both accepted; a URL has its id extracted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.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 disclosure burden. It restates valueInput modes and dryRun support that the schema already documents in equal or greater detail, but never says that existing cell contents are overwritten, that ranges must match value shape (only in schema), or what permissions/quota behavior to expect for this mutation.

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?

Three short sentences, front-loaded with the core action and scope, followed by the two behavioral toggles. No filler, though the valueInput sentence largely duplicates the schema and could be trimmed.

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 5-parameter mutation tool with no annotations and no output schema, the description covers the action and option flags but omits the consequences of writing (overwrite of existing values), what is returned after a successful write, and per-range error handling. Adequate but with real gaps.

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 every parameter is already documented, including valueInput and dryRun semantics. The description merely echoes the USER_ENTERED/RAW distinction already spelled out in the enum description and adds nothing about spreadsheet, account, or updates beyond the schema.

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 names a specific verb and resource ('Write values to one or more A1 ranges') and adds batch scope ('in a single batch'), so the operation is unambiguous. It never distinguishes itself from siblings like sheets_append or sheets_batch_update_raw, which is the only thing keeping it from a 5.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named despite close siblings (append vs write vs raw batch update) existing. The phrase 'in a single batch' only implies a preference for batching, leaving the agent to infer selection criteria.

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