ckan_discover_datasets
Find datasets on CKAN portals (data.ca.gov, data.virginia.gov, data.boston.gov) by keyword. Returns resource IDs, titles, formats, and datastore query status for actionable data access.
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. |