Skip to main content
Glama
ckan-thaigdc-mcp

ckan-thaigdc-mcp

by nungsatick

Get CKAN Dataset

ckan_get_dataset
Read-onlyIdempotent

Retrieve a dataset's metadata and resource files, showing which resources are queryable so you can pass their IDs to ckan_query_data or share non-queryable resource URLs.

Instructions

Get one dataset's metadata and its files (resources). Each resource says whether it is queryable: if so, pass its id to ckan_query_data; if not, give the user its url.

Use ckan_search_datasets to find ids. detail="full" returns the catalog's raw record, which is much longer.

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": {
      "site": "<site>",
      "id": "<id>"
    },
    "name": "ckan_get_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDataset name or UUID
siteYesSite alias from ckan_list_sites, e.g. 'nso'
detailNostandard omits bookkeeping fields; full is the raw recordstandard
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.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered; the description adds context the annotations cannot, namely that detail='full' returns a much longer raw catalog record. It also states the return shape (metadata plus resource list with a queryable flag), which matters because there is no output schema. Minor gap: no note on failure modes when an id is not found.

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?

Two short paragraphs, front-loaded with the core action, then routing guidance, then the verbosity caveat last. There is no restatement of the tool name and no filler sentence.

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 single-record getter with a fully documented 4-parameter schema and no output schema, the description covers what is returned and how to act on it. A small gap remains around what happens when the dataset is absent or access is denied, but nothing essential for correct invocation is missing.

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 coverage is 100%, so baseline is 3; the description goes beyond the schema by attaching a cost/verbosity consequence to detail='full' ('much longer'), which is not in the schema text. The remaining parameters (id, site, response_format) are documented entirely by the schema and add nothing further in the prose.

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 ('Get one dataset's metadata and its files (resources)') and immediately scopes it to a single record. It distinguishes itself from ckan_search_datasets (for finding ids) and ckan_query_data (for queryable resources), so an agent can route without reading sibling schemas.

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?

Gives explicit downstream routing: if a resource is queryable pass its id to ckan_query_data, otherwise hand the user the url, and use ckan_search_datasets to obtain ids. It also advises when to prefer detail='full' versus the default, which is a concrete when-to-use condition rather than an implied one.

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