Skip to main content
Glama
malkreide

swiss-statistics-mcp

by malkreide

bfs_construction_activity

Read-onlyIdempotent

Retrieve official yearly Swiss construction statistics for a commune, including new buildings, new dwellings, and room-size breakdowns, from 2015 onward using a BFS municipality number.

Instructions

Yearly new buildings and new dwellings for a commune, with room-size mix.

Returns the consolidated official annual construction statistics (BFS STAT-TAB theme 09) for one commune: newly built buildings with dwellings (px-x-0904030000_106) and newly built dwellings broken down by number of rooms (px-x-0904030000_105), as a per-year series from since_year.

Note: this is the consolidated official yearly statistic. For up-to-date building-register states and the construction pipeline (Baugesuche / Bauvorhaben), see the swiss-housing-mcp server — the overlap is deliberate so the two sources can be cross-validated.

Args: params (ConstructionActivityInput): - municipality_bfs (int): BFS commune number, e.g. 261 (Zürich) - since_year (int): earliest year, inclusive (default 2015)

Returns: ConstructionActivityResult with a years series (new_buildings, new_dwellings, dwellings_by_rooms). On error, error/hint are set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hintNo
noteNo
errorNo
yearsNo
sourceNoBundesamt für Statistik (BFS), STAT-TAB — https://www.pxweb.bfs.admin.ch. Open Government Data, freie Weiterverwendung.
table_idsNo
provenanceNo
since_yearNo
cross_validationNo
municipality_bfsNo
municipality_nameNo
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior. The description adds valuable context beyond annotations: it returns a per-year series with specific fields, is based on official consolidated data, and sets error/hint fields on failure.

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-structured: a one-line purpose, a clarifying note about alternatives, an Args section, and a Returns section. Every sentence adds value, and it is appropriately sized for the tool's complexity.

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 rich annotations and output schema, the description is complete: it explains the temporal scope, the one-commune focus, the relationship to an overlapping source, and the expected result shape. Error handling is also disclosed.

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 includes detailed nested descriptions, the context signal reports 0% top-level schema description coverage. The description compensates with explicit Args bullets for municipality_bfs (including an example) and since_year (inclusive, default 2015), giving agents enough semantic grounding.

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 precise verb+resource statement: 'Yearly new buildings and new dwellings for a commune, with room-size mix.' It names the exact BFS data cubes and clarifies that this is the consolidated official yearly statistic, distinguishing it from related construction and pipeline tools.

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?

The description explicitly states when to use this tool: 'this is the *consolidated official yearly* statistic.' It also gives a clear when-not and alternative: 'For up-to-date building-register states and the construction pipeline (Baugesuche / Bauvorhaben), see the swiss-housing-mcp server.'

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