ckan_discover_datasets
Search CKAN government data portals by keyword to find queryable datastore resource IDs, returning dataset titles, formats, and datastore status for direct follow-up queries.
Instructions
Find CKAN datastore resource ids by keyword via package_search (keyless). Input host (allowlisted enum), q (e.g. 'procurement', 'checkbook'), limit (≤100, def 20). Returns per-resource rows [{ resourceId, name, datasetTitle, format, datastoreActive }] + totalAvailable = the matching DATASET count. Feed a datastoreActive:true result's resourceId to ckan_query (a datastoreActive:false resource is a raw file blob NOT in the datastore, not queryable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Keyword(s) to find datasets, e.g. 'procurement', 'checkbook', 'vendor'. | |
| host | Yes | Which allowlisted CKAN portal to query (curated .gov hosts — the SSRF host allowlist, no free host): data.ca.gov (CA), data.virginia.gov (VA — eVA), data.boston.gov (City of Boston Checkbook). | |
| limit | No | Max datasets (packages) to return, 1..100, default 20. |