Skip to main content
Glama

spreadsheet_get_range

Extract specific cell ranges from LibreOffice spreadsheets as structured JSON or markdown tables. Retrieve data efficiently by specifying ranges like A1:D10 instead of loading entire sheets.

Instructions

Read a range of cells from a spreadsheet sheet. Returns data as structured JSON and a markdown table. Use range like "A1:D10" for specific cells, or omit for paginated full sheet. Token-efficient: specify a range rather than reading the whole sheet.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docIdYesDocument handle returned by document_open
sheetNameNoSheet name. Defaults to the first sheet if not specified
rangeNoCell range in A1:C10 format. If omitted, returns paginated rows.
limitNoMaximum number of items to return. Default: 50
offsetNoPagination offset. Default: 0
formatNoOutput format: json, table (markdown), or bothboth
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: it's a read operation (implied by 'Read'), returns data in structured formats, supports pagination when range is omitted, and emphasizes token efficiency. However, it doesn't mention rate limits, authentication needs, or error handling, leaving some gaps.

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 front-loaded with the core purpose, followed by usage guidelines and efficiency tips. Every sentence earns its place: the first states what it does, the second explains output formats, the third clarifies range usage, and the fourth advises on token efficiency. No wasted words.

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?

Given the complexity (6 parameters, no output schema, no annotations), the description is largely complete: it covers purpose, usage, output formats, and parameter guidance. However, it lacks details on error cases, authentication, or exact return structure, which could be helpful for a read tool with multiple parameters.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds value by explaining the semantics of the 'range' parameter (e.g., 'A1:D10' for specific cells, omitting for paginated full sheet) and implicitly clarifying 'limit' and 'offset' through pagination context. It doesn't detail all parameters but enhances understanding beyond the schema.

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?

The description clearly states the tool's purpose with specific verbs ('Read a range of cells') and resources ('from a spreadsheet sheet'), distinguishing it from siblings like spreadsheet_get_formulas (formulas only) or spreadsheet_set_range (write operation). It explicitly mentions the output formats (JSON and markdown table), which further clarifies its function.

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?

The description provides explicit guidance on when to use this tool vs. alternatives: it advises specifying a range for token efficiency rather than reading the whole sheet, and mentions omitting the range for paginated full sheet access. It also distinguishes from siblings by focusing on reading cell data (not formulas, metadata, or writing).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/passerbyflutter/libreoffice-mcp-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server