Skip to main content
Glama
Google Workspace MCP
by holms

Write Google Sheet

write_google_sheet

Writes a 2D array of values to a specified Google Sheets range by spreadsheet ID, enabling automated cell updates and data entry.

Instructions

Write values to a Google Sheet. Range example: 'Sheet1!A1'. Values is a 2D array of strings.

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_name": "<range_name>",
      "values": "<values>"
    },
    "name": "write_google_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
valuesYes
range_nameYes
spreadsheet_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.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 behavioral burden. It says 'write values' but never discloses whether existing data in the range is overwritten, whether cells beyond the supplied array are cleared, whether the spreadsheet must already exist, or what permissions are required.

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, front-loaded sentences with no filler; the operation is stated first and the format hints follow. Slightly clipped to the point of under-specification, but structurally sound.

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?

An output schema exists, so return values need not be described. However, for a 3-parameter mutation tool with zero annotation coverage, the definition omits the overwrite/merge semantics that most affect correct invocation.

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 0%, so the description must compensate. It does explain the format of two parameters — range_name via the 'Sheet1!A1' example and values as a 2D array of strings — but leaves spreadsheet_id (ID format vs. URL) entirely undocumented.

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 values to a Google Sheet'), which is clear on its own. It does not, however, differentiate itself from the sibling append_to_google_sheet, which is the main ambiguity an agent would face.

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 guidance on when to use this versus append_to_google_sheet, clear_google_sheet, or create_google_sheet. The critical question of whether writing replaces or merges with existing range content is left entirely to inference.

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