Skip to main content
Glama
malkreide

swiss-efv-mcp

by malkreide

πŸ‡¨πŸ‡­ Part of the Swiss Public Data MCP Portfolio β€” open-source MCP servers connecting AI agents to Swiss public and open data. This is a private project. It is independent of any employer or institutional affiliation.

πŸ›οΈ swiss-efv-mcp

Version CI License: MIT Python 3.11+ MCP Auth: none Portfolio

MCP server for Swiss federal finances (EFV): budget, debt, forecasts and spending by task and institution.

πŸ‡©πŸ‡ͺ Deutsche Version

Overview

This server closes the fiscal gap in the portfolio's Economics & Finance cluster. swiss-snb-mcp already covers monetary policy; swiss-efv-mcp adds the state budget β€” federal revenue, expenditure, balance, debt ratios (with forecasts to 2029), a hierarchical budget drill-down, and spending by department. Data comes from the EidgenΓΆssische Finanzverwaltung (EFV) via opendata.swiss (OGD Schweiz).

Related MCP server: ch-eli-mcp

Features

  • Five read-only tools over the curated EFV FS/GFS dump files.

  • Headline series 1990–2029 per household (bund, ktn, gdn, staat, sv) and model (FS / GFS); every point carries is_projection so actuals and plan/forecast years are unambiguous.

  • Hierarchical federal-budget drill-down and spending by department / unit.

  • 24 h TTL in-memory cache with stale-serve fallback; retry with exponential backoff (2/4/8 s); dump_status never returns empty silently.

  • Dual transport: stdio (local) and SSE (cloud).

  • No authentication required β€” public open-government data (No-Auth-First).

🎯 Anchor Demo Query

"How has the federal balance developed since the SNB rate turnaround in 2022 β€” and which task areas absorbed the growth in spending?"

fiscal_headline(variable="saldo", household="bund", year_from=2021)
fiscal_budget_breakdown(topic="Ausgaben nach Aufgabengebiet", level=2)

Cross-read with swiss-snb-mcp, this connects the interest-rate cycle to the federal deficit β€” something neither server can answer alone.

Demo

Demo: Claude using fiscal_headline and fiscal_budget_breakdown

Prerequisites

  • Python 3.11+

  • uv / uvx (recommended) or pip

  • Network access to data.finance.admin.ch and efv.admin.ch β€” no API key needed

Installation

uvx swiss-efv-mcp            # zero-install run (once published to PyPI)
# or
pip install swiss-efv-mcp

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "swiss-efv": {
      "command": "uvx",
      "args": ["swiss-efv-mcp"]
    }
  }
}

Quickstart

# Run locally over stdio (default transport)
uvx swiss-efv-mcp

# From a checkout, without installing
PYTHONPATH=src python -m swiss_efv_mcp

Configuration

All configuration is loaded once into a typed Settings object (pydantic-settings). The legacy unprefixed names below keep working; the canonical names use the EFV_MCP_ prefix. Defaults are safe for local use.

Variable

Default

Purpose

TRANSPORT

stdio

Transport: stdio (Claude Desktop) or sse / streamable-http (cloud)

HOST

127.0.0.1

Bind host (SSE only). Loopback by default; set 0.0.0.0 only in a container

PORT

8000

Bind port (SSE only)

EFV_MCP_LOG_LEVEL

INFO

structlog level (JSON to stderr)

EFV_MCP_CORS_ORIGINS

[]

SSE only: explicit allowed browser origins (default-deny; comma-separated or JSON)

EFV_MCP_OTEL_ENABLED

false

Enable OpenTelemetry tracing (requires the otel extra); standard OTEL_* env vars configure export

Cloud (Render / Railway):

TRANSPORT=sse PORT=8000 swiss-efv-mcp   # exposes /sse

Available Tools

Tool

Purpose

fiscal_headline

Revenue / expenditure / balance / debt ratios over 1990–2029, per household and model; every point flags is_projection

fiscal_budget_breakdown

Hierarchical federal budget by topic (Ausgaben nach Art / nach Aufgabengebiet, Einnahmen, Bilanz, …)

fiscal_by_institution

Spending per department / administrative unit since 2007 (Personalausgaben, Informatik, external services, FTE)

fiscal_list_dimensions

Discover valid parameter values β€” call this first to build correct arguments

fiscal_status

Cache freshness and upstream health per dataset; never returns empty silently

dump_status

Deprecated alias of fiscal_status (kept for backward compatibility; removed in a future minor)

All tools are read-only: each is annotated readOnlyHint: true, destructiveHint: false, only issues HTTP GETs against the EFV dump files, and has no write, send, or filesystem capability.

MCP primitives. This server uses only the Tools primitive. The EFV data are sliced live from cached dumps with no stable resource hierarchy to expose as Resources, and there are no server-authored Prompts. The five tools are small and closely related, so they live in a single server.py rather than a tools/ package.

Architecture

                      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   Claude / Agent ──▢ β”‚  swiss-efv-mcp (FastMCP)      β”‚
                      β”‚  5 tools Β· Pydantic v2 env.   β”‚
                      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                      β”‚ fetch + retry + TTL cache
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β–Ό                                               β–Ό
   data.finance.admin.ch                          efv.admin.ch/dam
   fs_dashboard/main_extern.csv                   bundeshaushalt_de.csv
   (headline, 1990–2029)                          institutionen_de.csv

Architecture decision

This server uses Architecture C (Dump-first).

Rationale (verified live on 2026-07-24):

  • The EFV FS/GFS dashboard has no filtered query API; it serves static CSV dumps that its front-end filters in the browser.

  • Three curated files are small enough to fetch-and-cache whole (516 KB / 5 MB / 1 MB). They cover the headline aggregates, the hierarchical budget and the by-institution view β€” i.e. the answerable questions.

  • The full detail cubes (standardauswertung.csv 157 MB, fir_art_funk.csv 1.23 GB) are out of scope for v0.1.0; loading them per request is not viable. A future Phase 2 would pre-process them into SQLite/Parquet.

Consequences:

  • Files are cached in memory with a 24 h TTL; stale cache is preferred over an empty response when upstream is down.

  • Retry with exponential backoff on all HTTP; dump_status always returns a readable state.

Project Structure

swiss-efv-mcp/
β”œβ”€β”€ src/swiss_efv_mcp/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ __main__.py        # entry point; dual transport (stdio / SSE+CORS)
β”‚   β”œβ”€β”€ client.py          # dump-first data layer: egress allow-list, retry, UA, TTL cache
β”‚   β”œβ”€β”€ logging_config.py  # structlog JSON to stderr
β”‚   β”œβ”€β”€ models.py          # Pydantic v2 envelopes (source + provenance)
β”‚   β”œβ”€β”€ server.py          # 5 FastMCP tools (annotated) + testable *_impl functions
β”‚   └── settings.py        # typed pydantic-settings config
β”œβ”€β”€ tests/                 # respx mock tests + hardening tests + @pytest.mark.live
β”œβ”€β”€ docs/                  # network-egress.md + accepted-risk ADRs
β”œβ”€β”€ audits/                # MCP best-practice audit runs (findings, report, summary)
β”œβ”€β”€ README.md Β· README.de.md Β· CHANGELOG.md Β· SECURITY.md Β· CONTRIBUTING.md
β”œβ”€β”€ Dockerfile Β· server.json Β· LICENSE
└── pyproject.toml

Safety & Limits

  • Read-only. Every tool is annotated readOnlyHint: true, only issues HTTP GETs against the EFV dump files, and has no write, send, or filesystem capability.

  • Egress allow-list. An immutable ALLOWED_HOSTS frozenset + assert_host_allowed() is enforced before every request (HTTPS-only, two fixed EFV hosts). URLs are hardcoded constants; no user input builds a URL. See docs/network-egress.md.

  • TLS on. httpx certificate verification is on by default and never disabled.

  • No credentials. The endpoints are public OGD; no API keys or secrets are stored or forwarded. A browser User-Agent is injected because the endpoints 403 the default httpx/curl UA (see Known limitations) β€” do not remove it.

  • Error masking. mask_error_details=True plus client-side masking keep raw upstream/internal detail out of tool results; full detail goes only to the structlog stderr log.

  • Input bounds. Tool arguments carry explicit Pydantic constraints (year 1900–2100, level 1–8, string max_length).

  • Graceful degradation. Retry with exponential backoff (2/4/8 s); a stale cache is served over an empty response; dump_status always returns a readable state and never a silent empty.

  • Loopback + default-deny CORS. SSE binds to HOST, default 127.0.0.1; set HOST=0.0.0.0 only inside a container (the provided Dockerfile does). Browser origins must be listed explicitly via EFV_MCP_CORS_ORIGINS.

  • Audited. Reviewed against the portfolio MCP best-practice catalogue (44 applicable checks) β€” see audits/ and SECURITY.md. Accepted risks are documented as ADRs under docs/adr/.

  • Not authoritative. Figures are not official; consult the EFV originals for official use.

Known limitations

Live-probe findings (2026-07-24), also in CHANGELOG.md β†’ Known findings:

Finding

Impact

Endpoints return HTTP 403 without a browser User-Agent

UA is injected by the client; do not remove it

opendata.swiss "CSV" links for 2 datasets point to an HTML landing page

real files resolved to a DAM path (/dam/de/sd-web/{id}/…) whose opaque id may rotate on re-upload

NA appears as a literal string in hh/model/source

cleaned to None centrally

"Forward-looking" is not one label: Bund uses "Budget/financial plans", staat uses "Forecasts"

abstracted via is_projection

Accounting-model break at 2022/2023 ("bis 2022" vs "ab 2023" topics)

series has a seam; a note flags affected topics

Detail cubes (157 MB / 1.23 GB) not served

Phase 2; use the curated files for now

Project Phase

This server is in Phase 1 (read-only). Every tool only ever fetches the public EFV dump files β€” there are no write, send, or filesystem capabilities.

Phase

Scope

Status

1 β€” Read-only

Headline series, budget breakdown, spending by institution

βœ… current

2 β€” Detail cubes

Pre-process the 157 MB / 1.23 GB cubes to SQLite/Parquet

planned

3 β€” Multi-agent

(none planned)

β€”

A transition to a later phase would require a re-audit before any write-capable tool is added.

MCP Protocol Version

The protocol version is negotiated at the initialize handshake by FastMCP (pinned fastmcp>=3.4 in pyproject.toml), which builds on the mcp Python SDK. The baseline this server is built and audited against is 2025-11-25, pinned as MCP_PROTOCOL_VERSION in server.py; a regression test asserts the negotiated version still equals it, so a protocol-changing SDK bump fails CI loudly (ARCH-012). Dependencies are kept current via monthly Dependabot PRs (.github/dependabot.yml); protocol-relevant bumps are noted in CHANGELOG.md.

Testing

PYTHONPATH=src pytest tests/ -m "not live"   # offline, respx-mocked
PYTHONPATH=src pytest tests/ -m live         # hits the real EFV endpoints
PYTHONPATH=src ruff check src tests

Changelog

See CHANGELOG.md.

Contributing

Issues and pull requests are welcome. Please keep tools read-only, run ruff check and the offline test suite before submitting, and add a CHANGELOG.md entry under [Unreleased] for user-facing changes. See CONTRIBUTING.md.

Maintainers: see PUBLISHING.md for the step-by-step PyPI release process (Trusted Publishing via GitHub Release).

Security

See SECURITY.md for the security posture, hardening controls, and how to report a vulnerability.

License

MIT for this server β€” see LICENSE. The EFV data remain subject to the OGD Schweiz terms (freely usable, with attribution).

Author

Hayal Oezkan Β· github.com/malkreide

  • Data: EidgenΓΆssische Finanzverwaltung EFV via opendata.swiss (OGD Schweiz, freely usable)

  • Companion: swiss-snb-mcp (monetary policy) β€” the fiscal/monetary pair

  • Portfolio index: swiss-public-data-mcp

Disclaimer: private project, independent of any employer or institution. No warranty; figures are not authoritative β€” consult the EFV originals for official use.

Available Tools

6 tools
dump_statusA
Read-onlyIdempotent

DEPRECATED β€” use fiscal_status. Kept as an alias for backward compatibility; will be removed in a future minor release.

Reports cache freshness and upstream health per dataset (SEC-022: every tool now shares the fiscal_ server-identity namespace).

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
sourceNo
healthyYes
messageYes
datasetsYes

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already provide read-only, idempotent, and non-destructive hints. The description adds meaningful context beyond that: the deprecation timeline and the SEC-022 namespace rationale. It does not contradict annotations, and the extra context about the tool's future removal is 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 remarkably concise: two sentences, front-loaded with the deprecation warning, and every clause adds value. No filler or redundancy.

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 zero-parameter alias tool with an output schema and strong annotations, the description fully covers the essential context: what it does, why it exists, how it relates to the sibling, and what will happen to it. Nothing important is missing.

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 tool has zero parameters, so the schema is trivially complete. The description needn't document parameters. It adds no param info, but none is needed; baseline for 0 params is 4.

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 function: 'Reports cache freshness and upstream health per dataset.' It also distinguishes itself from siblings by explicitly naming the replacement (`fiscal_status`) and noting it is an alias, which removes any ambiguity about what this tool does.

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

Usage Guidelines5/5

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

Explicitly tells users not to use this tool in new code ('DEPRECATED β€” use `fiscal_status`'), explains its status as a backward-compatibility alias, and warns it will be removed. This is exactly the kind of when-to-use vs. when-not-to-use guidance expected.

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

fiscal_budget_breakdownA
Read-onlyIdempotent

Hierarchical federal-budget breakdown for one topic and year.

Use case: see where the money goes β€” e.g. "which task areas absorbed the spending growth?". topic e.g. 'Ausgaben nach Aufgabengebiet', 'Ausgaben nach Art', 'Einnahmen'. level is the hierarchy depth (1 = total, 2 = first breakdown …); 'contains' filters the path substring for drill-down. An empty result carries a note suggesting a different level or topic.

ParametersJSON Schema
NameRequiredDescriptionDefault
yearNo
levelNo
topicNoAusgaben nach Aufgabengebiet
containsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
noteNo
yearYes
itemsYes
levelYes
topicYes
sourceNo
provenanceYesdump = freshly fetched CSV, cached = in-memory

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description doesn't repeat those. It adds valuable behavioral details: level semantics (1=total, 2=first breakdown), contains as a path-substring filter, and the note returned for empty results. 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.

Conciseness5/5

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

The description is three sentences: purpose, use case, and parameter explanations. Every sentence adds value, and the structure is well front-loaded with the definition.

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?

With four optional parameters and an output schema, the description covers purpose, usage, parameter meanings, and an edge case (empty result note). The only minor gap is the meaning of year=null, but the schema default and overall context reduce the impact.

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?

Schema description coverage is 0%, but the description compensates by explaining topic with concrete examples, defining level as hierarchy depth, and clarifying contains as a drill-down filter. Year is only loosely implied, but the schema provides type and range, making it reasonably understandable.

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 'Hierarchical federal-budget breakdown for one topic and year,' which clearly states the resource and the specific operation. It also differentiates from siblings like fiscal_headline by emphasizing drill-down and filtering via level and contains.

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?

It provides a concrete use case ('see where the money goes') with an example question, and explains when hierarchy parameters are useful. It does not explicitly list alternatives or exclusions, but the context is clear enough for an agent to select this over fiscal_headline or fiscal_by_institution.

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

fiscal_by_institutionA
Read-onlyIdempotent

Federal spending by department / administrative unit since 2007.

Use case: compare personnel, IT or external-services spending across departments β€” e.g. "IT spending of the Finanzdepartement since 2010?". variable one of: 'Personalausgaben', 'Informatik', 'Beratung und externe Dienstleistungen', 'Anzahl Vollzeitstellen'. An empty result carries a note with guidance.

ParametersJSON Schema
NameRequiredDescriptionDefault
year_toNo
variableNoPersonalausgaben
year_fromNo
departementNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
noteNoguidance when the result is empty or has a caveat (ARCH-003)
pointsYes
sourceNo
provenanceYesdump = freshly fetched CSV, cached = in-memory
filter_variableYes
filter_departementYes

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive. Description adds data availability 'since 2007', allowed variable values, and a note about empty results, which are useful behavioral details.

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?

Four sentences, no fluff. Front-loaded with core purpose, followed by example, allowed values, and edge-case note.

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?

Output schema exists, annotations cover safety. The description covers purpose, usage, data range, variable options, and empty-result behavior. It could mention how to discover department names, but sibling fiscal_list_dimensions likely fills that gap.

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?

Schema coverage is 0%, so description must compensate. It explicitly lists the allowed values for variable, and the example hints at year/department usage. However, it does not explain year_from/year_to defaults or department name format, leaving some ambiguity.

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?

Clearly states it returns federal spending by department/administrative unit, and provides a concrete use case. Distinguishes from siblings by emphasizing institution-level filtering.

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?

Explicitly gives a use case ('compare personnel, IT or external-services spending across departments') with an example. Does not name alternative tools, so not a 5, but the guidance is clear.

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

fiscal_headlineA
Read-onlyIdempotent

Headline fiscal time series: revenue, expenditure, balance and debt ratios over 1990–2029 (actuals plus budget/forecast years).

Use case: track how a federal aggregate evolved over time β€” e.g. "how did the Bund balance develop since the 2022 rate turnaround?". variable e.g. 'saldo', 'einnahmen', 'ausgaben', 'bruttoschuldenquote'. household: bund|ktn|gdn|staat|sv. model: fs|gfs. Every point flags is_projection. Call fiscal_list_dimensions first to discover valid values; an empty result carries a note with guidance.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNofs
year_toNo
variableYes
householdNobund
year_fromNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
noteNoguidance when the result is empty or has a caveat (ARCH-003)
unitNo
modelYesfs (Finanzstatistik) | gfs (GFS-Modell)
pointsYes
sourceNo
variableYes
householdYeshh: bund | ktn | gdn | staat | sv | bund_ktn_gdn
provenanceYesdump = freshly fetched CSV, cached = in-memory

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the tool read-only and idempotent, so the description adds value by explaining actuals vs. forecast years, the is_projection flag, and the empty-result note behavior. This goes beyond the structured hints and does not contradict them.

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 compact and logically structured: purpose, use case, parameter examples, and usage guidance. Each sentence contributes, though the dense multi-subject sentences could be slightly more scannable.

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 tool with good annotations and an output schema, the description covers the core purpose, usage context, key parameters, and a notable output flag. It does not mention year range defaults or detailed variable semantics, but overall is sufficiently complete for an agent to select and invoke the tool 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?

Schema has 0% parameter description coverage, so the description must compensate. It provides example values for variable (saldo, einnahmen), household (bund, ktn), and model (fs, gfs), but does not explain the meaning of year_from/year_to or what fs/gfs represent. Partial compensation only.

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

Purpose4/5

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

The description clearly identifies the tool as a 'headline fiscal time series' covering revenue, expenditure, balance, and debt ratios over a specific period. It distinguishes itself from siblings like fiscal_by_institution and fiscal_budget_breakdown by focusing on aggregate evolution, but lacks a direct action verb in the opening phrase.

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?

Provides a concrete use case ('track how a federal aggregate evolved over time') and explicitly directs users to call fiscal_list_dimensions first for valid values, which is helpful alternative guidance. Does not explicitly state when not to use this tool versus siblings, but the context implies appropriate usage.

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

fiscal_list_dimensionsA
Read-onlyIdempotent

List the valid dimension values across all datasets (variables, households, models, budget topics, departments).

Use case: call this first to build correct parameters for the other tools β€” it turns free-text guesses into exact filter values. Loads all three dumps, so it may take a moment on a cold cache.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
modelsYes
sourceNo
householdsYes
provenanceYesdump = freshly fetched CSV, cached = in-memory
budget_topicsYes
headline_variablesYes
institution_variablesYes
institution_departmentsYes

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover read-only and idempotent behavior, so the description adds value by disclosing the performance characteristic ('may take a moment on a cold cache') and the scope of data loaded ('all three dumps'). It also clarifies the tool's role in converting free-text to exact filter values, which is non-obvious behavior.

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?

Two sentences: the first states the exact purpose, the second provides a use case and a performance caveat. Every word earns its place; no 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?

Given the tool's simplicity (no params, output schema exists), the description fully covers what it does, when to use it, and what to expect. The performance note addresses a key operational concern. No gaps remain.

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 tool has zero parameters and an empty input schema, so the description need not explain individual params. The baseline for 0 params is 4, and the description doesn't contradict or omit anything; it implicitly indicates no input is required.

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 valid dimension values across datasets, naming specific categories (variables, households, models, budget topics, departments). This is a specific verb+resource and clearly distinguishes it from sibling tools that focus on headline figures, breakdowns, status, etc.

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

Usage Guidelines5/5

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

Explicitly says 'call this first to build correct parameters for the other tools' and explains it turns free-text guesses into exact filter values. This gives precise when-to-use guidance and implies it should precede other tools, effectively differentiating from alternatives.

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

fiscal_statusA
Read-onlyIdempotent

Report cache freshness and upstream health per dataset.

Use case: check whether the data is fresh, cached or degraded before trusting a figure β€” the health endpoint of this server. Never returns empty silently; used for graceful degradation.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
sourceNo
healthyYes
messageYes
datasetsYes

TDQS

A4.7/5.0
Behavior4/5

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

While annotations already cover read-only, idempotent, and non-destructive behavior, the description adds a meaningful behavioral guarantee: 'Never returns empty silently.' This is useful context beyond the annotations, although it doesn't discuss other potential behaviors like latency or error semantics.

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 compact yet information-rich, with two focused paragraphs. The first sentence states the core purpose, the following sentences provide usage context and a key behavioral trait. No filler or repetition of schema/annotation information.

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 parameterless health-check tool with a rich output schema and strong annotations, the description provides all necessary context: what it does, when to use it, and one critical behavioral guarantee. The output schema presumably covers return values, so the description needn't repeat them.

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 tool takes zero parameters, so there are no parameter semantics to explain. The schema coverage is 100% (empty schema), and the description appropriately focuses on behavior rather than inventing unnecessary parameter details. Baseline 4 is appropriate for parameterless tools.

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 begins with a specific verb ('Report') and a clear resource ('cache freshness and upstream health per dataset'), which precisely distinguishes it from data-query sibling tools like fiscal_headline or fiscal_budget_breakdown. It also labels itself as 'the health endpoint of this server,' reinforcing its distinct purpose.

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

Usage Guidelines5/5

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

It states an explicit use case: 'check whether the data is fresh, cached or degraded before trusting a figure.' It also frames itself as the health endpoint, implying it should be used for status checks rather than data retrieval, and notes its role in graceful degradation.

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. 6 tool updatesv0.3.1
    • First observeddump_status
    • First observedfiscal_budget_breakdown
    • First observedfiscal_by_institution
    • First observedfiscal_headline
    • First observedfiscal_list_dimensions
    • First observedfiscal_status

TDQS

A4.2/5.0

Scored across 6 tools

Disambiguation4/5

The active fiscal_* tools have clearly distinct purposes: headline time series, budget breakdowns, institutional spending, dimension discovery, and status reporting. However, `dump_status` is a deprecated alias for `fiscal_status`, which could cause confusion if not noticed, and `fiscal_headline` vs `fiscal_budget_breakdown` might occasionally overlap for users seeking spending data.

Naming Consistency4/5

All active tools follow the consistent `fiscal_` prefix followed by a descriptive noun, e.g., `fiscal_headline`, `fiscal_budget_breakdown`. The only deviation is the deprecated `dump_status`, which breaks the pattern and is explicitly noted as an alias for backward compatibility.

Tool Count5/5

Six tools is a well-scoped number for a fiscal data server. Each tool serves a distinct retrieval or operational function, and the deprecated alias is the only slight redundancy but does not weigh down the count.

Completeness4/5

The tool set covers the main needs for exploring Swiss fiscal data: aggregate trends, budget breakdowns, departmental spending, dimension validation, and data freshness. Minor gaps exist, such as no direct comparative tool across multiple variables or a search-by-keyword function, but the core use cases are well covered.

Maintenance

ActivityActive
ResponsivenessResponsive

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    C
    maintenance
    MCP server for the Swiss federal tax calculator, providing income, wealth, inheritance, and corporate tax figures for all Swiss municipalities and tax years 2010-2026.
    13
    2
    -
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for Swiss electricity data from three official sources β€” production mix, consumption forecast, storage-lake fill, consumer price index, tariffs per municipality, and dataset discovery. Zero authentication.
    12
    MIT