Skip to main content
Glama

write_range

Write a 2D array of values to a specified A1 range in a Google Sheet, with options to store as raw strings or parse formulas, dates, and numbers.

Instructions

Write a 2D array of values to an A1 range.

value_input_option: RAW (store verbatim as strings; default) or USER_ENTERED (parse like a user typing — formulas, dates, and numbers are evaluated). Opt in to USER_ENTERED explicitly; it evaluates formulas including those that can make external network requests.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeYes
valuesYes
spreadsheet_idYes
value_input_optionNoRAW
Behavior3/5

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

With no annotations provided, the description carries full behavioral disclosure burden. It reveals the important behavior of USER_ENTERED option evaluating formulas, which is a key risk. However, it does not mention other behavioral aspects such as whether the write is destructive (overwrites existing data), required authentication scopes, or effects on existing data not in the range.

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?

The description is concise, using two sentences for the main action and a brief paragraph for the parameter option. It is front-loaded with the primary purpose. There is no unnecessary fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, no annotations, and three required parameters, the description is insufficient. It does not explain the spreadsheet_id format, range notation (A1), or values array structure. For a mutation tool with many siblings, more detail is needed to ensure correct invocation.

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

Parameters2/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 only adds meaning for the optional 'value_input_option' parameter, explaining RAW vs USER_ENTERED. The required parameters (spreadsheet_id, range, values) are not explained, leaving their semantics unclear.

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 clearly states the verb 'Write' and the resource '2D array of values to an A1 range', making the purpose understandable. However, it does not explicitly mention that the write operation overwrites existing data, which could be ambiguous.

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 provides some usage guidance by explaining the value_input_option and warning about USER_ENTERED evaluating formulas with external requests. However, it does not specify when to use this tool versus siblings like batch_write or read_range, nor does it mention prerequisites or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/richmcpharlin/google-sheets-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server