Skip to main content
Glama

swiss-living-index

Commune fact sheet

get_commune
Read-onlyIdempotent

Fact sheet for one Swiss commune (by name, BFS number or postcode); for communes with a one-pager also the president, council, administration contacts, departments, upcoming meetings, news, tenders and projects read from the commune website (with source and date): population, foreign residents, migration, jobs, new dwellings, gigabit and fibre coverage, public-transport accessibility, solar power, EV share, cars, cross-border commuters, commune finances, its canton context (tax, rent, premium ranks), live income tax for a reference profile (official ESTV), and the national fuel reference; its official social media accounts (as linked from the commune website; if none, the canton's, then the Federal Council's, see social_media.level). Includes highlights: protected AOP/IGP specialities of the area, UNESCO World Heritage, parks, cultural property of national importance and «Home of» brands (registered seat from the commercial register).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "commune": "<commune>"
    },
    "name": "get_commune"
  }
}

Input Schema

NameRequiredDescriptionDefault
communeYesSwiss commune: official name, BFS number or 4-digit postcode, e.g. "Winterthur", "230" or "8400". «8001 Zürich» and «Basel (BS)» also work.

Output Schema

NameRequiredDescriptionDefault
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / commune / description
      Added value: +"Swiss commune: official name, BFS number or 4-digit postcode, e.g. \"Winterthur\", \"230\" or \"8400\". «8001 Zürich» and «Basel (BS)» also work."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "attribution": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: data is read from the commune website with source and date, deeper data is conditional on a one-pager existing, and social media fallback follows a specific hierarchy via social_media.level. It also clarifies that highlights and contextual indicators are included, which is valuable behavioral context for an open-world read tool.

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

Conciseness2/5

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

The purpose is front-loaded, but the description becomes a very long, semicolon-heavy run-on enumerating nearly every field and sub-source. While the content is relevant, the lack of structure and extreme density make it harder to scan than necessary.

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 that the tool has an output schema, the description does not need to explain return formatting. It provides comprehensive context on data coverage, conditional one-pager behavior, source/date provenance, social media fallback logic, and highlights, which is complete for an agent deciding whether and how to call it.

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 already has 100% description coverage for the single commune parameter, including examples. The description reinforces that name, BFS number, or postcode are accepted but adds little beyond what the schema already states, so baseline 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 states a specific resource and scope: a fact sheet for one Swiss commune identified by name, BFS number, or postcode. It enumerates the included data categories in detail, making the tool clearly distinguishable from broader search or canton-level siblings.

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 usage context is clear: retrieve a comprehensive fact sheet for a single commune. However, it does not explicitly tell the agent when to prefer this over siblings such as search_commune or get_canton, nor does it state any exclusions or prerequisites.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources