Skip to main content
Glama
malkreide

swiss-statistics-mcp

by malkreide

bfs_price_index

Read-onlyIdempotent

Retrieve Swiss construction price index series or residential property price index source links from the Federal Statistical Office, filtered by an optional starting year.

Instructions

Swiss price indices not carried by STAT-TAB: Baupreisindex & IMPI.

  • baupreisindex: the construction price index — returns the national semi-annual index series (Schweiz, Baugewerbe Total), parsed from the BFS DAM XLSX selected via opendata.swiss (CKAN) metadata.

  • impi: the residential property price index — BFS publishes this only as PDF/HTML, so this returns the official source links plus an explicit limitation rather than parsed values.

Data flows through opendata.swiss (CKAN), which rejects default User-Agents with HTTP 403; a custom User-Agent is always sent. Results are cached for 24h.

Args: params (PriceIndexInput): - index (str): 'baupreisindex' or 'impi' - since_year (int | None): optional earliest year to include

Returns: PriceIndexResult with series (baupreisindex) or source_links (impi). On error, error/hint are set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNo
hintNo
noteNo
errorNo
indexNo
titleNo
seriesNo
sourceNoBundesamt für Statistik (BFS) — Preisindizes via opendata.swiss (CKAN) und BFS DAM-Asset-API. Open Government Data, freie Weiterverwendung.
datasetNo
coverageNo
provenanceNo
source_linksNo
Behavior5/5

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

Annotations already declare the tool read-only, idempotent, and non-destructive. The description adds substantial context: data flows via opendata.swiss (CKAN), default user agents are rejected (403) requiring a custom UA, results are cached 24h, and IMPI returns only source links due to publication format. It also notes error handling, exceeding the annotation coverage.

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 with a short intro, bullet points for each index, a note on data flow, and clear Args/Returns sections. Every sentence provides distinct value, and the structure makes it easy to scan.

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 tool with one input object and an output schema, the description fully explains the two operational modes, return types, caching behavior, and error handling. Combined with the existing annotations and output schema, the description is 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?

The schema already provides descriptions for `index` and `since_year`, covering accepted values and meaning. The description's Args section largely repeats this information, adding little beyond the schema. Since schema coverage for the nested parameters is strong, 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 immediately identifies the tool's purpose: providing Swiss price indices (Baupreisindex and IMPI) not available in STAT-TAB. It clearly distinguishes between the two index variants and explains what each returns, setting it apart from sibling tools that handle tables, metadata, or other construction statistics.

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 states a clear scope ('not carried by STAT-TAB') and distinguishes between the two index modes, including the IMPI limitation (PDF/HTML only). However, it does not explicitly mention alternatives or when not to use this tool, though the scope implies when it is appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/malkreide/swiss-statistics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server