Skip to main content
Glama

PrimAI: Swiss health insurance (Krankenkasse)

Compare basic-insurance premiums

compare_premiums
Read-onlyIdempotent

Compare the 2027 list premiums approved by the BAG (Federal Office of Public Health) of every Swiss health insurer for the compulsory basic insurance (Grundversicherung / obligatorische Krankenpflegeversicherung, KVG) for one person. Returns one offer per insurer and model (its cheapest tariff), sorted by monthly premium (no paid placement), with the yearly premium. Give current_insurer (and ideally current_model or current_premium) to get the saving per offer.

Use it when someone asks "which health insurance is cheapest in 8004", "what would I pay with Hausarztmodell and Franchise 2500", "how much can I save if I leave CSS". Needs: postcode and birth_year (or age). Optional: franchise (default adults 2500), model, accident (default true), municipality (only if the postcode spans several premium regions).

Every insurer listed offers basic insurance in that premium region and must accept anyone living there, without reservations or waiting period, whatever their age or health (BAG); do not suggest that an insurer might refuse someone for basic insurance. Supplementary insurance is different: there the insurer may refuse or add reservations after health questions.

Data: BAG approved list premiums 2027 (opendata.swiss). Always name the source and say these are list premiums, not an offer. Basic insurance covers the same benefits everywhere; supplementary insurance is separate. No personal data is needed or stored.

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": "compare_premiums"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoAge reached in the premium year 2027 (Alter im Prämienjahr). Use birth_year when known; one of the two is required.
limitNoNumber of offers to return (1–100, default 10). total_offers tells how many exist.
modelNoInsurance model (Versicherungsmodell): standard (freie Arztwahl), hausarzt (family doctor / GP), hmo (health centre), telmed (telephone first). Leave empty for all models.
accidentNoInclude accident cover (Unfalldeckung). Default true. Set false only if the person works at least 8 hours a week for one employer and is accident-insured there (UVG).
postcodeYesSwiss postcode of the place of residence (Postleitzahl, PLZ), 4 digits, e.g. "8001". Not a P.O. box postcode.
franchiseNoAnnual deductible in CHF (Franchise). Adults and young adults: 300, 500, 1000, 1500, 2000, 2500. Children: 0, 100, 200, 300, 400, 500, 600. Default: 2500 for adults, 0 for children (said in notes).
birth_yearNoYear of birth (Jahrgang). Preferred over age: the BAG uses the age reached in 2027 (2027 minus birth year). Children 0–18, young adults 19–25, adults 26+.
municipalityNoMunicipality of residence (Wohngemeinde) or its BFS number. Only needed when a postcode spans several premium regions: the tool then answers with error "ambiguous_postcode" and the list of municipalities to choose from.
current_modelNoModel of the current policy. Default: model, else standard.
current_insurerNoCurrent insurer (heutige Krankenkasse), to compute the saving per offer.
current_premiumNoCurrent monthly premium in CHF from the policy (heutige Monatsprämie). Overrides the computed current premium.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/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, and the description adds real context: the data source (BAG 2027 opendata.swiss), no paid placement in ordering, an error code for ambiguous postcodes, and the legal fact that listed insurers must accept any resident. It also pre-empts a wrong inference about insurer refusal, though it does not state pagination/response-field mechanics beyond total_offers.

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

Conciseness4/5

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

Purpose and output shape are front-loaded, followed by usage triggers and input needs in a logical order. It runs long and includes presentation instructions and a supplementary-insurance disclaimer that are advisory rather than tool mechanics, but no sentence is pure padding.

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?

With no output schema and 11 parameters, the description still conveys the return shape (one cheapest tariff per insurer and model, sorted by monthly premium, yearly premium included) and the required/optional split. An agent has enough to call it correctly and interpret the result.

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?

Schema coverage is already 100%, so the baseline is 3; the description earns above that by explaining the birth_year versus age choice, the franchise default for adults versus children, and the purpose of current_insurer/current_model/current_premium (saving per offer). The remaining fields (limit, accident) are explained only in the schema.

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 (2027 BAG-approved list premiums for compulsory basic insurance) and pins the scope to one person with one offer per insurer/model, the cheapest tariff. That output shape distinguishes it clearly from a single-premium lookup such as get_premium without needing to name siblings.

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 three concrete trigger questions ("which health insurance is cheapest in 8004", Hausarztmodell + Franchise 2500, savings when leaving CSS), then an explicit split of required inputs (postcode plus birth_year or age) versus optional ones with their defaults. It also names the fallback path (municipality only when the postcode is ambiguous and triggers ambiguous_postcode).

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