Skip to main content
Glama
CKAN MCP Server

CKAN MCP Server

by ondata

Show CKAN Dataset Details

ckan_package_show
Read-onlyIdempotent

Retrieve complete metadata for a specific CKAN dataset, including resources, organization, tags, and schema fields, to inspect dataset details before querying its data.

Instructions

Get complete metadata for a specific dataset (package).

Returns full details including resources, organization, tags, and all metadata fields.

Notes:

  • metadata_modified is a CKAN record timestamp (publish time on source portals, harvest time on aggregators), not the content date.

  • issued/modified are content dates when provided by the publisher.

  • JSON output adds metadata_harvested_at (same as metadata_modified).

Args:

  • server_url (string): Base URL of CKAN server

  • id (string): Dataset ID or name (machine-readable slug)

  • include_tracking (boolean): Include view/download statistics (default: false)

  • response_format ('markdown' | 'json'): Output format

On portals that use ckanext-scheming the schema's other root fields are added as "fields" ([{field, label, value}]), each with the label the schema gives it and the value as stored. Portals without scheming are unaffected.

Returns (JSON format): id, name, title, notes, organization, tags, state, license_title, metadata_created, metadata_modified, issued, modified, author, maintainer, frequency, language, publisher_name, holder_name, hvd_category, applicable_legislation, temporal_coverage (array of {start, end, start_equals_issued} from dct:temporal; empty if absent; start_equals_issued=true when start = issued and no end: on dcatapit portals an export default, not a data period), resources (id, name, format, url, size, datastore_active, created, last_modified, api_json_url), view_url, api_json_url

Examples:

Typical workflow: ckan_package_show → pick a resource with datastore_active=true → ckan_datastore_search (query its data)

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": {
      "server_url": "<server_url>",
      "id": "<id>"
    },
    "name": "ckan_package_show"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDataset ID (UUID) or machine-readable name slug (e.g., 'raccolta-differenziata-comuni')
server_urlYesBase URL of the CKAN server (e.g., https://dati.gov.it/opendata)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
include_trackingNoInclude tracking statistics

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.108

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, yet the description still adds substantial semantics an agent cannot get from annotations: metadata_modified is a record timestamp (publish vs harvest) rather than content date, issued/modified are publisher content dates, and temporal_coverage's start_equals_issued flag may be an export default rather than a real period. It also discloses a portal-dependent return augmentation (ckanext-scheming 'fields' array) that changes output shape without changing the call.

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?

Front-loaded with a one-sentence purpose, then cleanly separated Notes / Args / Returns / Examples sections. It is long, and given there is no output schema the Returns inventory earns its place, but the Args block duplicates schema content and the field-by-field return list could be tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the full burden of describing return values and does so field-by-field, including nested resources and the dct:temporal structure. Combined with annotation-covered safety and the named next-step sibling, an agent has everything needed to call this correctly and interpret the result.

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 all four parameters are already documented, and the description's Args block largely restates them. The one genuine addition is that include_tracking yields 'view/download statistics' rather than the schema's vaguer 'tracking statistics'; otherwise no syntax, format, or edge-case guidance is added beyond the 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?

States a specific verb and resource — 'Get complete metadata for a specific dataset (package)' — and immediately scopes what 'complete' means (resources, organization, tags, all metadata fields). The typical-workflow line further pins it as the by-identifier detail fetch as opposed to ckan_package_search.

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 'Typical workflow: ckan_package_show → pick a resource with datastore_active=true → ckan_datastore_search' line explicitly routes the agent to the correct follow-up sibling and states the selection condition (datastore_active=true). It does not state when to prefer ckan_package_search or ckan_list_resources over this call, so it falls short of a full when/when-not treatment.

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