batchWrite
Writes values to multiple Google Sheets ranges in one API request, so you can update several ranges without separate write calls.
Instructions
Writes data to multiple ranges in a single API call. More efficient than multiple separate writeSpreadsheet calls when updating several ranges at once.
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>",
"data": "<data>"
},
"name": "batchWrite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Array of range+values pairs to write in a single batch. | |
| readHandle | No | Capability returned by the corresponding read tool. Required on the modern MCP runtime, including modern stdio. | |
| spreadsheetId | Yes | The spreadsheet ID — the long string between /d/ and /edit in a Google Sheets URL. | |
| valueInputOption | No | How input data should be interpreted. RAW: values are stored as-is. USER_ENTERED: values are parsed as if typed by a user. | USER_ENTERED |