Skip to main content
Glama

PrimAI: Swiss health insurance (Krankenkasse)

Resolve a postcode to canton and premium region

resolve_region
Read-onlyIdempotent

Resolve a Swiss postcode (PLZ) to its canton, premium region (Prämienregion 0–3 as defined by the Federal Department of Home Affairs, SR 832.106) and municipalities (Gemeinden with BFS number). If ambiguous is true, the postcode covers municipalities in different premium regions and the premium depends on the municipality of residence: ask which one and pass it as municipality to the premium tools.

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": {
      "postcode": "<postcode>"
    },
    "name": "resolve_region"
  }
}

Input Schema

NameRequiredDescriptionDefault
postcodeYesSwiss postcode of the place of residence (Postleitzahl, PLZ), 4 digits, e.g. "8001". Not a P.O. box postcode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description still adds real value with no output schema present: it names the returned fields and explains the 'ambiguous' flag's meaning and the multi-municipality edge case. It does not cover invalid or unassigned postcodes, which keeps it from a 5.

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?

Two sentences, purpose front-loaded, followed immediately by the only non-obvious case (ambiguity) and its resolution path. No filler and no restatement of the title or schema.

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 lookup with no output schema, the description supplies the return fields, the regulatory basis for the region value, and the branching behavior for ambiguous postcodes. An agent has everything needed to call it and act on the result.

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 coverage is 100% and the single parameter is fully documented there, including the 4-digit pattern and the P.O. box exclusion, so the description adds essentially no new parameter meaning. Baseline 3 applies; the mention of 'municipality' refers to a downstream tool's parameter, not this one's.

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 and resource (resolve a Swiss postcode/PLZ) plus the exact outputs: canton, premium region 0–3 per SR 832.106, and municipalities with BFS number. This makes it clearly distinguishable from the premium-comparison siblings, which consume rather than produce this mapping.

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?

Gives concrete downstream routing: when the result is ambiguous, ask which municipality and pass it as 'municipality' to the premium tools. It stops short of an explicit 'call this before get_premium/compare_premiums' instruction, but the sequencing is strongly implied by that handoff sentence.

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