Skip to main content
Glama

DataScoop public data

Query a dataset

query_dataset
Read-onlyIdempotent

Return the rows of a dataset that match a set of filters, with the total count and the attribution to cite. Organisational data only (businesses, premises, charities, permits), never personal contact data. Without a Pro key each call returns at most 25 rows and sets truncated=true with the total; the result then includes next_step with the exact links and wording to give the user so they can get every row (one-off spreadsheet export, or a free account upgraded to Pro for unlimited API and MCP rows). Page with offset; ask for format "summary" to get counts only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoRows to return (default 25, max 1000 per call; free plans are capped at 25)
formatNo"rows" (default) returns the rows; "summary" returns only the total and links
offsetNoRows to skip, for paging through large results (Pro)
datasetYesDataset id, e.g. fsa
filtersNoFilter object keyed by the filter keys from get_dataset_schema (not column names), e.g. {"localAuthority":"Leeds","rating":"1"}. Text filters are case-insensitive; "contains" filters match substrings; enum filters must use one of the listed options.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The description richly discloses behavior beyond the annotations: free-tier truncation at 25 rows, 'truncated=true', inclusion of 'next_step' with links and wording, Pro upgrade implications, paging with offset, and summary mode. This is exactly the kind of non-obvious behavioral context an agent needs.

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?

The core purpose is front-loaded, and each sentence earns its place: scope, data type restriction, free-tier behavior, next_step guidance, and paging/summary tips. It is dense and slightly longer than strictly necessary, but it is well organized and relevant.

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

Completeness5/5

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

For a read-only query tool with full parameter documentation and no output schema, the description covers the essential results (total count, attribution, truncated flag, next_step), free vs Pro behavior, and paging options. Nothing critical is missing for an agent to invoke it correctly.

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 100%, with each parameter already well-described (defaults, max, filter key semantics, enum options). The description's 'page with offset' and 'format summary' guidance mostly restates the schema rather than adding new meaning, so baseline 3 is appropriate.

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?

Opens with a specific verb and resource: 'Return the rows of a dataset that match a set of filters, with the total count and the attribution to cite.' The added scoping to organisational data and exclusion of personal contact data clearly separates it from list/search sibling tools.

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?

Provides clear operational guidance: 'Page with offset; ask for format "summary" to get counts only', and gives an explicit exclusion ('never personal contact data'). However, it does not name sibling alternatives or say when to prefer query_dataset over search_datasets, so it stops short of full alternative routing.

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