Skip to main content
Glama
ckan-thaigdc-mcp

ckan-thaigdc-mcp

by nungsatick

Get CKAN Resource

ckan_get_resource
Read-onlyIdempotent

Retrieve a CKAN resource's metadata and, for queryable files, its columns, data types, and row count so you can plan filters and sorting before querying.

Instructions

Get one file's details. For a queryable resource this also returns its columns, their types and the row count, which ckan_query_data needs for filters and sorting.

Values are often stored as text, including years such as "2565Q2", so check column types before comparing 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>",
      "resource_id": "<resource_id>"
    },
    "name": "ckan_get_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite alias from ckan_list_sites, e.g. 'nso'
resource_idYesResource UUID, from ckan_get_dataset
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 cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description is judged on added context. It delivers real value: it discloses that only queryable resources carry schema info, and warns that values are frequently stored as text, including fiscal-quarter style years like "2565Q2", so types must be checked before comparison. Return shape is only partly described, which keeps it from a 5.

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, purpose stated first, warning second. Every sentence carries information an agent would act on, and there is no restatement of the name or title.

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 bears responsibility for explaining returns, and it does so adequately for the queryable case while leaving the shape of a plain non-queryable resource's details vague. Given only three simple, fully documented parameters, it is close to sufficient.

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% and every parameter carries its own description, including the enum for response_format, so the schema does the heavy lifting. The description adds implied semantics about resource_id provenance (via ckan_get_dataset) but no format or constraint detail beyond the schema, matching the baseline 3.

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 opening sentence gives a specific verb and resource ("Get one file's details"), and the follow-up narrows what is returned for queryable resources (columns, types, row count). It never explicitly contrasts itself with ckan_get_dataset, which is the closest sibling and the source of the resource_id, so sibling differentiation is only partial.

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?

The description establishes a clear workflow dependency: the column metadata returned here is what ckan_query_data needs for filters and sorting, which tells an agent to call this before querying. It stops short of explicit when-not-to-use guidance or a direct alternative comparison.

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