Skip to main content
Glama

Consultar los datos de un recurso (DataStore)

query_resource_data
Read-only

Query CKAN DataStore resources without downloading: run full-text searches, exact filters, sorting, and pagination on Ecuador's open data.

Instructions

Query a tabular CKAN resource through the DataStore without downloading it: full-text query, exact filters (filters_json), sort and pagination.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNoNumber of records to return (default 20, max 100)
sortNoOptional sort expression, e.g. "anio desc"
queryNoOptional full-text search across datastore fields
formatNotext summary (default) or json structured result.text
offsetNoPagination offset (default 0)
sourceNoCKAN portal; nacional (default), cuenca, latacunga or iadb.nacional
resource_idYesResource UUID (from list_dataset_resources)
filters_jsonNoOptional JSON object of exact field filters, e.g. '{"provincia":"Pichincha"}'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.10.0
    • addedInput schema / properties / filters_json / description
      Added value: +"Optional JSON object of exact field filters, e.g. '{\"provincia\":\"Pichincha\"}'"
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / offset / description
      Added value: +"Pagination offset (default 0)"
    • addedInput schema / properties / query / description
      Added value: +"Optional full-text search across datastore fields"
    • addedInput schema / properties / resource_id / description
      Added value: +"Resource UUID (from list_dataset_resources)"
    • addedInput schema / properties / rows / description
      Added value: +"Number of records to return (default 20, max 100)"
    • addedInput schema / properties / sort / description
      Added value: +"Optional sort expression, e.g. \"anio desc\""
    • addedInput schema / properties / source / description
      Added value: +"CKAN portal; nacional (default), cuenca, latacunga or iadb."
  2. Changed10 schema fields changedv0.8.14
    • removedInput schema / properties / filters_json / title
      Removed value: -"Filters Json"
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / offset / title
      Removed value: -"Offset"
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / properties / resource_id / title
      Removed value: -"Resource Id"
    • removedInput schema / properties / rows / title
      Removed value: -"Rows"
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / title
      Removed value: -"query_resource_dataArguments"
    • removedOutput schema / title
      Removed value: -"query_resource_dataDictOutput"
  3. First observedv0.8.12

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds useful context (queries in place rather than downloading) but says nothing about rate limits, whether all resources are DataStore-enabled, or error behavior for non-tabular resources.

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?

A single front-loaded sentence with no wasted words; the core capability and the 'no download' distinction come first. Slightly dense with a parenthetical, but efficient overall.

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?

With an output schema present, return values need not be described, and all 8 parameters are documented in the schema. The description covers the main capability adequately for a filtered-query tool, though it omits guidance on DataStore availability and sibling routing.

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 (rows, sort, query, filters_json, offset, source, etc.) is already documented in the schema. The description names the same capabilities (full-text query, exact filters, sort, pagination) without adding syntax or format detail beyond what the schema provides, so the baseline 3 applies.

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 (Query) and resource (tabular CKAN resource) plus the mechanism (through the DataStore without downloading it), which clearly separates it from download_resource. However it never names or distinguishes itself from the close sibling preview_resource_data, so sibling differentiation is incomplete.

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?

'Without downloading it' implies the alternative is download_resource, giving implied guidance. But there is no explicit when-to-use / when-not statement and no mention of when preview_resource_data would be preferable, leaving routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools