Skip to main content
Glama

PrimAI: Swiss health insurance (Krankenkasse)

Which deductible pays off

franchise_check
Read-onlyIdempotent

Find the deductible (Franchise) with the lowest total yearly cost for expected health costs: for every legal level it adds 12 monthly premiums (real BAG 2027 premiums of one reference tariff), the deductible and the 10 % co-payment (Selbstbehalt, max CHF 700 adults / 350 children), and returns the best level, the saving against the lowest franchise and the cost ranges in which each level is cheapest (break-even points).

Needs birth_year (or age) and expected_costs (yearly costs covered by basic insurance: doctor, hospital, medicines). With postcode it uses real premiums (reference: cheapest standard-model tariff, or the given insurer/model); without postcode it returns the rule of thumb and the rules only. Hospital daily contribution (CHF 15/day for adults) is not included.

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": {
      "expected_costs": "<expected_costs>"
    },
    "name": "franchise_check"
  }
}

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.
modelNoInsurance model (Versicherungsmodell): standard (freie Arztwahl), hausarzt (family doctor / GP), hmo (health centre), telmed (telephone first). Leave empty for all models.
insurerNoOptional insurer for the reference tariff.
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).
postcodeNoSwiss postcode of the place of residence (Postleitzahl, PLZ), 4 digits, e.g. "8001". Not a P.O. box postcode.
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.
expected_costsYesExpected yearly health costs in CHF covered by basic insurance (doctor, hospital, medicines), before deductible.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior beyond that: the exact cost formula, the co-payment cap, the reference tariff used in the premium figure, the fallback when postcode is omitted, and an explicit exclusion (CHF 15/day hospital contribution not included). This is the kind of caveat an agent needs to present results honestly.

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?

Two paragraphs, front-loaded with purpose and result shape, followed by requirements and caveats. Dense but nearly every clause carries information; the premium-formula sentence is long but justified by the domain.

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 an 8-parameter analytical tool with no output schema, the description names the returned fields (best level, saving, break-even ranges) and discloses inputs, fallbacks and exclusions. An agent could call it correctly and explain the answer without further context.

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 100%, so the schema already documents all eight parameters; baseline would be 3. The description still adds routing meaning beyond the schema by tying postcode to premium precision and municipality to the ambiguity resolution, and by stating birth_year/age is mandatory with expected_costs.

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?

States a precise verb+resource ('find the deductible with the lowest total yearly cost') plus the exact computation performed (12 monthly premiums + deductible + 10% co-payment capped at CHF 700/350) and what is returned. An agent can tell this is an optimization/break-even tool rather than a lookup. It does not explicitly contrast itself with siblings like compare_premiums or get_premium, which keeps it from a 5.

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 preconditions (needs birth_year or age plus expected_costs) and a clear conditional: with postcode you get real premiums for a reference tariff, without postcode you get only the rule of thumb and rules. It also flags an error path ('ambiguous_postcode'). No explicit when-not-to-use or named alternative, so not a 5.

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