Data Bahrain
v0.2.1Bahrain government open data — population and census statistics, education, GDP and labor market…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_datasets
Search Bahrain government open data for datasets by keyword (population, census, education, GDP, labor market, industry). Returns dataset_ids (pass to query/dataset_info), titles and record counts.
| Parameter | Type | Description |
|---|---|---|
limit | number | Max datasets (1-100, default 20). |
offset | number | Pagination offset (default 0). |
query | string | Keyword(s) to search dataset titles/descriptions, e.g. "population". |
dataset_info
Get metadata for one Bahrain government open data dataset (field schema, record count, description) — call before query to learn the column names.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset id from search_datasets. |
query
Query records from a Bahrain government open data dataset with ODSQL. Filter (where), aggregate (group_by/select), sort (order_by), paginate (limit/offset).
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset id from search_datasets. |
group_by | string | ODSQL group_by field(s). |
limit | number | Max records (1-100, default 20). |
offset | number | Pagination offset (default 0). |
order_by | string | Sort, e.g. `year desc`. |
query | string | Free-text keyword across all fields (optional). |
select | string | ODSQL select/aggregation, e.g. `count(*) as n, sum(amount)`. |
where | string | ODSQL filter, e.g. `year >= 2020` (overrides query). |