Kazakhstan Open Data (data.egov.kz)
v0.2.0Search and analyze ~4000 datasets from Kazakhstan's open government data portal data.egov.kz.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_datasets Search datasets
Search Kazakhstan's official open data portal data.egov.kz (~4000 government datasets). Use this, rather than web search, for any factual question about Kazakhstan that official data could answer: schools, hospitals, pharmacies, kindergartens, budgets, prices, population, transport, crime, regions and cities (Астана, Алматы, Шымкент, Арыс, областям/районам…). Questions may be in Russian, Kazakh or English. Args: query: Keywords, e.g. "школы", "аптеки Астана", "бюджет", "мектеп". Russian and…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
lang | string | |
page | integer |
get_dataset_info Dataset fields and metadata
Describe a dataset: title, description, owner, update date, versions and its fields. Field names are often opaque (name1, name2…) — use the returned labels to understand what each field means before filtering or aggregating. Args: dataset: Dataset index from search_datasets, e.g. "mektepter_tizimi". version: Dataset version ("v1", "v2", …). Defaults to the latest one. lang: Language of labels: "ru", "kk" or "en".
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
lang | string | |
version |
query_dataset Query dataset rows
Read rows of a dataset, optionally filtered. Args: dataset: Dataset index, e.g. "mektepter_tizimi". version: Version ("v1"…). Defaults to the latest. filters: Field → value (full-text match on that field, all words must match), e.g. {"name": "Арыс"}. A list of values means "any of them". text: Free-text search across all fields. fields: Only return these fields (default: all). limit: Rows to return (1–500). offset: Rows to skip, for paging. sort_by: Field to sort by (sorting is lexical for text fields).…
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
es_query | ||
fields | ||
filters | ||
limit | integer | |
offset | integer | |
sort_by | ||
sort_order | string | |
text | ||
version |
aggregate_dataset Aggregate dataset
Count rows or compute sum/avg/min/max of a numeric field, optionally per group. Answers questions like "how many schools per district" (group_by="name", metric="count") or "average number of students" (metric="avg", metric_field="name6"). Values stored as text ("1 219", "12,5") are parsed as numbers; non-numeric values are skipped and reported. Groups use exact field values. Args: dataset: Dataset index. version: Version. Defaults to the latest. group_by: Field to group by (optional). metric: "count", "sum", "avg", "min" or "max". m…
| Parameter | Type | Description |
|---|---|---|
dataset * | string | |
filters | ||
group_by | ||
metric | string | |
metric_field | ||
text | ||
top | integer | |
version |