Strict, agent-friendly MCP server for Google Sheets operations
gsheets-mcp exhibits strong naming conventions, comprehensive parameter schemas, and detailed descriptions with agent-friendly guidance. All 9 tools follow verb_noun pattern (gsheets_list_tabs, gsheets_read_range, etc.). Descriptions consistently include WHEN to use, prerequisites, and examples. Parameter schemas are well-constrained with enums, minLength/maxLength, and patterns. However, output schemas are inferred from return type annotations rather than explicitly documented in tool definitions; tool annotations (readOnlyHint, destructiveHint) are declared but not universally present; error handling relies on custom SheetsClientError with outcome_state classification but lacks recovery action guidance in all cases.
Append row-major values using Google Sheets table detection. This is non-idempotent: never repeat it after an uncertain response. Use gsheets_write_range for exact-cell replacement and read the table first. Values must be a JSON matrix, not a string. Example: {"spreadsheet": "<id-or-url>", "range": "Sheet1!A:B", "values": [["PCTY", 100]]}.
Clear all values from an A1 range without changing tab structure, formulas in other cells, or named ranges. This is destructive; read and inspect first. A lost transport response has an uncertain outcome and must not be retried blindly.
Copy all or selected source tabs into a new spreadsheet file. The spreadsheet argument is the source and title names the destination. This is non-idempotent. Partial errors retain the destination ID and confirmed progress; inspect that destination instead of rerunning. Use gsheets_create_spreadsheet for a blank file. Example: {"spreadsheet": "<source-id-or-url>", "title": "Working Copy", "tabs": ["Comps"]}.
Create a new spreadsheet file, not a tab. This is non-idempotent; retain the returned spreadsheet ID and never repeat after an uncertain response without checking Drive. Use gsheets_copy_spreadsheet when starting from existing tabs. Example: {"title": "[hank] Operating Comps - 2026-07-14"}.
Output schemas not explicitly documented in tool definitions. Return types are inferred from Python type annotations (ListTabsSuccess, ReadRangeSuccess, etc.) but are not formally published as JSON Schema in the tool registration. LLMs cannot reliably plan downstream tool calls without seeing the response structure.
Tool annotations (readOnlyHint, destructiveHint) are declared in Risk field but only 7 of 9 tools have explicit risk classification. gsheets_recalculate_range lacks a clear destructive hint despite being a WRITE operation that may trigger side effects.
Inferred effective spec: 2025-06-18+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 63 | 2025-06-18+ | v2 |
| 2026-03-09 | D | 57 | - | v1 |
List tab titles and grid dimensions for a spreadsheet URL or ID; titles are not valid spreadsheet references. Use this before gsheets_read_range when the tab is unknown. The returned spreadsheet value is a normalized ID reusable by every sibling tool. Example: {"spreadsheet": "<spreadsheet-id-or-url>"}.
Read an A1 range from a spreadsheet URL or ID. Use gsheets_list_tabs first when the tab is unknown; pass the tab inside range, not as sheet_name. FORMULA returns formula text; formatted and unformatted modes return rendered values. Use gsheets_write_range or gsheets_append_rows to mutate. Example: {"spreadsheet": "<spreadsheet-id-or-url>", "range": "Sheet1!A1:D20"}.
Recalculate formula cells in an A1 range to work around missing values or cached results. If verification fails, partial compensation is attempted but not guaranteed. Use this rarely and only for formula ranges that depend on external data sources.
Search local-mode Google Drive spreadsheet titles and return normalized IDs reusable as spreadsheet arguments. This searches files, not cell contents. Select results[n].spreadsheet, then use gsheets_list_tabs or gsheets_read_range; do not pass the title to sibling tools. It is absent from broker mode. Example: {"query": "operating comps", "limit": 10}.
Overwrite an A1 range with USER_ENTERED values. This is destructive and approval-gated by the gateway; inspect the target first. A lost transport response has an uncertain outcome and must not be retried blindly. Use gsheets_append_rows to add rows instead; values must be a JSON matrix, not a string. Example: {"spreadsheet": "<id-or-url>", "range": "Sheet1!A1:B2", "values": [["Ticker", "PCTY"]]}.
Error handling uses custom SheetsClientError with outcome_state, phase, and retry_safe fields, but error messages returned to LLM lack actionable recovery guidance in edge cases. For example, 'created_spreadsheet_identity_missing' error states the problem but suggests 'inspect_drive_before_retry' without providing a tool path or example recovery sequence.
gsheets_search_spreadsheets description states 'It is absent from broker mode' but does not explain what 'broker mode' is or how the agent should detect or adapt. This requires external context.
gsheets_recalculate_range description is notably brief (93 chars) and lacks guidance on when to use it vs other tools, prerequisites, or expected outcomes. Does it modify values or only trigger recalculation? Is it safe for dependent formulas?