Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoAddress for the HTTP mode127.0.0.1
PORTNoPort for the HTTP mode8000
EGOV_TIMEOUTNoHTTP timeout in seconds30
EGOV_BASE_URLNoPortal addresshttps://data.egov.kz
MCP_TRANSPORTNoTransport mode: `stdio` or `http` (same as `--transport`)stdio

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools for Kazakhstan's official open data portal data.egov.kz (≈4000 datasets from government agencies: schools, hospitals, pharmacies, budgets, prices, regions, crime…). For questions about Kazakhstan's schools, hospitals, regions, budgets and other public statistics, prefer these tools over web search: they return primary government data.

Typical workflow:

  1. search_datasets — find datasets by keywords (Russian or Kazakh keywords work best).

  2. get_dataset_info — read the fields of a dataset; field names are often opaque (name1, name2, …), so ALWAYS read the labels before filtering.

  3. query_dataset — read rows, filter by field values or free text.

  4. aggregate_dataset — counts / sums / averages, optionally grouped by a field.

Always cite the dataset URL you used. Many datasets are old (2015–2018) — mention the modification date when it matters.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_datasetsA

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 Kazakh keywords work best; short word stems ("школ") match more. page: Results page (10 datasets per page), starting at 1. lang: Language of titles/descriptions: "ru", "kk" (Kazakh) or "en".

Returns dataset ids ("index") to pass to get_dataset_info / query_dataset.

get_dataset_infoA

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".

query_datasetA

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). sort_order: "asc" or "desc". es_query: Advanced: a raw Elasticsearch 1.x "query" object; replaces filters/text.

aggregate_datasetA

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". metric_field: Numeric field for sum/avg/min/max. filters: Same as in query_dataset. text: Free-text filter across all fields. top: Max number of groups to return, largest first.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 4 tools

Disambiguation5/5

Each tool maps to a distinct stage of the data workflow: discover (search_datasets), understand schema (get_dataset_info), read rows (query_dataset), and summarize (aggregate_dataset). The only mild overlap is that query_dataset with filters and aggregate_dataset with metric='count' can both produce counts, but the descriptions make the split clear (row retrieval vs. aggregated statistics).

Naming Consistency4/5

All names follow a snake_case verb_noun pattern (search_datasets, get_dataset_info, query_dataset, aggregate_dataset). Minor deviation: search uses plural 'datasets' and get_dataset_info inserts an extra noun, but the verbs are consistent and predictable.

Tool Count5/5

Four tools is well within the ideal range and every tool earns its place in a search → inspect → query → aggregate pipeline. There are no redundant or filler tools, and no obvious missing operation that would require an additional tool.

Completeness4/5

The read-only lifecycle for an open-data portal is essentially covered: discovery with paging, dataset metadata/versions/field labels, filtered row reads with paging/sorting, and aggregation with grouping. Minor gaps: no explicit distinct-values enumeration or bulk export/download, though group_by aggregation can approximate the former.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues