Skip to main content
Glama

πŸ‡¨πŸ‡­ Part of the Swiss Public Data MCP Portfolio

πŸ“Š zh-education-mcp

Version License: MIT Python 3.11+ MCP No Auth Required CI

MCP server for education statistics of the Canton and City of Zurich (BISTA)

πŸ‡©πŸ‡ͺ Deutsche Version


Overview

zh-education-mcp connects AI assistants to the Bildungsstatistik Kanton ZΓΌrich (BISTA) β€” the official education statistics of the Canton of Zurich. It provides structured access to pupil numbers, school district trends, secondary school profiles, nationality breakdowns, and gymnasium graduation rates.

Source

Data

API

BISTA Kanton ZΓΌrich

Learner statistics (Volksschule, Mittelschulen, MaturitΓ€t)

REST/CSV

All data is fetched from the BISTA public API (bista.zh.ch/basicapi/ogd/) β€” no API key required. Data is updated annually on 15 September (reference date).

Anchor demo query: "How has the number of pupils in school district Letzi developed over the last 5 years?"


Related MCP server: swisstopo-mcp

Demo


Features

  • πŸ“Š 8 tools for education data across all school levels

  • πŸ” School district trends β€” pupil numbers for all Schulkreise (Letzi, Glattal, Schwamendingen, Oerlikon, Uto, Waidberg, ZΓΌrichberg) from 2000 to present

  • 🏫 Secondary school profiles β€” breakdown by requirement type (Sek A/B/C, Mittelschule, special classes)

  • 🌐 Nationality structure β€” top nationalities of pupils per school community

  • πŸŽ“ Gymnasium graduation rates β€” MaturitΓ€tsquote by municipality, district, and canton

  • πŸ“ˆ Canton-wide overview β€” all learners by school level, type, gender, and nationality

  • 🏠 Residence-based trends β€” pupil counts by place of residence (Bezirk / Gemeinde)

  • πŸ›οΈ Mittelschulen β€” Gymnasium, FMS, HMS statistics

  • πŸ”“ No API key required β€” all data under CC BY 4.0

  • ☁️ Dual transport β€” stdio (Claude Desktop) + Streamable HTTP (cloud)


Prerequisites

  • Python 3.11+

  • uv (recommended) or pip


Installation

# Clone the repository
git clone https://github.com/malkreide/zh-education-mcp.git
cd zh-education-mcp

# Install
pip install -e .
# or with uv:
uv pip install -e .

Or with uvx (no permanent installation):

uvx zh-education-mcp

Quickstart

# stdio (for Claude Desktop)
python -m zh_education_mcp.server

# Streamable HTTP (port 8000)
python -m zh_education_mcp.server --http --port 8000

Try it immediately in Claude Desktop:

"Wie hat sich die Lernendenzahl im Schulkreis Letzi entwickelt?" "Zeige die MaturitΓ€tsquote der Stadt ZΓΌrich" "Welche NationalitΓ€ten sind in Adliswil am hΓ€ufigsten?"

β†’ More use cases by audience β†’


Configuration

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "zh-education": {
      "command": "python",
      "args": ["-m", "zh_education_mcp.server"]
    }
  }
}

Or with uvx:

{
  "mcpServers": {
    "zh-education": {
      "command": "uvx",
      "args": ["zh-education-mcp"]
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Cloud Deployment (Streamable HTTP for browser access)

For use via claude.ai in the browser (e.g. on managed workstations without local software):

Render.com (recommended):

  1. Push/fork the repository to GitHub

  2. On render.com: New Web Service β†’ runtime Docker (uses the provided Dockerfile)

  3. Set env vars: MCP_TRANSPORT=streamable-http, MCP_HOST=0.0.0.0, MCP_PORT=8000, and MCP_CORS_ORIGINS=https://claude.ai

  4. In claude.ai under Settings β†’ MCP Servers, add: https://your-app.onrender.com/mcp

πŸ’‘ "stdio for the developer laptop, Streamable HTTP for the browser."

Health probe: GET /health. Full deployment guide (container, load balancing, CORS, resource limits): docs/deployment.md.


Available Tools

Tool

Description

zh_edu_list_schulgemeinden

List all school communities / Schulkreise in Canton Zurich

zh_edu_schulkreis_trend

Pupil trend by Schulkreis (2000–present)

zh_edu_overview

Canton-wide learner overview by school level

zh_edu_sek1_profil

Secondary I profile (Sek A/B/C breakdown)

zh_edu_staatsangehoerigkeiten

Nationality structure of pupils per school community

zh_edu_maturitaetsquote

Gymnasium graduation rates by municipality / district

zh_edu_wohnort_trend

Residence-based learner trend (Bezirk / Gemeinde)

zh_edu_mittelschulen

Secondary school statistics (Gymnasium, FMS, HMS)

Example Use Cases

Query

Tool

"List all Schulkreise in Zurich"

zh_edu_list_schulgemeinden

"Pupil trend in Letzi over 5 years"

zh_edu_schulkreis_trend

"How many Sek A vs Sek B in Winterthur?"

zh_edu_sek1_profil

"Top nationalities in ZΓΌrich-Letzi"

zh_edu_staatsangehoerigkeiten

"MaturitΓ€tsquote of Stadt ZΓΌrich"

zh_edu_maturitaetsquote


Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Claude / AI   │────▢│  zh-education-mcp            │────▢│  BISTA Kanton ZΓΌrich     β”‚
β”‚   (MCP Host)    │◀────│  (MCP Server)                │◀────│  REST/CSV (Public API)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚                              β”‚     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                        β”‚  8 Tools                     β”‚
                        β”‚  Stdio | Streamable HTTP     β”‚
                        β”‚  24h Cache                   β”‚
                        β”‚  No authentication required  β”‚
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Data Source Characteristics

Source

Protocol

Coverage

Auth

Update

BISTA Kanton ZH

REST/CSV

Learner statistics 2000–present

None

Annual (15 Sep)


Project Structure

zh-education-mcp/
β”œβ”€β”€ src/zh_education_mcp/
β”‚   β”œβ”€β”€ __init__.py              # Package
β”‚   β”œβ”€β”€ config.py               # ENV settings (MCP_*)
β”‚   β”œβ”€β”€ constants.py            # API base, endpoints, timeouts
β”‚   β”œβ”€β”€ logging_setup.py        # structured stderr logging
β”‚   β”œβ”€β”€ provenance.py           # response envelope, license attribution
β”‚   β”œβ”€β”€ http_client.py          # egress guard, connection pool, lifespan
β”‚   β”œβ”€β”€ data.py                 # cache, CSV fetch, filters, error handling
β”‚   β”œβ”€β”€ models.py               # Pydantic input models
β”‚   β”œβ”€β”€ tools.py                # FastMCP instance, 8 tools, 2 resources
β”‚   └── server.py               # thin composition layer + entrypoint
β”œβ”€β”€ tests/
β”‚   └── test_server.py           # Unit tests (mocked HTTP with respx)
β”œβ”€β”€ docs/                        # deployment, security, egress, roadmap, …
β”œβ”€β”€ Dockerfile                   # multi-stage, non-root, healthcheck
β”œβ”€β”€ docker-compose.yml           # resource limits, read-only rootfs
β”œβ”€β”€ .github/workflows/ci.yml     # GitHub Actions (Python 3.11/3.12/3.13)
β”œβ”€β”€ .github/dependabot.yml       # monthly dependency updates
β”œβ”€β”€ pyproject.toml
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ CONTRIBUTING.md              # + CONTRIBUTING.de.md
β”œβ”€β”€ SECURITY.md                  # + SECURITY.de.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md                    # This file (English)
└── README.de.md                 # German version

Known Limitations

  • Annual updates only: BISTA data is updated once per year (reference date: 15 September). The 24h in-memory cache matches this cycle.

  • CSV-based API: The BISTA API returns CSV data; large datasets may take a moment to parse.

  • School community names: Names must match exactly (use zh_edu_list_schulgemeinden to find valid names).


Safety & Limits

Topic

Details

No personal data

BISTA statistics are aggregated β€” no individual pupil data is exposed or accessible. All figures are anonymized at the school community level.

Read-only

All tools are read-only (readOnlyHint: true). The server cannot modify, delete, or write any data.

No authentication

The BISTA API is fully public. No API keys, tokens, or credentials are stored or transmitted.

Rate limits

The BISTA API has no documented rate limit, but the server uses a 24h in-memory cache to minimize requests. Please use responsibly.

Data license

All data is published under CC BY 4.0 by the Canton of Zurich. Attribution: Bildungsstatistik Kanton ZΓΌrich (BISTA).

Terms of Service

Usage is subject to the BISTA terms of use. The MCP server is an independent open-source project and is not affiliated with the Canton of Zurich.

AI output disclaimer

Statistics are passed through as-is from the BISTA API. AI-generated interpretations or summaries should be verified against the official BISTA portal.


Testing

# Unit tests (no API calls)
PYTHONPATH=src pytest tests/ -m "not live"

# Integration tests (live API calls)
pytest tests/ -m "live"

The live suite also runs on a schedule: every Monday 05:23 UTC, plus on demand (live-tests.yml). A red run opens an upstream-labelled issue; a green one closes it. -m "not live" is not a place where tests run, and these three are the only tests here that can contradict a wrong assumption about BISTA β€” see CONTRIBUTING.


MCP Protocol Version

This server speaks two protocol eras over the same endpoint. The client's first request on a connection decides which one applies; a later claim from the other era is refused.

Era

Revision

Who reaches it

initialize handshake

2024-11-05 … 2025-11-25

What today's clients speak. The server answers with the revision asked for, or with the 2025-11-25 ceiling when the request asks for something newer.

Per-request envelope

2026-07-28

A request carrying the 2026-07-28 _meta envelope opens a modern connection.

Both revisions are pinned in tests/test_protocol_version.py and asserted against the installed SDK, so a Dependabot bump of mcp cannot move either one silently. The handshake ceiling is measured against a live initialize through the assembled ASGI stack, not read off a constant name.

Note that the SDK's LATEST_PROTOCOL_VERSION is an alias for the modern era, not for the handshake era β€” pinning against it alone would leave the era that current clients actually negotiate free to drift.

Update policy. When the gate fails, do not edit the constant blindly: read the spec changelog between the two revisions, verify the server still behaves, then move the constant, this section, README.de.md and CHANGELOG.md together.

Project phase: Phase 1 β€” read-only (all tools readOnlyHint: true). See docs/roadmap.md.


Release

Publishing is driven by a GitHub release (release: published β†’ publish.yml): build β†’ gate β†’ PyPI β†’ MCP Registry.

The gate (check_release_artifacts.py) runs before the upload and inspects the built wheel, not the sources:

  • exactly one mcp-name: marker (an HTML comment, see the bottom of this file) in the wheel METADATA β€” the MCP Registry proves PyPI ownership with it β€” and it must match server.json name

  • server.json description at most 100 characters; the Registry answers 422, and only after the PyPI upload has already succeeded

  • server.json version equal to pyproject.toml version, and the git tag equal to the version actually built

It sits ahead of the upload because nothing is correctable behind it: a PyPI version is immutable, so a fix costs a version bump.

If you edit this README: the marker at the very bottom is shipped as part of the package description (readme = "README.md" in pyproject.toml), and removing it fails the gate. README.de.md carries no marker and is not published. The version badge above is checked on every pull request by check_version_sync.py against pyproject.toml and server.json.


Changelog

See CHANGELOG.md


Contributing

See CONTRIBUTING.md Β· πŸ‡©πŸ‡ͺ Beitragen


Security

See SECURITY.md Β· πŸ‡©πŸ‡ͺ Sicherheit


License

MIT License β€” see LICENSE


Author

Hayal Oezkan Β· malkreide


Installation

Run via uv's uvx β€” no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):

{
  "mcpServers": {
    "zh-education-mcp": {
      "command": "uvx",
      "args": [
        "zh-education-mcp"
      ]
    }
  }
}

Available Tools

8 tools
zh_edu_list_schulgemeindenA
Read-onlyIdempotent

Listet alle Schulgemeinden und Schulkreise im Kanton ZΓΌrich auf.

Extrahiert die eindeutigen Schulgemeinden aus den Sekundarstufe-I-Daten. NΓΌtzlich als Einstieg, um gΓΌltige Namen fΓΌr andere Tools zu finden.

Args: params (ListSchulgemeindensInput): - suchbegriff (str | None): Filter nach Teilstring (z. B. 'ZΓΌrich') - response_format: 'markdown' oder 'json'

Returns: str: Alphabetische Liste aller Schulgemeinden.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior. The description adds useful context about the data source and alphabetical ordering of results, which goes beyond the annotations. No contradiction exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and uses a compact Args/Returns structure. Every sentence provides value without unnecessary fluff or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only list tool, the description fully covers the operation, parameters, output format, and use case. The annotations and parameter details are sufficient; no additional behavioral notes are required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema has descriptions, the tool description explicitly lists both parameters (suchbegriff and response_format) with examples, ensuring clarity. Since the computed schema coverage is 0%, the description fully compensates for the lack of top-level parameter explanation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool lists all Schulgemeinden and Schulkreise in the Canton of Zurich, using a specific verb and resource. It also mentions the data source (Sekundarstufe-I data), which distinguishes it from sibling tools like trend or overview.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly notes the tool is useful as an entry point to find valid names for other tools, providing clear usage context. However, it does not mention when to avoid this tool or name alternatives, so it earns a 4 rather than a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

zh_edu_maturitaetsquoteA
Read-onlyIdempotent

Zeigt die gymnasiale MaturitΓ€tsquote nach Gemeinde, Bezirk und Kanton.

Die MaturitΓ€tsquote berechnet sich als Anteil der gymnasialen AbschlΓΌsse an der 19-jΓ€hrigen WohnbevΓΆlkerung einer Gemeinde.

Args: params (MaturitaetsquoteInput): - gemeinde (str | None): Gemeindename filtern - bezirk (str | None): Bezirk filtern - response_format: 'markdown' oder 'json'

Returns: str: MaturitΓ€tsquoten-Tabelle mit AbschlΓΌssen und Quote pro Gemeinde.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds meaningful context beyond the annotations by explaining the calculation formula (Anteil der gymnasialen AbschlΓΌsse an der 19-jΓ€hrigen WohnbevΓΆlkerung) and the return format. Annotations already declare readOnlyHint=true and idempotentHint=true, so the description doesn't need to restate those. The additional methodology details are valuable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: a clear opening statement, a brief formula explanation, and a compact Args/Returns section. Every sentence adds value and the most important information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the core functionality, metric definition, parameters, and return type. An output schema handles the detailed response structure, and annotations cover the safety profile. It is complete for a read-only tool, though it could mention the canton scope (ZH) explicitly or behavior for empty results, but these are minor gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description's Args section restates the parameters (gemeinde, bezirk, response_format) in a way that closely mirrors the input schema, which already includes descriptions and examples. No new semantic information is added beyond what the schema provides, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Zeigt die gymnasiale MaturitΓ€tsquote nach Gemeinde, Bezirk und Kanton.' The verb 'Zeigt' is specific and the resource (MaturitΓ€tsquote) is distinct from sibling tools which focus on other education metrics like school communities, trends, or profiles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage is implied by the description's focus on MaturitΓ€tsquote and the filtering parameters, but there is no explicit guidance on when to use this tool versus alternatives, nor any exclusions or mention of sibling tools. It provides clear context but no alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

zh_edu_mittelschulenA
Read-onlyIdempotent

Zeigt Statistiken zu Mittelschulen (Gymnasium, FMS, HMS) im Kanton ZΓΌrich.

Umfasst Lernendenzahlen nach Mittelschultyp, Bildungsart, Geschlecht und StaatsangehΓΆrigkeit.

Args: params (MittelschulenInput): - mittelschultyp (str | None): Schultyp filtern (z. B. 'Gymnasium') - jahr (int | None): Bestimmtes Jahr (leer = aktuellstes) - response_format: 'markdown' oder 'json'

Returns: str: Mittelschulstatistiken nach Typ und Bildungsart.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, and non-destructive hints. The description adds useful behavioral details: default jahr is the current year if empty, response_format can be markdown or json, and the output includes specific breakdowns. This goes beyond the annotation minimum without contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized: a concise summary of purpose and data scope, followed by a structured Args list and a Returns note. Every sentence adds value, and it is front-loaded with the most important information. No redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the tool's purpose, parameters, output type, and included data dimensions. This is sufficient for an agent to select and invoke the tool correctly. Minor omission is the lack of explicit mention of return format structure, but the presence of output schema and clear Returns description mitigates this.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The Args section restates the parameter descriptions already present in the schema (mittelschultyp, jahr, response_format) but adds no new meaning. The schema provides clear descriptions, so the baseline of 3 applies; the description does not compensate beyond this.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: showing statistics for Mittelschulen (Gymnasium, FMS, HMS) in Kanton ZΓΌrich. It specifies the exact data dimensions (Lernendenzahlen nach Mittelschultyp, Bildungsart, Geschlecht, StaatsangehΓΆrigkeit), which distinguishes it from sibling tools covering other school types or metrics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use for Mittelschul statistics with clear scope (Kanton ZΓΌrich) but does not explicitly mention when to use this tool over alternatives or provide exclusion criteria. Sibling tool names give context, but the description itself lacks explicit guidance on selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

zh_edu_overviewA
Read-onlyIdempotent

Gibt eine kantonsweite Übersicht aller Lernenden nach Stufe, Typ und Geschlecht.

Datenquelle: BISTA-Übersicht aller Lernenden im Kanton Zürich. Umfasst Primarstufe, Sekundarstufe I, Sekundarstufe II und TertiÀrstufe.

Args: params (UebersichtInput): - jahr (int | None): Bestimmtes Jahr (leer = aktuellstes) - stufe (str | None): Filter nach Schulstufe - response_format: 'markdown' oder 'json'

Returns: str: Übersichtstabelle mit Lernenden nach Stufe und Schultyp.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, openWorld, and idempotent hints, covering the safety profile. The description adds useful context: the output can be markdown or json, the year filter defaults to the latest available year, and the data comes from BISTA. No contradictions detected; it provides enough additional behavioral detail for a simple overview tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections for purpose, data source, args, and returns. It is front-loaded with the core action and remains concise. Slight redundancy exists (e.g., 'Übersicht' repeated), but every sentence adds useful information and the overall length is appropriate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only overview tool with nested parameters and an output schema, the description covers all essential aspects: purpose, data source, scope, parameters, and return format. It does not discuss error handling or edge cases, but given the tool's simplicity and the presence of annotations, this is adequate. The description is complete enough for an agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description lists all three parameters with types and explanations in the Args section, which is helpful. However, this largely mirrors the schema's own descriptions (e.g., 'jahr' meaning specific year or latest, 'stufe' as a filter). The context signal indicates 0% schema description coverage, but the schema already provides detailed descriptions, so the description adds limited new meaning beyond what an agent would find in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool provides a canton-wide overview of all learners by level, type, and gender ('Gibt eine kantonsweite Übersicht aller Lernenden nach Stufe, Typ und Geschlecht'). It also specifies the data source and covered levels, distinguishing it from sibling tools that focus on specific aspects like school communities or trends.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context for when to use the tool: when a broad, canton-wide overview is needed. It does not explicitly name alternatives or state exclusions, but the scope is well-defined through the data source and levels. The sibling tool names suggest distinct purposes, but no direct comparison is made.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

zh_edu_schulkreis_trendA
Read-onlyIdempotent

Zeigt den Lernenden-Trend fΓΌr eine Schulgemeinde / einen Schulkreis.

Liefert die Entwicklung der Lernendenzahlen (Sek I) ΓΌber die letzten N Jahre, aufgeschlΓΌsselt nach Anforderungstyp (Sek A, Sek B, Sek C etc.).

Args: params (SchulkreisTrendInput): - schulgemeinde (str): Name der Schulgemeinde (z. B. 'ZΓΌrich-Letzi') - letzte_n_jahre (int): Anzahl Jahre rΓΌckwΓ€rts (Standard: 5) - response_format: 'markdown' oder 'json'

Returns: str: Trend-Übersicht mit Jahresvergleich und Gesamtentwicklung.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering safety. The description adds behavioral detail beyond these, such as the scope (Sek I), breakdown by Anforderungstyp, and the return format (trend overview with year comparison and overall development). No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured: a clear opening sentence, a detailed explanation, and a straightforward Args/Returns section. It is slightly longer than necessary due to duplicating schema information, but every sentence earns its place and the formatting is clean.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only trend tool with one parameter object and a string return, the description is sufficiently complete. It covers the time range, the breakdown, and the response format. It does not address error cases or data availability, but given the annotations and simplicity, this is acceptable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema fully documents all three properties (schulgemeinde, letzte_n_jahre, response_format) with descriptions, constraints, and defaults. The description's Args section mirrors the schema without adding new meaning. Since schema coverage is high, a baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool shows learner trends for a school district/municipality, with specific detail on Sek I and breakdown by requirement type (Sek A, B, C). This differentiates it from sibling tools like residential trends or matriculation rates, satisfying the verb+resource+scope criterion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly indicates the usage context: trend over the last N years for a specific school district. It does not explicitly name alternative tools or exclusions, but the context is strong enough for an agent to infer when to use it. Lacks explicit when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

zh_edu_sek1_profilA
Read-onlyIdempotent

Zeigt das Sek-I-Profil einer Schulgemeinde (Anforderungstypen A/B/C).

SchlΓΌsselt die Lernenden der Sekundarstufe I nach Anforderungstyp auf: Sek A (hΓΆchste Anforderungen), Sek B, Sek C, Mittelschule, Sonderklassen.

Args: params (Sek1ProfilInput): - schulgemeinde (str): Schulgemeinde (z. B. 'ZΓΌrich-Letzi') - jahr (int | None): Bestimmtes Jahr (leer = aktuellstes) - response_format: 'markdown' oder 'json'

Returns: str: Profil mit Anzahl und Anteil pro Anforderungstyp.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark the tool as readOnlyHint, idempotentHint, and destructiveHint=false, so the description adds value by describing the output as 'Profil mit Anzahl und Anteil pro Anforderungstyp' and stating the default year behavior ('leer = aktuellstes'). It also clarifies the response_format options, exceeding the annotation baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is tightly structured with a one-sentence purpose, a category list, Args, and Returns sections. There is no filler or redundant explanation; every line contributes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only profile tool with one nested input object, the description covers purpose, categories, parameters, default behavior, response_format, and return value. It does not discuss edge cases like unknown Schulgemeinden, but the annotated read-only nature and simple output make this sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The Args section restates and clarifies all parameters, adding concrete examples ('ZΓΌrich-Letzi') and the default-year semantics ('leer = aktuellstes') beyond what the schema's property names alone provide. Given the low schema coverage signal, the description compensates effectively for each parameter including response_format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Zeigt das Sek-I-Profil einer Schulgemeinde (Anforderungstypen A/B/C)', giving a specific verb, resource, and scope. It also enumerates the exact breakdown categories, clearly distinguishing this read-only profile tool from trend, overview, and MaturitΓ€tsquote siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use when you need a Sek-I profile broken down by Anforderungstyp for a Schulgemeinde, but it never explicitly states when not to use it or mentions alternatives among the sibling tools. The purpose is clear, yet selection guidance is only implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

zh_edu_staatsangehoerigkeitenA
Read-onlyIdempotent

Zeigt die StaatsangehΓΆrigkeitsstruktur der Lernenden einer Schulgemeinde.

Liefert die hΓ€ufigsten NationalitΓ€ten der SchΓΌlerΒ·innen in einer Schulgemeinde, inkl. ISO2-LΓ€ndercode und Anteil.

Args: params (StaatsangehoerigkeitInput): - schulgemeinde (str): Schulgemeinde (z. B. 'ZΓΌrich-Letzi') - top_n (int): Anzahl Top-NationalitΓ€ten (Standard: 10) - jahr (int | None): Bestimmtes Jahr (leer = aktuellstes) - response_format: 'markdown' oder 'json'

Returns: str: Rangliste der hΓ€ufigsten NationalitΓ€ten mit Anteil.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds that it returns a ranking string with ISO2 codes and proportions and notes the default top_n of 10 and null jahr meaning 'latest'. This is useful but does not disclose edge cases such as invalid schulgemeinde names or empty results. Given the annotations, a 3 is appropriate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured: a single lead sentence stating the tool's purpose, followed by compact Args and Returns sections. Every sentence is informative, with no redundant or filler text. The formatting makes it easy to scan quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the rich annotations (read-only, idempotent) and the presence of an output schema, the description provides adequate coverage of behavior and parameters. It does not mention how to obtain valid schulgemeinde names or handle potential errors, but for a read-only lookup tool, this is a minor gap. Overall, it is sufficiently complete for an agent to correctly invoke the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explicitly lists and explains all four parameters (schulgemeinde, top_n, jahr, response_format) in an Args section, including defaults and examples. Since the top-level schema only exposes an unannotated 'params' object (coverage 0%), the description fully compensates by detailing every nested parameter, making the semantics crystal clear.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Zeigt' (shows) and clearly identifies the resource: 'StaatsangehΓΆrigkeitsstruktur der Lernenden einer Schulgemeinde'. It further specifies that it delivers the most frequent nationalities with ISO2 code and share, distinguishing it from sibling trend-focused tools like zh_edu_schulkreis_trend. This makes the purpose unmistakable and unique.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not provide any guidance on when to use this tool over alternatives, nor does it mention exclusions or prerequisites. It does not reference sibling tools such as zh_edu_list_schulgemeinden for valid community names or zh_edu_schulkreis_trend for trends, leaving the agent to infer the appropriate context solely from the basic function.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

zh_edu_wohnort_trendA
Read-onlyIdempotent

Zeigt die Entwicklung der Lernendenzahlen nach Wohnort (Bezirk/Gemeinde).

Basiert auf dem Wohnort der Lernenden, nicht dem Schulort. AufschlΓΌsselung nach Gebietstyp (Kanton, Bezirk, Gemeinde) und Schulstufe.

Args: params (WohnortTrendInput): - gebiet (str | None): Gebietsbezeichnung filtern - stufe (str | None): Schulstufe filtern - letzte_n_jahre (int): Anzahl Jahre (Standard: 5) - response_format: 'markdown' oder 'json'

Returns: str: Trend-Tabelle der Lernenden nach Wohnort und Stufe.

ParametersJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile with readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds useful behavioral context by clarifying the data source (Wohnort, not Schulort) and the output type (Trend-Tabelle), which goes beyond the annotation fields without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized: a one-sentence summary, a short clarifying statement, a structured Args block, and a Returns line. Every element earns its place, and the most important information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only trend tool with robust annotations and an output schema, the description covers the input parameters, the filtering dimensions, the data basis, and the return format. There are no significant missing details that would prevent correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the context signal reports 0% schema description coverage, the description's Args section enumerates all parameters with clear meanings, defaults, and response_format options. This compensates for the perceived coverage gap, even though the underlying JSON schema itself also contains detailed parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Zeigt die Entwicklung der Lernendenzahlen nach Wohnort' (shows the development of learner numbers by place of residence). It also explicitly distinguishes the tool from school-location-based alternatives by stating 'Basiert auf dem Wohnort der Lernenden, nicht dem Schulort', which differentiates it from sibling tools like zh_edu_schulkreis_trend.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly conveys when this tool is applicable: it reports trends by learner residence rather than school location, and it supports filtering by area type and school level. It does not explicitly name alternative tools or say 'use this instead of X', but the Wohnort vs. Schulort clarification provides strong contextual guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 8 tool updatesv0.2.6
    • First observedzh_edu_list_schulgemeinden
    • First observedzh_edu_maturitaetsquote
    • First observedzh_edu_mittelschulen
    • First observedzh_edu_overview
    • First observedzh_edu_schulkreis_trend
    • First observedzh_edu_sek1_profil
    • First observedzh_edu_staatsangehoerigkeiten
    • First observedzh_edu_wohnort_trend

TDQS

A4.3/5.0

Scored across 8 tools

Disambiguation5/5

Each tool targets a unique aspect of Zurich education data: listing districts, trends per district, canton-wide overview, Sek1 profiles, nationalities, maturity rates, residence trends, and secondary school statistics. The two trend tools are clearly differentiated by school location vs. residence.

Naming Consistency5/5

All tools consistently use the zh_edu_ prefix and snake_case, with descriptive names that reflect their purpose (e.g., list_schulgemeinden, maturitaetsquote). The mix of German and English terms is predictable and does not hinder usability.

Tool Count5/5

Eight tools is well within the ideal range for an education statistics server. Each tool covers a distinct facet without redundancy, making the set feel appropriately scoped.

Completeness4/5

The set covers listing, trends, profiles, demographics, and specific school types comprehensively. Minor gaps exist, such as a lack of tools for raw data export or per-school detailed statistics, but the core analytics needs are well met.

Maintenance

ActivityActive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers