Skip to main content
Glama

Sheets Read Sheet Values

sheets_read_sheet_values
Read-onlyIdempotent

Read cell values from one or more A1 ranges in a Google Sheets spreadsheet in a single call, returning values and row counts for each requested range.

Instructions

Read the cell values of one or more A1 ranges of a Google Sheets spreadsheet in a single call. The spreadsheet_id comes from drive_list_files, search_workspace or sheets_create_spreadsheet; for the sheet (tab) names and sizes use sheets_get_spreadsheet, and to write cells sheets_update_sheet_values. Returns spreadsheet_id, count and value_ranges, one per requested range in request order (a list even for one range), each with range (the A1 range actually read), major_dimension, values (rows, or columns with major_dimension COLUMNS, without trailing empty rows and cells; [] when the range is empty) and row_count.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ranges": "<ranges>",
      "spreadsheet_id": "<spreadsheet_id>"
    },
    "name": "sheets_read_sheet_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangesYesOne or more ranges to read, e.g. ['Sheet1!A1:C10'] or ['Sheet1!A1:C10', 'Sheet2!A:B']. Basic A1 notation with an optional sheet prefix: 'Sheet1!A1:C10', 'A1', 'A:C' (whole columns) or '1:5' (whole rows); quote sheet names that contain spaces ('My Sheet'!A1:B2). A bare sheet name or an open-ended range such as A2:C is rejected, and without a prefix the first sheet is used.
spreadsheet_idYesGoogle Sheets spreadsheet ID: the Drive file ID, also the long ID in the spreadsheet's URL.
major_dimensionNoWhether values are returned as a list of ROWS or a list of COLUMNS.ROWS
value_render_optionNoHow cell values are returned: FORMATTED_VALUE as displayed, UNFORMATTED_VALUE as raw numbers, or FORMULA to return formulas instead of results.
date_time_render_optionNoHow dates and times are returned when value_render_option is not FORMATTED_VALUE: SERIAL_NUMBER (days since 1899-12-30) or FORMATTED_STRING.

Output Schema

NameRequiredDescriptionDefault
countNoNumber of items in this response.
value_rangesNo
spreadsheet_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.2.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: batch multi-range reads in one call, results returned in request order, trailing empty rows/cells trimmed, and [] for empty ranges. Minor deduction because some of this duplicates the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action and followed by routing guidance and return shape. Dense but every clause carries information; the return-value sentence is somewhat long given an output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter read tool with an output schema and full annotations, nothing an agent needs is missing: ID provenance, tab-name lookup, write alternative, and multi-range/empty-range semantics are all stated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema already documents ranges, major_dimension, value_render_option and date_time_render_option in detail. The description adds only the provenance of spreadsheet_id, which is useful but modest; baseline 3 applies when the schema carries the parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read the cell values of one or more A1 ranges of a Google Sheets spreadsheet') and adds the key scope detail 'in a single call', making it immediately distinguishable from the write sibling sheets_update_sheet_values.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: names three sources for spreadsheet_id (drive_list_files, search_workspace, sheets_create_spreadsheet), points to sheets_get_spreadsheet for tab names/sizes, and to sheets_update_sheet_values for writing. This is explicit when-to-use and when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools