Skip to main content
Glama

Read sheet values

read_sheet
Read-only

Reads raw cell values from an Excel sheet or range and returns last computed formula results, enabling precise retrieval of spreadsheet data for small sheets or known ranges.

Instructions

Return the raw cell values of a sheet or range. Formula cells give their last computed result.

Best for small sheets or a known range. On large sheets, filter with query_sheet, summarize with aggregate_sheet, or inspect columns with profile_sheet instead. For a cell's formula text or style use get_cell.

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": {
      "sheet": "<sheet>"
    },
    "name": "read_sheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile path or preloaded name (list_configured_files). Omit if only one file is preloaded.
sheetYesSheet name (case-sensitive).
formatNo"array": 2D list. "records": list of objects keyed by the first row. "markdown": table text.array
max_rowsNoReturn at most this many rows. Omit for no limit.
cell_rangeNoRange to read, e.g. "A1:F500". Omit for the whole sheet.
offset_rowNoSkip this many rows first (after the header row for records/markdown); use with max_rows to page.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.4.0
    • addedInput schema / properties / cell_range / description
      Added value: +"Range to read, e.g. \"A1:F500\". Omit for the whole sheet."
    • addedInput schema / properties / format / description
      Added value: +"\"array\": 2D list. \"records\": list of objects keyed by the first row. \"markdown\": table text."
    • addedInput schema / properties / format / enum
      Added value: +[
      +  "array",
      +  "records",
      +  "markdown"
      +]
    • addedInput schema / properties / max_rows / description
      Added value: +"Return at most this many rows. Omit for no limit."
    • addedInput schema / properties / offset_row / description
      Added value: +"Skip this many rows first (after the header row for records/markdown); use with max_rows to page."
    • addedInput schema / properties / path / description
      Added value: +"File path or preloaded name (list_configured_files). Omit if only one file is preloaded."
    • addedInput schema / properties / sheet / description
      Added value: +"Sheet name (case-sensitive)."
  2. Changed2 schema fields changedv0.3.0
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "array",
      +  "title": "Format",
      +  "type": "string"
      +}
    • addedInput schema / properties / offset_row
      Added value: +{
      +  "default": 0,
      +  "title": "Offset Row",
      +  "type": "integer"
      +}
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior about formula cells returning computed results, but says nothing about how large results are truncated without max_rows, what an empty range returns, or how paging interacts with the header row. Given the annotations carry the mutation/scope story, this is adequate but not rich.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core behavior, then suitability, then sibling routing. No filler and each sentence carries distinct information.

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?

An output schema exists so return values need not be explained, all six parameters are documented, and the alternatives for large-sheet scenarios are named. An agent has everything needed to call this correctly or decide not to.

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%, with every parameter including format's enum and paging hints documented inline, so the baseline is 3. The description's only extra semantic signal is the small-sheet/known-range framing that implicitly motivates cell_range, which does not meaningfully exceed what the schema already says.

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 ("Return the raw cell values of a sheet or range") plus a non-obvious semantic detail: formula cells yield their last computed result, not the formula text. That alone separates it from get_cell, which is named for formula/style access.

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?

Gives an explicit use condition ("Best for small sheets or a known range") and routes the agent to three named alternatives with their distinguishing purposes: query_sheet for filtering, aggregate_sheet for summaries, profile_sheet for column inspection. The get_cell pointer covers the formula/style case, so no ambiguity remains.

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