Google Sheets
v1.2.1Allow AI systems to read, write, and query spreadsheet data via Google Sheets.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
spreadsheet_get Get spreadsheet
Get spreadsheet metadata including title, sheets list, and optionally cell data
| Parameter | Type | Description |
|---|---|---|
spreadsheetId * | string | The ID of the spreadsheet to retrieve |
includeGridData | boolean | Whether to include grid data (cell values). Default false for metadata only. |
ranges | array | Ranges to return grid data for (e.g., "Sheet1!A1:B10"). Only used if includeGridData is true. |
spreadsheet_create Create spreadsheet
Create a new Google Sheets spreadsheet
| Parameter | Type | Description |
|---|---|---|
title * | string | Title of the new spreadsheet |
sheets | array | Initial sheets to create. If not provided, a default "Sheet1" is created. |
values_get Get values
Read cell values from a spreadsheet range
| Parameter | Type | Description |
|---|---|---|
range * | string | The A1 notation of the range to read (e.g., "Sheet1!A1:D10", "Sheet1", "A1:D10") |
spreadsheetId * | string | The ID of the spreadsheet |
dateTimeRenderOption | string | How dates should be rendered |
majorDimension | string | Whether to return data as rows or columns |
valueRenderOption | string | How values should be rendered: FORMATTED_VALUE (display values), UNFORMATTED_VALUE (raw), or FORMULA (formulas) |
values_batch_get Batch get values
Read cell values from multiple ranges in a single request
| Parameter | Type | Description |
|---|---|---|
ranges * | array | Array of A1 notation ranges to read (e.g., ["Sheet1!A1:D10", "Sheet2!A:A"]) |
spreadsheetId * | string | The ID of the spreadsheet |
dateTimeRenderOption | string | How dates should be rendered |
majorDimension | string | Whether to return data as rows or columns |
valueRenderOption | string | How values should be rendered |
values_update Update values
Write cell values to a spreadsheet range (overwrites existing data)
| Parameter | Type | Description |
|---|---|---|
range * | string | The A1 notation of the range to update (e.g., "Sheet1!A1:D10") |
spreadsheetId * | string | The ID of the spreadsheet |
values * | array | The data to write, as a 2D array of values (rows of columns) |
includeValuesInResponse | boolean | Whether to include the updated values in the response |
valueInputOption | string | How input data should be interpreted: RAW (as-is) or USER_ENTERED (parsed like typed in UI, e.g., "=A1+B1" becomes formula) |
values_batch_update Batch update values
Write cell values to multiple ranges in a single request
| Parameter | Type | Description |
|---|---|---|
data * | array | Array of range/values pairs to update |
spreadsheetId * | string | The ID of the spreadsheet |
includeValuesInResponse | boolean | Whether to include the updated values in the response |
valueInputOption | string | How input data should be interpreted |
values_append Append values
Append rows of data after the last row with data in a range
| Parameter | Type | Description |
|---|---|---|
range * | string | The A1 notation of a range to search for data. Data will be appended after the last row with data in this range (e.g., "Sheet1!A:A" to append to column A, or "Sheet1" to append to the sheet) |
spreadsheetId * | string | The ID of the spreadsheet |
values * | array | The data to append, as a 2D array of values (rows of columns) |
includeValuesInResponse | boolean | Whether to include the appended values in the response |
insertDataOption | string | How to handle existing data: OVERWRITE writes over existing, INSERT_ROWS inserts new rows |
valueInputOption | string | How input data should be interpreted: RAW (as-is) or USER_ENTERED (parsed like typed in UI) |
values_clear Clear values
Clear cell values from a range (keeps formatting)
| Parameter | Type | Description |
|---|---|---|
range * | string | The A1 notation of the range to clear (e.g., "Sheet1!A1:D10") |
spreadsheetId * | string | The ID of the spreadsheet |
sheets_list List sheets
List all sheets (tabs) in a spreadsheet with their properties
| Parameter | Type | Description |
|---|---|---|
spreadsheetId * | string | The ID of the spreadsheet |
sheet_add Add sheet
Add a new sheet (tab) to a spreadsheet
| Parameter | Type | Description |
|---|---|---|
spreadsheetId * | string | The ID of the spreadsheet |
title * | string | Title of the new sheet |
columnCount | number | Number of columns (default 26) |
index | number | The index to insert the sheet at. If not specified, appended to the end. |
rowCount | number | Number of rows (default 1000) |
sheet_delete Delete sheet
Delete a sheet (tab) from a spreadsheet
| Parameter | Type | Description |
|---|---|---|
sheetId * | number | The ID of the sheet to delete (not the title - use sheets_sheets_list to get sheet IDs) |
spreadsheetId * | string | The ID of the spreadsheet |
batch_update Batch update
Execute multiple spreadsheet operations in a single request. Use for advanced operations like formatting, merging cells, creating filters, conditional formatting, sorting, etc.
| Parameter | Type | Description |
|---|---|---|
requests * | array | Array of Sheets API request objects. See https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/request for available request types. Common requests include: updateCells, repeatCell,… |
spreadsheetId * | string | The ID of the spreadsheet |
includeSpreadsheetInResponse | boolean | Whether to include the updated spreadsheet in the response |