MCPInstall

google-sheets

Agent-callable Google Sheets tools — read and write spreadsheet data as rows or raw cells, manage worksheets and columns, and apply formatting, sorting, and validation. Use when the user mentions Google Sheets or wants to read, add, update, look up, or organize spreadsheet data, even if they don't name Sheets explicitly.

Installs
126
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/zapier/connectors --skill google-sheets
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads google-sheets automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Google Sheets

<!-- BEGIN:skill-intro -->

Tools for working with Google Sheets against the Google Sheets API v4 (https://sheets.googleapis.com/v4/), with spreadsheet discovery via the Google Drive API. 26 tools across two complementary surfaces: a record surface — rows as objects keyed by their column headers (the "log this expense", "update the status to Done", "look up last quarter's total" jobs) — and a cell surface — raw A1-addressed values for formulas, precise numeric/text control, and arbitrary ranges. Plus spreadsheet/worksheet structure and presentation (formatting, sorting, validation).

<!-- legal:disclaimer -->

Independent, unofficial connector for Google Sheets. Not affiliated with, endorsed by, or sponsored by Google Sheets. "Google Sheets" is a trademark of its owner, used only to identify the service this connector works with.

<!-- /legal:disclaimer --> <!-- END:skill-intro -->

When to use this

<!-- BEGIN:skill-use-cases -->
  • Read or find data inside a spreadsheet — look up a row by a column value (lookupRow), find all matching rows (findRows), list a window of rows (listRows), or read a raw range (getValues).
  • Write data — append a row or many rows (createRow / createRows), update specific columns of a row without disturbing the others (updateRow / updateRows), or write a raw range / formula (updateValues).
  • Clear or delete — clear a row's contents but keep the row (clearRows / clearValues) or remove rows entirely (deleteRows).
  • Manage structure — create a spreadsheet (createSpreadsheet), add / list / copy / rename / hide / delete worksheets, add columns.
  • Format & validate — number/date/currency formats, text styling, sort a range, copy a range, dropdowns and number/date validation, conditional formatting.
<!-- END:skill-use-cases -->

Setup

This is an agentskills.io skill.

If the connector has not been installed as a skill yet, install it first with npx skills add zapier/connectors --skill google-sheets (or your harness's own skill-install mechanism), then continue here. Installing the skill copies these files, not dependencies. Before running the CLI, a local MCP server, or zapier-sdk auth commands, run npm install --omit=dev here once. Importing the published package as a dependency in your own project instead? That npm install already resolves everything — see references/use-as-sdk.md.

Want the actual repo source instead — to browse references/, run this connector's tests, or hack on it? See README.md for a scoped git clone.

The connector runs on Node.js 22.18+. Pick the reference that matches how you're running it, and load it before doing anything else:

You have...Load
An MCP-aware client — tools may already be loaded (e.g. mcp__google-sheets__<tool>), or you can register a local server yourself (or guide the user to)references/use-as-mcp.md
Terminal / subprocess access (you can run node)references/use-as-cli.md
Only your own code, importing this package as a dependencyreferences/use-as-sdk.md
No tool access, no terminal, no ability to import this package — you write your own code that calls the Google Sheets API directly (e.g. a code-execution sandbox)references/use-as-recipe.md

Scripts

<!-- BEGIN:skill-connections-note? -->

All scripts use the single google-sheets connection.

<!-- END:skill-connections-note --> <!-- BEGIN:skill-scripts-table -->
ScriptScript nameConnectionsDescription
scripts/createSpreadsheet.tscreateSpreadsheetgoogle-sheetsCreate a new spreadsheet, optionally with worksheets and a header row.
scripts/getSpreadsheet.tsgetSpreadsheetgoogle-sheetsGet a spreadsheet's metadata and its list of worksheets.
scripts/listSpreadsheets.tslistSpreadsheetsgoogle-sheetsFind spreadsheets in Drive by name (needs Drive access; otherwise pass a URL/id).
scripts/addWorksheet.tsaddWorksheetgoogle-sheetsAdd a worksheet (tab), optionally with a header row.
scripts/listWorksheets.tslistWorksheetsgoogle-sheetsList the worksheets (tabs) in a spreadsheet.
scripts/copyWorksheet.tscopyWorksheetgoogle-sheetsCopy a worksheet into another spreadsheet (or the same one).
scripts/updateWorksheetProperties.tsupdateWorksheetPropertiesgoogle-sheetsRename, move, freeze rows/columns, hide, or recolor a worksheet.
scripts/deleteWorksheet.tsdeleteWorksheetgoogle-sheetsPermanently delete a worksheet and its data.
scripts/addColumn.tsaddColumngoogle-sheetsInsert a column, optionally with a header label.
scripts/createRow.tscreateRowgoogle-sheetsAppend a single row, given values keyed by column header.
scripts/createRows.tscreateRowsgoogle-sheetsAppend multiple rows in one batched call.
scripts/updateRow.tsupdateRowgoogle-sheetsUpdate specific columns of a row by row number (leaves other columns untouched).
scripts/updateRows.tsupdateRowsgoogle-sheetsUpdate multiple rows (each by row number) in one batched call.
scripts/lookupRow.tslookupRowgoogle-sheetsFind the first row where a column matches a value.
scripts/findRows.tsfindRowsgoogle-sheetsFind all rows matching a column/value filter (bounded).
scripts/listRows.tslistRowsgoogle-sheetsRead a window of rows as records.
scripts/clearRows.tsclearRowsgoogle-sheetsClear the contents of specific rows (rows stay; nothing shifts).
scripts/deleteRows.tsdeleteRowsgoogle-sheetsDelete specific rows; everything below shifts up.
scripts/getValues.tsgetValuesgoogle-sheetsRead a raw cell range in A1 notation.
scripts/updateValues.tsupdateValuesgoogle-sheetsWrite values to a raw cell range (RAW or USER_ENTERED).
scripts/clearValues.tsclearValuesgoogle-sheetsClear the values in a raw cell range (formatting stays).
scripts/formatCells.tsformatCellsgoogle-sheetsApply number/date/currency formatting or text styling to a range.
scripts/sortRange.tssortRangegoogle-sheetsSort a range by one or more columns.
scripts/copyRange.tscopyRangegoogle-sheetsCopy a range (values + formatting) to another location.
scripts/setDataValidation.tssetDataValidationgoogle-sheetsSet a dropdown / number / date validation rule on a range.
scripts/addConditionalFormatRule.tsaddConditionalFormatRulegoogle-sheetsAdd a conditional-formatting rule to a range.
<!-- END:skill-scripts-table --> <!-- BEGIN:disambiguation-and-refusals? -->

Disambiguation & refusals

Disambiguation before a write. Before writing to a row you found by a column value (e.g. update a row located via lookupRow, or act on a spreadsheet found via listSpreadsheets), count the exact case-insensitive matches:

  • Exactly one match — act on it. Don't over-ask; a single unambiguous match is the answer.
  • Two or more that tie — stop. List the tied rows (or spreadsheets) with a distinguishing field (another column value, the spreadsheet's modified time / URL) and ask which one. Don't pick arbitrarily, and don't write to all of them.

Row numbers are not stable — they shift on insert/delete/sort. To target the same logical record across runs, match on a unique key column with lookupRow, not a remembered row number.

Confirm before destructive or bulk-overwrite operations. deleteWorksheet, deleteRows, clearRows, and clearValues remove data; updateValues can overwrite it. Confirm the exact target with the user first, and never delete / clear / overwrite more than asked.

Unsupported operations — say so and stop; don't fake it with another tool. This catalog deliberately does not:

  • Create or manage charts, pivot tables, named ranges, protected ranges, or filters. There is no tool for these; don't approximate them with formatting.
  • Find-or-create in one step. Compose it: lookupRow → if not found, createRow.
  • Permanently delete a whole spreadsheet. Worksheet deletion (deleteWorksheet) is the only structural delete.

If asked for any of these, tell the user it's unsupported and stop.

<!-- END:disambiguation-and-refusals -->

Auth

Every shape passes auth as one connection selector, not the secret — a [<resolver>:]<value> string. Every connector accepts zapier:<connection-id> (Zapier-managed auth — routes through Zapier's auth, retries, and governance layer); some also accept one or more direct-token resolvers (naming and count vary per connector) — check this connector's own resolvers rather than assuming. The <resolver>: prefix is optional; a bare value goes to the first resolver that claims it — a UUID-shaped bare value always claims zapier:. Each script declares the connections it needs and the resolvers each accepts. The exact syntax for passing a connection (and how to see this connector's resolver list) differs by shape — see the reference you loaded above.

Checking what's already configured first? Don't dump environment values to do it — env or env | grep <name> prints the value along with the name, leaking a live credential into the transcript if one is set. Check names only (env | cut -d= -f1 | grep -i <name>) or test a known name directly ([ -n "$VAR_NAME" ]).

<!-- BEGIN:skill-auth-notes? operational behavior that differs by WHICH resolver is used — a safety gate only one path enforces, scopes/permissions that differ between resolvers, a billing/plan difference tied to the auth path, or a feature only available (or unavailable) on one resolver. Not for describing how to obtain or pass a credential — that's references/use-without-zapier.md's job. Leave this region empty (unfilled) if every resolver behaves identically. --> <!-- END:skill-auth-notes -->

No connection yet? Pick one — and follow the reference's own flow to obtain it; never just ask the user for a connection id or token as if they already have one memorized:

Load
Pass the credential directlyreferences/use-without-zapier.md
Route it through a Zapier connectionreferences/use-with-zapier.md

Output format

Every script returns a { data, meta } envelope:

  • data — the script's result (the shape its outputSchema declares; see the reference you loaded above for how to inspect a script's exact schema in your shape).
  • meta.outputDataValidation — what validating data did:
    • { skipped: false, droppedPaths: null } — validated, nothing removed.
    • { skipped: false, droppedPaths: [...], instruction } — validated, but those paths were stripped from data: fields the script returned from the API that the outputSchema doesn't declare. If you need them, re-run with output validation skipped.
    • { skipped: true } — validation was bypassed; data is the raw, unchecked script output.

Reading dropped fields / skipOutputDataValidation. To receive the raw, unvalidated result, opt out of output validation (the exact syntax differs by shape — see the reference you loaded above). Input validation is never skipped.

Trimming the result / filterOutputData. To shrink a large result down to the fields you need, pass a jq expression that post-processes data (again, exact syntax per shape). The jq runs against data only, NOT the { data, meta } envelope, so write it rooted at data (run the script's --help — or your shape's equivalent — to see its output schema). The transformed value replaces data, meta is preserved, and the result is NOT re-validated against the output schema.

<!-- BEGIN:skill-references-table -->

References

Load the matching reference file before working in that area:

ReferenceCoversLoad it when
references/google-sheets-api-gotchas.mdError recovery, rate-limit retry, batchUpdate atomicity, row deletion and append logic, 400/403/404/429 errorsBefore any call that might fail — error recovery, rate-limit retry, batchUpdate atomicity, row deletion or append logic, or when encountering 400/403/404/429 errors
references/google-sheets-a1-and-values.mdRAW vs USER_ENTERED, serial-number dates, ragged rows, A1 ranges with sheet-name quotingBefore reading or writing cell values — especially when choosing RAW vs USER_ENTERED, interpreting serial-number dates, handling ragged rows, or constructing A1 ranges with sheet-name quoting
<!-- END:skill-references-table -->

FAQ

What does the google-sheets skill do?

Agent-callable Google Sheets tools — read and write spreadsheet data as rows or raw cells, manage worksheets and columns, and apply formatting, sorting, and validation. Use when the user mentions Google Sheets or wants to read, add, update, look up, or organize spreadsheet data, even if they don't name Sheets explicitly.

How do I install google-sheets?

Run npx skills add https://github.com/zapier/connectors --skill google-sheets in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/google-sheets/ (personal) or .claude/skills/google-sheets/ (project).

Which AI agents can use google-sheets?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is google-sheets safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains google-sheets?

It is published by zapier in zapier/connectors. It has 126 recorded installs.

More from zapier/connectors

View all →

google-contacts

zapier/connectors

Open the skill to read its SKILL.md instructions.

196 installs

notion

zapier/connectors

Open the skill to read its SKILL.md instructions.

google-calendar

zapier/connectors

Agent-callable Google Calendar tools — create, update, move, search, and delete events, manage calendars, check free/busy availability, resolve event colors, and manage calendar sharing. Use when the user mentions Google Calendar or wants to schedule, find, reschedule, or share events and calendars — including requests that do not name Google Calendar explicitly, e.g. "put a meeting on my calendar Tuesday 3pm" or "am I free Friday afternoon".

microsoft-outlook

zapier/connectors

Agent-callable Microsoft Outlook tools — read and search mail, send/reply/forward, organize messages and folders, manage calendar events, and manage contacts. Use when the user mentions Outlook, Microsoft 365 mail/calendar/contacts, or wants to send, read, search, or organize email, schedule events, or look up contacts — even if they don't name Outlook explicitly.

dropbox

zapier/connectors

Open the skill to read its SKILL.md instructions.

118 installs

google-ads

zapier/connectors

Agent-callable Google Ads tools — search campaigns, ad groups, and ads via GAQL, build performance reports, manage campaign status and budgets, and set up conversion tracking. Use when the user mentions Google Ads or wants to read or manage advertising campaigns, budgets, or reporting — even if they don't name Google Ads explicitly.

Marketing & SEO116 installs

Popular data & databases skills

View category →

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pgcron, pgmq), vector/semantic search (pgvector), and restoring dumps (pgrestore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.

OfficialData & Databases462.2K installs

prisma-client-api

prisma/skills

Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".

OfficialData & Databases393.5K installs

Deprecated compatibility name for prisma-orm-setup. Use only when a user or existing integration explicitly invokes prisma-database-setup; otherwise select prisma-orm-setup.

OfficialData & Databases392.3K installs

prisma-cli

prisma/skills

Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows. Covers prisma init, generate, migrate, db, dev, studio, and mcp. For setup, connection repair, or Prisma 8, use prisma-orm-setup; not the Prisma Platform CLI.

OfficialData & Databases390.8K installs

prisma-postgres

prisma/skills

Deprecated compatibility name for prisma-postgres-setup. Use only when a user or existing integration explicitly invokes prisma-postgres; otherwise select prisma-postgres-setup.

OfficialData & Databases384.4K installs

Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.

OfficialData & Databases378.9K installs