Skip to main content
Glama

AgentNative reference data: economy, sanctions, recalls, courts

Query a dataset

query_imported_dataset
Read-onlyIdempotent

Query every row by filter, sort and columns, with provenance and as_of. Free: unfiltered pages of 25 rows (skip to 475), newest first when the dataset has a date. Filtered, sorted or larger results are a query fee (USD 0.01 per non-empty result where a wallet purchase is possible); an unpaid request returns payment_required with matching_rows and the purchase call or alternatives.

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_imported_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoFree up to 25.
skipNoFree up to 475.
whereNoAll must match. Each {field, op, value}: op is eq ne gt gte lt lte contains or in (value is an array).
selectNo
includeNoPer-sheet summaries; off by default.
order_byNoField name, or {field, dir}. A paid query.
dataset_idYeswarehouse_dataset_id from search.

Output Schema

NameRequiredDescriptionDefault
rowsNo
dataset_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), yet the description adds genuinely new behavioral facts: the free-tier boundaries, that filtering/sorting/larger pages incur a USD 0.01 per non-empty result fee where a wallet purchase is possible, and the exact failure mode returned when unpaid. That is precisely the kind of cost and error-path disclosure an agent needs before calling.

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?

Purpose is front-loaded in the first clause, followed by cost and fallback behavior. The pricing sentence is dense and parenthetical, which slightly hurts scannability, but no sentence is filler.

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?

With an output schema present, return shape need not be described. The description covers what an agent needs to call correctly: scope, free limits, cost triggers, and the payment_required response path. Remaining details (field names, operators) live in the schema at high coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 86%, so most parameters are already documented. The description nonetheless adds cross-parameter meaning by tying where, order_by and larger top/skip values to the paid tier, which the per-property descriptions only hint at individually. It does not expand on select or include 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?

States a specific verb and resource plus its capabilities: querying every row by filter, sort and columns, with provenance and as_of. An agent can tell this is a paged row-level read over an imported dataset. It does not explicitly differentiate itself from query_any_dataset or sample_imported_dataset, so it stops short of 5.

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 selection logic: free unfiltered pages of 25 rows with skip up to 475 and newest-first ordering, versus a paid path for filtered, sorted or larger results. It also explains the unpaid fallback (payment_required with matching_rows plus purchase call or alternatives). It does not name sibling alternatives such as sample_imported_dataset or aggregate_imported_dataset for cheaper previews or aggregates.

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