Skip to main content
Glama

write_sheet

Writes values to a specified Google Sheets range, replacing existing data. Use it to update spreadsheet cells by providing the spreadsheet ID, range, and rows of values.

Instructions

Write data to a Google Sheet. Overwrites existing data in the specified range.

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_id": "<spreadsheet_id>",
      "range": "<range>",
      "values": "<values>"
    },
    "name": "write_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeYesThe range to write to (e.g., 'Sheet1!A1' or 'A1' for current sheet)
valuesYesArray of rows to write. Each row is an array of values.
spreadsheet_idYesThe ID of the Google Sheet (from the URL: docs.google.com/spreadsheets/d/{ID})

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important trait: existing data in the range is destroyed. It says nothing about permissions/auth requirements, what happens to cells beyond the written block, or what the call returns, leaving meaningful gaps for a mutation tool.

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, zero filler, with the destructive behavior front-loaded right after the purpose. Every word 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 three-parameter write tool with full schema coverage and no output schema, the definition covers purpose and the overwrite hazard but omits auth/permission expectations and any indication of the response. Adequate but not complete for a destructive mutation with no annotations.

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 coverage is 100% and all three parameters are documented in the schema with examples (A1 notation, row arrays, ID from URL), so the description adds no meaning beyond it. Baseline 3 is appropriate when the schema does all the work.

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?

States a specific verb and resource ("Write data to a Google Sheet") and adds the key scope qualifier that it overwrites the target range. This implicitly separates it from append_sheet, but the sibling is never named, so an agent must infer the distinction from the word "overwrites."

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 overwrite warning hints at when to prefer a non-destructive alternative like append_sheet, but it never states that condition explicitly or names any alternative. Usage is implied rather than directed.

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