Skip to main content
Glama
ckan-thaigdc-mcp

ckan-thaigdc-mcp

by nungsatick

List CKAN Groups

ckan_list_groups
Read-onlyIdempotent

List a CKAN catalog's groups with dataset counts or search them by name, then use the returned group name as a filter in dataset searches.

Instructions

List a catalog's groups with dataset counts, or find them by name. Pass the returned name as the group filter of ckan_search_datasets.

Example: "หน่วยงานที่ชื่อมีคำว่าสถิติ" -> query="สถิติ" (returns matches without dataset counts).

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>"
    },
    "name": "ckan_list_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite alias from ckan_list_sites, e.g. 'nso'
limitNoMaximum groups to return
queryNoText to match against group names and titles
offsetNoItems to skip, for pagination. Ignored with query
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/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 genuinely useful behavior beyond that: query mode returns matches without dataset counts, a non-obvious difference in result content that the agent cannot infer from the schema.

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 sentences plus one example, with the core purpose front-loaded and nothing redundant. The example is slightly noisy in a mixed-language form but directly earns its place by illustrating query mode.

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 no output schema, the description does well to disclose that listing returns dataset counts and names, covering the main return-value question. It remains thin on ordering, pagination behavior, and how to choose between this and the organizations sibling.

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 earns above that by explaining what the returned name is for and by noting the example's query semantics. It does not explain pagination or response_format beyond what the schema states.

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 and resource ('List a catalog's groups') plus two distinct modes: catalog listing with dataset counts, and name lookup. It does not explicitly distinguish itself from ckan_list_organizations, which is the most likely confusion point for an agent, so it stops short of a 5.

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?

Gives concrete downstream guidance ('Pass the returned name as the group filter of ckan_search_datasets') and an example showing when to use query mode. It says nothing about when to prefer this over ckan_list_organizations, leaving one gap in routing guidance.

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