get_spreadsheet
Returns the spreadsheet's structure: properties (title, locale, timeZone), sheets[] with properties (sheetId, title, index, gridProperties incl. rowCount/columnCount and frozenRowCount/frozenColumnCount), plus each sheet's protectedRanges, conditionalFormats, tables and charts, and the spreadshee...
This record as markdown: /tools/a1-x-tech-mcp-google-sheets/get-spreadsheet.md
What get_spreadsheet does on Mcp Google Sheets
AI agents call get_spreadsheet to retrieve information from Mcp Google Sheets without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
fields | string | — | Partial-response field mask, e.g. "sheets.properties" or "namedRanges". |
ranges | array | — | Limit the returned sheets/grid data to these A1 ranges. |
spreadsheet_id | string | Yes | The spreadsheet id — the long id from the URL (docs.google.com/spreadsheets/d/<spreadsheetId>/edit) or from create_spreadsheet / search_spreadsheets output. |
include_grid_data | boolean | — | Embed cell data (values, formats) in the response. Heavy — prefer read_values. |
Parameters from the server's own tool schema.
Why get_spreadsheet is rated Low
Retrieves spreadsheet metadata and structure without modifying or executing operations.
From the tool's definition Returns spreadsheet structure, properties, sheets metadata; no cell data by default.
Attacks that exploit this kind of access
The rule that runs get_spreadsheet safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Mcp Google Sheets, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For get_spreadsheet, this is the rule to start with:
get_spreadsheet is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Mcp Google Sheets, apply this rule, and every get_spreadsheet call is checked against it from then on.
Questions about get_spreadsheet
Returns the spreadsheet's structure: properties (title, locale, timeZone), sheets[] with properties (sheetId, title, index, gridProperties incl. rowCount/columnCount and frozenRowCount/frozenColumnCount), plus each sheet's protectedRanges, conditionalFormats, tables and charts, and the spreadsheet's namedRanges. Call this FIRST whenever a structural tool needs a sheetId, protectedRangeId, tableId, chartId or a conditional-format rule index — titles are not addresses. By default no cell data is returned; include_grid_data=true (optionally limited to ranges) embeds cells but is heavy — prefer read_values for data. fields is a partial-response mask to trim the payload, e.g. "sheets.properties". It is categorised as a Read tool in the Mcp Google Sheets MCP Server, which means it retrieves data without modifying state.
get_spreadsheet accepts 4 parameters: fields, ranges, spreadsheet_id, include_grid_data. Required: spreadsheet_id. The full parameter table on this page comes from the server's own tool schema.
Register the Mcp Google Sheets MCP server in PolicyLayer and add a rule for get_spreadsheet: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Mcp Google Sheets. Nothing to install.
get_spreadsheet is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the get_spreadsheet rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for get_spreadsheet. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
get_spreadsheet is provided by the Mcp Google Sheets MCP server (@a1-x-tech/mcp-google-sheets). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Mcp Google Sheets, and thousands of servers like it.
This server
Across the catalogue