Skip to main content
Glama
openascot

CKAN MCP Server

by openascot

get_first_datastore_resource_records

Retrieve data records from the primary datastore resource within a CKAN dataset, supporting filtering, sorting, and pagination for analysis.

Instructions

Get records from the first active datastore resource in a dataset

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageIdYesThe ID of the dataset containing the resource
limitNoMaximum number of records to return
offsetNoNumber of records to skip before returning results
filtersNoDatastore API filters to apply on the server (field:value mapping).
qNoFull-text query applied by CKAN's datastore_search endpoint.
plainNoWhen true, disables text highlighting in datastore results.
distinctNoReturn only distinct rows from the datastore resource.
fieldsNoSubset of fields to return for each record.
sortNoSort expression understood by datastore_search (e.g., "column desc").
includeTotalNoInclude the total record count from CKAN even when limit=0.
recordsFormatNoOptional datastore output format (e.g., objects or lists).

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/openascot/ckan-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server