Skip to main content
Glama

UK Data for Agents

read_spreadsheet

Read-onlyIdempotent

Fetch an .xlsx, .xls, .ods or .csv from a URL and return the rows of a sheet as JSON. (cost: 2 credits)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_spreadsheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNostring, required
sheetNostring
maxRowsNonumber 1-5000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds two pieces of context the annotations cannot: a per-call credit cost of 2 and the output being JSON rows rather than a file. It stops short of describing failure behavior on unreachable URLs or unsupported formats.

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?

A single front-loaded sentence that names the action, formats, and return type, with the credit cost tucked into a parenthetical. There is no filler and nothing an agent must scan past.

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 three-parameter read tool with full schema coverage and no output schema, the definition supplies what is missing: the output format and the cost. It does not cover edge cases like invalid URLs or what happens when sheet is omitted, which leaves a small gap.

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 all three parameters are already documented, and the description adds no additional syntax, defaults, or constraints beyond what the schema states. The phrase 'rows of a sheet' hints at the sheet parameter's role but no more; the baseline of 3 applies.

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 (fetch) and resource (spreadsheet from a URL) and enumerates the supported formats (.xlsx, .xls, .ods, .csv), which implicitly separates it from pdf_to_text. The return shape (rows as JSON) is also stated, so the agent knows exactly what it gets.

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?

Usage is only implied by the assumed file-format scope; there is no explicit when-to-use statement and no mention of when not to use it or of the sibling make_xlsx/pdf_to_text. An agent can infer it, but the definition does not do the routing work.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources