swiss-efv-mcp
This server provides read-only access to Swiss federal finance (EFV) data through five MCP tools, enabling you to query fiscal time series, budget breakdowns, spending by institution, dimension discovery, and data health checks.
fiscal_headline: Retrieve revenue, expenditure, balance, and debt ratios from 1990β2029 (actuals and projections clearly flagged) for various government households (
bund,ktn,gdn,staat,sv) and models (fs/gfs).fiscal_budget_breakdown: Drill down into the federal budget by topic (spending by task area, spending by type, revenues, balance sheet) and hierarchical level (up to 8) for a given year, with optional path filtering.
fiscal_by_institution: Analyze spending by department or administrative unit since 2007, filtering by variables like personnel costs, IT, consulting, and full-time equivalents.
fiscal_list_dimensions: Discover all valid dimension values (variables, households, models, topics, departments) to build precise queries for other toolsβrecommended as a first call.
fiscal_status: Check cache freshness and upstream health per dataset; never returns empty silently. A legacy alias (
dump_status) is also available.
All tools are read-only (HTTP GET only), require no authentication, and access public open-government data. Data is cached in-memory with a 24-hour TTL, stale-serve fallback, and exponential backoff. The server enforces an egress allow-list to specific EFV hosts, uses TLS, and supports both local (stdio) and cloud (SSE) transports.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@swiss-efv-mcpWhat is the projected federal debt ratio for 2029?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π¨π 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
MCP server for Swiss federal finances (EFV): budget, debt, forecasts and spending by task and institution.
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_projectionso 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_statusnever 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
Prerequisites
Python 3.11+
Network access to
data.finance.admin.chandefv.admin.chβ no API key needed
Installation
uvx swiss-efv-mcp # zero-install run (once published to PyPI)
# or
pip install swiss-efv-mcpClaude 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_mcpConfiguration
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: |
|
| Bind host (SSE only). Loopback by default; set |
|
| Bind port (SSE only) |
|
| structlog level (JSON to stderr) |
|
| SSE only: explicit allowed browser origins (default-deny; comma-separated or JSON) |
|
| Enable OpenTelemetry tracing (requires the |
Cloud (Render / Railway):
TRANSPORT=sse PORT=8000 swiss-efv-mcp # exposes /sseAvailable Tools
Tool | Purpose |
| Revenue / expenditure / balance / debt ratios over 1990β2029, per household and model; every point flags |
| Hierarchical federal budget by topic (Ausgaben nach Art / nach Aufgabengebiet, Einnahmen, Bilanz, β¦) |
| Spending per department / administrative unit since 2007 (Personalausgaben, Informatik, external services, FTE) |
| Discover valid parameter values β call this first to build correct arguments |
| Cache freshness and upstream health per dataset; never returns empty silently |
| Deprecated alias of |
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.csvArchitecture 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.csv157 MB,fir_art_funk.csv1.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_statusalways 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.tomlSafety & 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_HOSTSfrozenset +assert_host_allowed()is enforced before every request (HTTPS-only, two fixed EFV hosts). URLs are hardcoded constants; no user input builds a URL. Seedocs/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-Agentis injected because the endpoints403the default httpx/curl UA (see Known limitations) β do not remove it.Error masking.
mask_error_details=Trueplus 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, stringmax_length).Graceful degradation. Retry with exponential backoff (2/4/8 s); a stale cache is served over an empty response;
dump_statusalways returns a readable state and never a silent empty.Loopback + default-deny CORS. SSE binds to
HOST, default127.0.0.1; setHOST=0.0.0.0only inside a container (the providedDockerfiledoes). Browser origins must be listed explicitly viaEFV_MCP_CORS_ORIGINS.Audited. Reviewed against the portfolio MCP best-practice catalogue (44 applicable checks) β see
audits/andSECURITY.md. Accepted risks are documented as ADRs underdocs/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 ( |
| cleaned to |
"Forward-looking" is not one label: Bund uses "Budget/financial plans", | abstracted via |
Accounting-model break at 2022/2023 ("bis 2022" vs "ab 2023" topics) | series has a seam; a |
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 testsChangelog
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
Credits & Related Projects
Data: EidgenΓΆssische Finanzverwaltung EFV via opendata.swiss (OGD Schweiz, freely usable)
Companion:
swiss-snb-mcp(monetary policy) β the fiscal/monetary pairPortfolio 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 toolsdump_statusARead-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).
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| source | No | |
| healthy | Yes | |
| message | Yes | |
| datasets | Yes |
TDQS
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.
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.
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.
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.
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.
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_breakdownARead-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.
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| level | No | ||
| topic | No | Ausgaben nach Aufgabengebiet | |
| contains | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | No | |
| year | Yes | |
| items | Yes | |
| level | Yes | |
| topic | Yes | |
| source | No | |
| provenance | Yes | dump = freshly fetched CSV, cached = in-memory |
TDQS
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.
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.
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.
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.
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.
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_institutionARead-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.
| Name | Required | Description | Default |
|---|---|---|---|
| year_to | No | ||
| variable | No | Personalausgaben | |
| year_from | No | ||
| departement | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | No | guidance when the result is empty or has a caveat (ARCH-003) |
| points | Yes | |
| source | No | |
| provenance | Yes | dump = freshly fetched CSV, cached = in-memory |
| filter_variable | Yes | |
| filter_departement | Yes |
TDQS
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.
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.
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.
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.
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.
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_headlineARead-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.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | fs | |
| year_to | No | ||
| variable | Yes | ||
| household | No | bund | |
| year_from | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| note | No | guidance when the result is empty or has a caveat (ARCH-003) |
| unit | No | |
| model | Yes | fs (Finanzstatistik) | gfs (GFS-Modell) |
| points | Yes | |
| source | No | |
| variable | Yes | |
| household | Yes | hh: bund | ktn | gdn | staat | sv | bund_ktn_gdn |
| provenance | Yes | dump = freshly fetched CSV, cached = in-memory |
TDQS
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.
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.
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.
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.
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.
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_dimensionsARead-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.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| models | Yes | |
| source | No | |
| households | Yes | |
| provenance | Yes | dump = freshly fetched CSV, cached = in-memory |
| budget_topics | Yes | |
| headline_variables | Yes | |
| institution_variables | Yes | |
| institution_departments | Yes |
TDQS
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.
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.
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.
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.
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.
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_statusARead-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.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
| source | No | |
| healthy | Yes | |
| message | Yes | |
| datasets | Yes |
TDQS
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.
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.
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.
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.
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.
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.
6 tool updates
v0.3.1- First observed
dump_status - First observed
fiscal_budget_breakdown - First observed
fiscal_by_institution - First observed
fiscal_headline - First observed
fiscal_list_dimensions - First observed
fiscal_status
TDQS
Scored across 6 tools
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.
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.
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.
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
Related MCP Connectors
MCP server for Brazilian Federal Senate open data (legislative, administrative, e-Cidadania).
opendata.swiss MCP β Switzerland's federal open-data portal (CKAN catalogue).
Query your real net worth, spending, transactions, budgets and portfolio from any MCP client.
MCP server for nonprofit financials via ProPublica β IRS Form 990 data for 1.8M+ nonprofits.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn unofficial MCP server for accessing Swiss Federal Statistical Office (BFS) data.81MIT
- AlicenseAqualityAmaintenanceMCP server for Swiss federal legislation metadata via Fedlex, enabling search and retrieval of act details with ELI URIs, SR numbers, and multilingual support.3Apache 2.0
- FlicenseAqualityCmaintenanceMCP server for the Swiss federal tax calculator, providing income, wealth, inheritance, and corporate tax figures for all Swiss municipalities and tax years 2010-2026.132-
- AlicenseAqualityAmaintenanceMCP 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.12MIT