Skip to main content
Glama
ckan-thaigdc-mcp

ckan-thaigdc-mcp

by nungsatick

List CKAN Organizations

ckan_list_organizations
Read-onlyIdempotent

Lists a CKAN catalog's organizations with dataset counts or finds them by name, so you can pick the right organization name to filter dataset searches.

Instructions

List a catalog's organizations with dataset counts, or find them by name. Pass the returned name as the organization 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_organizations"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite alias from ckan_list_sites, e.g. 'nso'
limitNoMaximum organizations to return
queryNoText to match against organization 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

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, idempotent, and non-destructive. The description adds that it returns dataset counts by default, but with a query it returns matches without counts, which is a behavioral detail not in annotations. It also notes the output can be used as a filter elsewhere. This adds useful context beyond annotations.

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?

The description is two sentences plus an example, front-loading the main purpose. Every sentence contributes to understanding, though the example in Thai may not be universally clear. It is appropriately sized and well-structured.

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 covers the key behavior: listing organizations with counts, and the query variant without counts. It doesn't explain pagination or return formats, but those are covered in the schema. Given the tool's relative simplicity and rich annotations, it is reasonably complete.

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 the schema already documents all parameters including site, limit, query, offset, and response_format. The description only adds an example of the query parameter usage and notes that passing the returned name to ckan_search_datasets is possible, but doesn't deepen parameter semantics. Baseline 3 is appropriate.

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?

The description states a specific verb ('List') and resource ('organizations') and notes it can also find them by name. It mentions passing the name to ckan_search_datasets, giving some differentiation from that sibling, but doesn't distinguish from other listing siblings like ckan_list_groups. Clear enough for an agent to know what it does.

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

Usage Guidelines3/5

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

It implies usage by saying 'List ... or find them by name' and gives an example of querying. However, it doesn't explicitly state when to choose this tool over alternatives such as ckan_list_groups or ckan_search_datasets. It does provide a follow-up action (pass name to ckan_search_datasets), which helps but is not a full usage guideline.

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