Get CKAN Metadata Schema
ckan_get_schemaRetrieve 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
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site alias from ckan_list_sites, e.g. 'nso' | |
| field | No | Return only this field, with its choices | |
| limit | No | Maximum fields to return | |
| offset | No | Fields to skip, for pagination | |
| section | No | Dataset-level or file-level fields | dataset |
| include_choices | No | Include every field's allowed values | |
| response_format | No | 'markdown' for readable text, 'json' for structured data | markdown |