Skip to main content
Glama
ckan-thaigdc-mcp

ckan-thaigdc-mcp

by nungsatick

Find Federated Dataset Copies

ckan_find_federated_copies
Read-onlyIdempotent

Find datasets copied from a source catalog across other CKAN sites by matching their reference URL, returning per-site results including failed sites.

Instructions

Find datasets on other catalogs that were copied from a source catalog, using their reference_url_catalog field. Searches several sites and reports a per-site result, including sites that fail.

Examples:

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": {
      "source_url": "<source_url>"
    },
    "name": "ckan_find_federated_copies"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDatasets to return per site
matchNoexact URL, or every URL starting with source_urlexact
sitesNoSite aliases to search. Default: every configured site except the source
source_urlYesSource dataset URL, or a URL prefix when match='prefix'
response_formatNo'markdown' for readable text, 'json' for structured datamarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful context that the call fans out across several sites and returns per-site results even when a site fails. It says nothing about latency, partial-auth requirements, or how the results are shaped, which matters for an open-world multi-site fan-out.

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?

Two front-loaded sentences establish purpose and the per-site failure behavior, then two compact examples. Nothing is redundant, though the examples are untranslated Thai queries that consume space an agent must parse rather than read as direct instructions.

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 five parameters at full schema coverage and no output schema, the description should mostly explain the fan-out semantics, which it does. The remaining gap is return shape: 'a per-site result' is not described in terms of fields or how failures are represented, leaving the agent to inspect the raw response.

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 description coverage is 100%, so the baseline is 3, but the examples add real meaning: they demonstrate the exact/prefix distinction on source_url and show that 'sites' takes short aliases like 'kalasin'. That goes beyond restating the schema fields.

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 ('Find datasets on other catalogs that were copied from a source catalog') plus the exact mechanism ('using their reference_url_catalog field'). The 'other catalogs' scope inherently separates it from the local-catalog siblings like ckan_search_datasets and ckan_get_dataset.

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?

The two worked examples make the use case concrete and show which parameter combinations to reach for (exact source_url for one dataset vs. a catalog prefix plus site aliases for a province query). It stops short of explicit when-not-to-use guidance or naming an alternative such as ckan_search_datasets for single-site lookups.

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