Skip to main content
Glama

Buscar datasets en el portal de datos abiertos

search_datasets
Read-only

Search Ecuador's open-data CKAN datasets by keyword, category, or recent updates across national and local portals to find relevant data.

Instructions

Search CKAN open-data datasets (national portal by default; see source). Use sort="recent" without a query to browse new or updated datasets. Next: list_dataset_resources. For trámites, regulations or contracts use search_ecuador.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_datasets"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based, default: 1)
sortNo"relevance" (default, CKAN's own ranking) or "recent" (sort by metadata_modified descending, to discover newly added or freshly refreshed datasets)relevance
queryNoSearch keywords (e.g. "empleo", "salud", "presupuesto", "SRI recaudación").
fieldsNoComma-separated dataset keys to keep in the JSON output (e.g. "name,title,metadata_modified"); applied after compact.
formatNotext summary (default) or json structured result.text
sourceNoCKAN portal; nacional (default), cuenca, latacunga or iadb.nacional
compactNoShrink each dataset in the JSON output to id, name, title, metadata_modified, organization and its resources (id, name, format, size, url).
categoryNoOptional category filter (e.g. "sal" for Salud, "edu" for Educación).
page_sizeNoResults per page (default: 20, max: 100)

Output Schema

NameRequiredDescriptionDefault
totalNo
offsetNo
sourceNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "offset": {},
      +    "source": {},
      +    "total": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changedv0.12.0
    • addedInput schema / properties / compact
      Added value: +{
      +  "default": false,
      +  "description": "Shrink each dataset in the JSON output to id, name, title, metadata_modified, organization and its resources (id, name, format, size, url).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / fields
      Added value: +{
      +  "default": "",
      +  "description": "Comma-separated dataset keys to keep in the JSON output (e.g. \"name,title,metadata_modified\"); applied after compact.",
      +  "type": "string"
      +}
  4. Changed7 schema fields changedv0.10.0
    • addedInput schema / properties / category / description
      Added value: +"Optional category filter (e.g. \"sal\" for Salud, \"edu\" for Educación)."
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / page / description
      Added value: +"Page number (1-based, default: 1)"
    • addedInput schema / properties / page_size / description
      Added value: +"Results per page (default: 20, max: 100)"
    • addedInput schema / properties / query / description
      Added value: +"Search keywords (e.g. \"empleo\", \"salud\", \"presupuesto\", \"SRI recaudación\")."
    • addedInput schema / properties / sort / description
      Added value: +"\"relevance\" (default, CKAN's own ranking) or \"recent\" (sort by metadata_modified descending, to discover newly added or freshly refreshed datasets)"
    • addedInput schema / properties / source / description
      Added value: +"CKAN portal; nacional (default), cuenca, latacunga or iadb."
  5. Changed9 schema fields changedv0.8.14
    • removedInput schema / properties / category / title
      Removed value: -"Category"
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / page_size / title
      Removed value: -"Page Size"
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / title
      Removed value: -"search_datasetsArguments"
    • removedOutput schema / title
      Removed value: -"search_datasetsDictOutput"
  6. First observedv0.8.12

TDQS

A4.2/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 known. The description adds workflow context (default source, browsing mode, follow-up tool) but says nothing about pagination limits, result volume or failure behavior beyond what the schema covers.

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 short sentences, front-loaded with the core purpose, with the browsing shortcut and the routing rule after it. Every sentence carries distinct information and none restates the title or annotations.

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 nine-parameter read tool with a full schema and an output schema, the description covers purpose, the default portal, a browsing pattern and the handoff to list_dataset_resources. The only gap is any explicit note on how paging interacts with sort, which the schema mostly handles.

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%, so each of the nine parameters is already documented, and the baseline is 3. The description reinforces the default-source behavior and the special "recent" browsing pattern, but adds no new format or constraint detail beyond the schema.

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?

The description uses a specific verb and resource ("Search CKAN open-data datasets") and immediately scopes it with "national portal by default; see source". It also names the sibling to use for other content ("For trámites, regulations or contracts use search_ecuador"), so an agent can separate this from search_ecuador without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit alternative pattern ("Use sort=\"recent\" without a query to browse new or updated datasets") and an explicit redirect for non-dataset content ("For trámites, regulations or contracts use search_ecuador"). It also states the natural next step: "Next: list_dataset_resources".

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