Skip to main content
Glama
CKAN MCP Server

CKAN MCP Server

by ondata

Find CKAN Portals

ckan_find_portals
Read-onlyIdempotent

Search a live registry of CKAN open data portals by country, language, topic, dataset count, or DataStore support to identify portal URLs before querying their datasets.

Instructions

Search the live datashades.info registry of ~950 CKAN portals worldwide.

Use this tool to discover which CKAN portals exist for a country, language, or topic before querying them with other CKAN tools.

IMPORTANT — country parameter: always pass country name in English. If the user writes in another language (e.g. "Italia", "España", "Brasil"), translate to English ("Italy", "Spain", "Brazil") before calling this tool.

Args:

  • country (string): Country name in English (e.g. "Italy", "Brazil", "France")

  • query (string): Keyword to match against portal title (e.g. "transport", "health")

  • min_datasets (number): Minimum number of datasets (e.g. 100)

  • language (string): Portal default locale code (e.g. "it", "en", "pt_BR", "fr")

  • has_datastore (boolean): If true, return only portals with DataStore enabled (supports SQL queries)

  • limit (number): Max results to return (default 10, max 50)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: Ranked list of matching portals with URL, country, CKAN version, dataset count, and DataStore status.

Typical workflow: ckan_find_portals (discover portal URL) → ckan_status_show (verify) → ckan_package_search (search datasets)

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": "ckan_find_portals"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 10, max 50)
queryNoKeyword matched against portal title (case-insensitive)
countryNoCountry name in English (e.g. 'Italy', 'Brazil'). Translate from any language before passing.
languageNoPortal default locale code (e.g. 'it', 'en', 'pt_BR')
min_datasetsNoMinimum number of datasets
has_datastoreNoIf true, return only portals with DataStore plugin (required for SQL queries)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.144
    • addedInput schema / properties / response_format
      Added value: +{
      +  "default": "markdown",
      +  "description": "Output format: 'markdown' for human-readable or 'json' for machine-readable",
      +  "enum": [
      +    "markdown",
      +    "json"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.4.108

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds real value beyond them: the data source is a live external registry of ~950 portals, results are ranked, and each row carries URL, country, CKAN version, dataset count and DataStore status. It does not discuss result freshness, rate limits, or behavior when no filters are supplied, which keeps it short of a 5.

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?

Front-loaded with the core action and the important translation caveat, then Returns and workflow, which is the right order for an agent scanning for intent. It loses a point because the Args block duplicates a schema that is already at 100% coverage, making the definition longer than it needs to be.

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 seven optional parameters and no output schema, the definition supplies what is missing elsewhere: a Returns summary naming the fields, a default/max on limit, and a three-step workflow tying it to sibling tools. Nothing an agent needs in order to call this correctly is absent.

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 every parameter is already documented with examples and the response_format enum is fully described in-schema. The description's Args block largely restates the schema, adding only the DataStore parenthetical about SQL support, which the schema already covers. Baseline 3 applies since the schema does the heavy lifting.

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?

States a specific verb and resource ("Search the live datashades.info registry of ~950 CKAN portals worldwide") and immediately distinguishes itself from the query-oriented siblings by framing itself as the discovery step. The agent can tell this apart from ckan_package_search or ckan_status_show without opening any 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?

Explicitly says when to use it ("discover which CKAN portals exist for a country, language, or topic before querying them with other CKAN tools") and names the alternative path via the workflow line: ckan_find_portals → ckan_status_show → ckan_package_search. It also gives a concrete precondition (translate country names to English) rather than leaving it to inference.

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