Skip to main content
Glama

swiss-living-index

Compare cantons

compare_cantons
Read-onlyIdempotent

Compare 2 to 4 Swiss cantons side by side across every metric of the index (income tax, rent, health premiums, unemployment, sunshine, safety, population and more), each with its value, unit, year and official source, and which canton does better. Use for «Zurich or Zug?» or «compare Geneva, Vaud and Basel». For one canton use get_canton; to rank all 26 use rank_by_metric; for rents alone rent_index.

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": {
      "cantons": "<cantons>"
    },
    "name": "compare_cantons"
  }
}

Input Schema

NameRequiredDescriptionDefault
cantonsYes2 to 4 canton abbreviations, e.g. ["ZH","ZG","GE"].

Output Schema

NameRequiredDescriptionDefault
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / cantons / description
      Added value: +"2 to 4 canton abbreviations, e.g. [\"ZH\",\"ZG\",\"GE\"]."
    • addedInput schema / properties / cantons / maxItems
      Added value: +4
    • addedInput schema / properties / cantons / minItems
      Added value: +2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "attribution": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds useful substance beyond that: results include value, unit, year, official source, and a 'which canton does better' verdict, which tells the agent what to expect qualitatively even though an output schema exists.

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?

Front-loaded with the core action and scope, then metric breadth, then usage routing. Every clause carries information (scope, output content, examples, alternatives) with no redundancy.

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 single-parameter, read-only comparison tool with an output schema, the description covers what is compared, the input constraints, and how to choose among siblings. Nothing needed to call it correctly is missing.

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 has 100% description coverage and already encodes minItems/maxItems 2–4 plus the abbreviation format with an example. The description restates '2 to 4 Swiss cantons' and the format, adding no meaning beyond the schema, so the baseline of 3 applies.

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?

States a specific verb (compare) and resource (Swiss cantons) with exact scope (2 to 4) and enumerates the metric domains covered. It also names the sibling tools it is not (get_canton, rank_by_metric, rent_index), so an agent can route correctly without opening any schema.

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?

Gives concrete trigger phrasings («Zurich or Zug?», «compare Geneva, Vaud and Basel») and explicit exclusions with the exact alternative for each case: one canton → get_canton, all 26 → rank_by_metric, rents alone → rent_index.

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