Skip to main content
Glama
xlsx-mcp-server
by knorq-ai

read_sheet

Reads cell values, formulas, and types from an Excel .xlsx sheet and optional range; compact mode omits empty cells and merged-cell children for token-efficient output.

Instructions

Read cell data from a sheet (values, formulas, types). Optionally specify a range like 'A1:C10'. Use compact=true to omit empty cells and merged-cell children for token-efficient output.

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

Input Schema

NameRequiredDescriptionDefault
rangeNoCell range to read (e.g. 'A1:C10'). Omit to read all data.
sheetYesSheet name or 1-based index
compactNoOmit empty cells and merged-cell children. Reduces output for sheets with many merged cells.
file_pathYesAbsolute path to the .xlsx file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the operation reads values, formulas, and types and that compact=true omits empty cells and merged-cell children, but it does not describe permissions, error behavior, or return structure beyond the listed data content.

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?

The description is two sentences with no wasted wording. The primary purpose is front-loaded, followed by the optional range and compact-output guidance.

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

Completeness4/5

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

For a four-parameter read tool with no output schema, the description is largely complete: it covers the purpose, range option, and compact behavior, and the schema fills in parameter details. Minor gaps remain around return shape and edge-case behavior, but the essential invocation guidance is present.

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%, so the schema already documents all four parameters, including range examples, sheet name/index, compact behavior, and file path. The description reinforces range and compact but adds little meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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

Purpose4/5

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

The description states a specific verb and resource: read cell data from a sheet, including values, formulas, and types. It adds range and compact behavior, making the core purpose clear, but it does not explicitly differentiate from siblings such as read_cell or search_cells.

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

Usage Guidelines3/5

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

The description implies when to use the tool for reading sheet data and gives a token-efficiency reason for compact=true. However, it does not explicitly say when to use this tool instead of read_cell or search_cells, nor does it state exclusions or prerequisites.

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