Skip to main content
Glama

AgentNative reference data: economy, sanctions, recalls, courts

Query any catalog dataset at its source

query_any_dataset
Read-onlyIdempotent

Query a catalog dataset live at its own portal (Socrata, ArcGIS, CKAN, OpenDataSoft, OData) in one query format, including the full table behind a partial hosted copy. Free: schema and 3 rows (also checks the route). Anything more is a query fee (payment_required with 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": {
      "discovered_dataset_id": "<discovered_dataset_id>"
    },
    "name": "query_any_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoFree up to 3.
skipNo
whereNoAll must match. Each {field, op, value}: op is eq ne gt gte lt lte contains or in (value is an array).
selectNo
order_byNoField name, or {field, dir}.
aggregateNo
discovered_dataset_idYes

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?

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: the free-row ceiling, that the free call doubles as a route check, and that over-limit results fail with a payment_required error routed to a purchase tool. Return shape and pagination behavior remain undisclosed.

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 what the tool is, then cost model, then failure routing. No filler and no repetition of structured fields.

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

Completeness3/5

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

Cost gate and scope are well covered, which is the highest-stakes part of this tool. But for a 7-parameter query tool with nested objects and no output schema, the definition says nothing about how the query language composes or what results look like, leaving meaningful gaps.

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

Parameters2/5

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

Schema description coverage is only 43% across 7 parameters, and the description adds essentially nothing about where/select/order_by/aggregate semantics or the nested {field, op, value} structure. The only parameter-related statement ('Free: 3 rows') merely restates the schema note on top, so the description fails to compensate for the coverage gap.

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?

Names a specific verb and resource ('Query a catalog dataset live at its own portal') and enumerates the supported backends (Socrata, ArcGIS, CKAN, OpenDataSoft, OData), plus the distinctive scope of reaching the full table behind a partial hosted copy. This implicitly separates it from the imported/hosted siblings, though it never names query_imported_dataset outright.

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 clear operating context: free tier is schema plus 3 rows (which also validates the route), anything more costs and returns payment_required with a purchase call or alternatives. It does not explicitly state when to prefer this over querying an already-imported dataset, so routing between the two families is left partly 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