Skip to main content
Glama

swiss-living-index

Canton profile

get_canton
Read-onlyIdempotent

Get all metric values for one canton. canton = 2-letter abbreviation (e.g. ZH, GE, TI). rank 1 = lowest value for cost metrics (dir 'low', e.g. taxes/rent) and highest value for capacity/benefit metrics (dir 'high', e.g. sunshine/jobs). Ranks describe order under the stated scenario, not universal suitability. Also returns the canton pages (DE FR IT EN), its flag, the cantonal government (members, departments, president) and chancellery contacts checked weekly against the official canton website, immigration and emigration by nationality (arrivals, departures, balance, trend), naturalisations by former nationality and world region with the rate per 1,000 foreign residents, and every commune of the canton with population, tax at CHF 100,000, Swiss rank and page. 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), plus traditional specialities of the canton. Also its official social media accounts (as linked from the canton's website; if none, the Federal Council's, see social_media.level).

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": {
      "canton": "<canton>"
    },
    "name": "get_canton"
  }
}

Input Schema

NameRequiredDescriptionDefault
cantonYesCanton as 2-letter abbreviation, e.g. "ZH", "GE", "TI".
communesNotrue to list every commune of the canton (population, tax on CHF 100,000, page); default the 10 largest.

Output Schema

NameRequiredDescriptionDefault
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / canton / description
      Added value: +"Canton as 2-letter abbreviation, e.g. \"ZH\", \"GE\", \"TI\"."
    • addedInput schema / properties / communes
      Added value: +{
      +  "description": "true to list every commune of the canton (population, tax on CHF 100,000, page); default the 10 largest.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "attribution": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior. The description adds substantial behavioral context beyond annotations: rank-order caveats, weekly checks against official canton websites, social-media fallback behavior, and the breadth of returned data.

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 core action is front-loaded in the first sentence, and the remaining sentences earn their place by clarifying rank interpretation, data sources, and scope. The dense enumeration is justified for a complex profile tool, and no sentence is wasted.

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 complexity, the rich annotations, and the existing output schema, the description provides complete context for correct invocation. It covers rank interpretation, data freshness, social-media fallback, and the range of returned canton details without contradicting structured fields.

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 description coverage is 100%, so the schema already documents both parameters. The description restates the canton abbreviation format and explains rank semantics, but it does not add meaning for the communes boolean or its default 10-largest behavior beyond what the schema says.

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 opens with a specific verb and resource: 'Get all metric values for one canton.' It clearly scopes the tool to a single canton profile, which implicitly distinguishes it from comparison siblings like compare_cantons, but it never explicitly names or contrasts those alternatives.

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

Usage Guidelines3/5

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

Usage is implied by the opening sentence and by the rank-interpretation caveat, but the description does not explicitly say when to choose this tool over compare_cantons, get_commune, or rank_by_metric. It provides interpretive guidance for ranks rather than selection guidance.

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