Skip to main content
Glama

Read rows

query_dataset
Read-onlyIdempotent

Reads rows from a dataset so you can inspect or analyse what is stored (e.g. to see the latest month before adding the next one). Supports simple filters, ordering and paging. The response includes the total row count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoDefault 50.
whereNoFilter. Equality: {"campaign": "brand"}. Operators: {"month": {"gte": "2026-01", "lt": "2026-07"}}; ops are gt, gte, lt, lte, ne, contains.
offsetNoRows to skip, for paging. Default 0.
datasetYesThe dataset's name, e.g. "ad_spend_daily".
order_byNoColumn to sort by. Defaults to key order.
descendingNoSort newest or largest first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds value beyond that by disclosing paging/filter/ordering capability and, importantly with no output schema present, that the response includes the total row count.

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 tight sentences, front-loaded with the core action, then capability, then response shape. No filler and every sentence carries information an agent can use.

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 read-only tool with full annotation coverage and 100% schema documentation, the description covers purpose, capability and the one return-value fact an agent needs (total row count). Nothing critical is missing, though a note on paging limits or result ordering guarantees would round it out.

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 every parameter (including the operator set for 'where' and defaults for limit/offset) is already documented in the schema. The description only summarizes 'simple filters, ordering and paging' at a high level, adding no syntax or format detail beyond the schema.

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 gives a specific verb (Reads) and resource (rows from a dataset) plus the intent behind reading (inspect/analyse stored data). It is unambiguous what the tool returns, though it never explicitly distinguishes itself from read-side siblings like get_view or check_view.

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?

One concrete scenario is given ('to see the latest month before adding the next one'), which implies the read-before-write pattern and hints at when this tool is useful. There is no explicit when-not guidance or named alternative, so the agent must infer that upsert_rows/delete_rows are the mutating counterparts.

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.