Skip to main content
Glama

PrimAI: Swiss health insurance (Krankenkasse)

Compare premiums for a household

compare_household
Read-onlyIdempotent

Compare 2027 basic-insurance list premiums for a household (Familie, Haushalt) of up to 10 people at one postcode. For each insurer that covers everyone it adds up each member's cheapest tariff (in the chosen model, or any model), sorted by monthly total. Also returns the cheapest split (each person at the insurer that is cheapest for them: allowed in basic insurance).

Children are counted in the order given: the 1st and 2nd child pay the full child premium, from the 3rd child the BAG sibling discount applies. Each member: birth_year (or age), optional franchise (adults default 2500, children 0) and accident (default true). Source: BAG Prämien 2027. REST: POST JSON body; GET also works with members="1988:2500:1,2019:0:1" (birth_year:franchise:accident).

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>",
      "members": "<members>"
    },
    "name": "compare_household"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of insurers to return (default 10).
modelNoInsurance model (Versicherungsmodell): standard (freie Arztwahl), hausarzt (family doctor / GP), hmo (health centre), telmed (telephone first). Leave empty for all models.
membersYesHousehold members (1–10). Each: birth_year or age, optional franchise, accident, label.
postcodeYesSwiss postcode of the place of residence (Postleitzahl, PLZ), 4 digits, e.g. "8001". Not a P.O. box postcode.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent safety, but the description goes well beyond: how children are ordered and when the BAG sibling discount applies, the default franchise per member type, the source dataset, the 'any model' fallback, and the ambiguity error. It also discloses the actual transport (POST JSON, or GET with a compact members string).

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?

Front-loaded with the core action and result shape, then a short rules paragraph and a transport line. Dense but every sentence carries information; the source note is brief. Slight redundancy between 'in the chosen model, or any model' and the results summary, but nothing wasteful.

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, the description must explain return values, and it does: per-insurer totals sorted by monthly total plus the cheapest split. Combined with the error case, discount rules, and transport, an agent has everything needed to call and interpret this correctly.

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 still adds meaning: the compact GET encoding 'birth_year:franchise:accident', the statement that birth_year is preferred and one of birth_year/age is required, and the note that franchise defaults are age-dependent. This is real value beyond the field descriptions.

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?

Opens with a specific verb+resource+scope: comparing 2027 basic-insurance list premiums for a household of up to 10 people at one postcode. The added detail that it sums each member's cheapest tariff and also returns the cheapest split makes the output distinct from a plain per-person premium lookup named in the sibling list.

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?

The household framing plus the 10-member cap and 'at one postcode' implicitly route the agent away from single-person comparisons and toward this tool for family queries. It also states the ambiguous_postcode recovery path with municipality. It does not explicitly name which sibling to use for a single person, so it stops short of the top score.

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