Skip to main content
Glama

Query a dataset

query_dataset
Read-onlyIdempotent

Filtered, paginated records (up to 100 per page) using the filters listed by get_dataset_info. May be paid (x402): the answer then has status payment_required with the price and payment details. This tool never pays; a payment can only be made by the caller's own x402 client, if its operator allows it. The retry object in the answer describes the request that client would repeat.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "query_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRecords per page (1 to 100)
cursorNometa.next_cursor of the previous page, to get the next one
filtersNoFilter name to value. Names and kinds are listed by get_dataset_info. Text: a string. Date range: {"from":"YYYY-MM-DD","to":"YYYY-MM-DD"}. Geo: {"bbox":{min_lat,min_lon,max_lat,max_lon}} or {"near":{lat,lon,radius_km}}.
versionNoA specific version; default is the current one
dataset_idYesDataset id from search_datasets, for example bg.finance.credit_institutions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already cover the safety profile (read-only, idempotent, non-destructive), yet the description adds genuinely non-inferable behavior: a possible payment_required status, the explicit guarantee that this tool never pays, and the retry object the caller's own client would repeat. It does not describe the success payload shape or any other error statuses, so it is strong but not complete.

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 pagination scope is front-loaded and every sentence is compact. The two payment sentences take roughly half the text and are dense, but they carry the one behavior an agent cannot otherwise discover, so they earn their place.

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, single-required-parameter query with full schema coverage and complete annotations, this covers the two unknowns: where filter names come from and what happens on a paid dataset. The remaining gap is the success response shape (record fields, next_cursor meaning), which has no output schema to carry it.

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% and the schema already documents limit, cursor, version, dataset_id and the three filter shapes in detail. The description's only added signal is 'up to 100 per page', which duplicates the limit maximum, so baseline 3 is appropriate.

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 opening clause gives a specific verb-and-result ('Filtered, paginated records (up to 100 per page)') and points at get_dataset_info for filter names, so an agent knows exactly what it gets back. It stops short of distinguishing itself from preview_dataset or download_dataset, which remain plausible alternatives for the same resource.

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?

It does route the agent to get_dataset_info for filter names and explains the payment branch condition ('May be paid (x402)'), which is real usage context. However, it never states when to prefer this over preview_dataset or download_dataset, leaving the main selection decision to inference.

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