sheets_get_spreadsheet

Pack: google_sheets · Endpoint: https://gateway.pipeworx.io/google_sheets/mcp

Explore a spreadsheet’s structure. Returns title, sheet/tab names, and properties. Use before reading or writing data.

Parameters

NameTypeRequiredDescription
spreadsheet_idstringyesSpreadsheet ID

Example call

Arguments

{
  "spreadsheet_id": "1BxiMVs0XRA5nFMmqvzausWYMYq6nS8twLu0gKBvMZsk"
}

curl

curl -X POST https://gateway.pipeworx.io/google_sheets/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sheets_get_spreadsheet","arguments":{"spreadsheet_id":"1BxiMVs0XRA5nFMmqvzausWYMYq6nS8twLu0gKBvMZsk"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('sheets_get_spreadsheet', {
  "spreadsheet_id": "1BxiMVs0XRA5nFMmqvzausWYMYq6nS8twLu0gKBvMZsk"
});

Response shape

FieldTypeDescription
spreadsheetIdstringSpreadsheet ID
propertiesobjectSpreadsheet properties
sheetsarrayList of sheets/tabs in the spreadsheet
errorstringError code if connection required
messagestringError message if connection required
Full JSON Schema
{
  "type": "object",
  "properties": {
    "spreadsheetId": {
      "type": "string",
      "description": "Spreadsheet ID"
    },
    "properties": {
      "type": "object",
      "description": "Spreadsheet properties",
      "properties": {
        "title": {
          "type": "string",
          "description": "Spreadsheet title"
        }
      }
    },
    "sheets": {
      "type": "array",
      "description": "List of sheets/tabs in the spreadsheet",
      "items": {
        "type": "object",
        "properties": {
          "properties": {
            "type": "object",
            "description": "Sheet properties",
            "properties": {
              "sheetId": {
                "type": "integer",
                "description": "Sheet ID"
              },
              "title": {
                "type": "string",
                "description": "Sheet name"
              },
              "index": {
                "type": "integer",
                "description": "Sheet index"
              },
              "sheetType": {
                "type": "string",
                "description": "Sheet type"
              },
              "gridProperties": {
                "type": "object",
                "description": "Grid dimensions and properties"
              }
            }
          }
        }
      }
    },
    "error": {
      "type": "string",
      "description": "Error code if connection required"
    },
    "message": {
      "type": "string",
      "description": "Error message if connection required"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "google_sheets": {
      "url": "https://gateway.pipeworx.io/google_sheets/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026