Skip to main content
Glama
ckan-thaigdc-mcp

ckan-thaigdc-mcp

by nungsatick

Get CKAN Metadata Schema

ckan_get_schema
Read-onlyIdempotent

Retrieve a CKAN catalog's metadata fields, labels, required status, and allowed values to understand field meanings and find exact filter values, including Thai terms.

Instructions

Get a catalog's metadata fields: their labels, whether they are required, and allowed values.

Use this to learn what a field means, or the exact value to filter on: values are usually Thai and differ from English-looking names (update_frequency_unit is 'ปี', not 'year').

By default choices are only counted. Pass field="objective" or include_choices=true to see them.

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_get_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite alias from ckan_list_sites, e.g. 'nso'
fieldNoReturn only this field, with its choices
limitNoMaximum fields to return
offsetNoFields to skip, for pagination
sectionNoDataset-level or file-level fieldsdataset
include_choicesNoInclude every field's allowed values
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.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, so the bar is lower; the description still adds substantial value by warning that values are usually Thai and differ from English-looking field names, and by explaining the default choices behavior. It doesn't describe the response shape, though no output schema exists.

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?

Three short sentences, front-loaded with purpose, then a concrete usage example, then the opt-in behavior for choices. The Thai 'ปี' example earns its place because it prevents a plausible filtering mistake.

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 seven-parameter read-only lookup with no output schema, the description covers purpose, a key data gotcha, and the opt-in flag behavior. It leaves the pagination and response_format semantics to the schema, which is reasonable given the schema describes them.

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 documents each parameter; the description adds real meaning for two of them by giving concrete examples of field and include_choices and noting the default counting behavior. The remaining parameters (site, section, limit, offset, response_format) get no additional explanation, so it stays at the baseline for a fully documented schema.

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?

It names a specific verb and resource (get a catalog's metadata fields) and enumerates what is returned: labels, required flags, and allowed values. An agent can distinguish this from ckan_get_dataset or ckan_search_datasets because it describes metadata about fields rather than records.

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?

It gives an explicit use case: learn what a field means, or find the exact value to filter on. It doesn't name a sibling alternative or state when not to use it, but the context is clear enough to select it confidently.

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