Skip to main content
Glama

Read rows from a dataset file

read_rows
Read-only

Rows from one CSV file of a dataset, at most 50 a call. Filter with "where" (column: text the value must contain). Files over 200 KB are not read whole: filter by firm_slug to read one firm, or use the download address in the result.

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": {
      "id": "<id>"
    },
    "name": "read_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA dataset id.
fileNoFile name from get_dataset. Default: the dataset's first CSV file.
limitNo
whereNoColumn name to text; a row is kept when the value contains the text (case-insensitive).
offsetNo
columnsNoColumns to return. Default: all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description adds the real behavioral facts an agent needs — a hard 50-row cap per call and the fact that files over 200 KB are not read whole, plus the two workarounds. It does not explain pagination via offset or what the row payload looks like beyond the download address.

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?

Three dense sentences with the resource and the cap front-loaded, then filtering, then the large-file escape hatch. The telegraphic phrasing ("at most 50 a call") is compact rather than wasteful, though slightly clipped for readability.

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?

With no output schema, the description still signals a return value (the download address) and covers the size and row limits that govern correct invocation. The main gap is pagination behavior for datasets larger than 50 rows, which an agent must infer from the offset parameter.

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 coverage is 67%, so the schema already documents id, file, where, and columns. The description restates the "where" semantics and the 50 cap, but does add one genuinely new hint — that firm_slug is a usable filter key for large files. offset, limit interplay, and columns selection get no elaboration.

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?

States a specific verb and resource: reads rows from one CSV file of a dataset, capped at 50 per call. It is clearly narrower than get_dataset (which supplies file names) and get_facts, though it never names a sibling explicitly to route the agent.

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

Usage Guidelines4/5

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

Gives concrete conditional guidance: use "where" to filter, and for files over 200 KB either filter by firm_slug or fall back to the download address in the result. It stops short of stating when to prefer this over get_facts or get_dataset, so the sibling routing is left implicit.

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