Skip to main content
Glama

bag_health_mcp__get_indicator_series

Read-onlyIdempotent

Query aggregated Swiss health indicators over time: retrieve national trends or cantonal series with Switzerland comparisons from Obsan, Versorgungsatlas or Sucht Schweiz datasets.

Instructions

Fetch one health indicator's time series from Obsan, the Versorgungsatlas or Sucht Schweiz (HBSC). Use an indicator_id from bag_health_mcp__search_health_indicators. Obsan publishes an indicator in several CUTS (national, by canton, by age class, by social position, as a distribution); this tool picks one, names it in 'variant' and lists the others in 'variants_available'. They are different measurements with different units, not interchangeable. Pass region='ZH' for the cantonal cut where the indicator has one. Versorgungsatlas returns a cantonal year/value series (26 cantons + a 'CH' total, 95% CIs, canton-vs-Switzerland ratio). IMPORTANT: AGGREGATED population statistics only — NOT individual advice, diagnosis or case assessment, no personal data. For 'suchtschweiz' (school-context prevention topics) the values are national HBSC survey aggregates by age/sex. <use_case>Get a national trend, or a cantonal series with a Switzerland comparison.</use_case><important_notes>Read 'variant' before reading the numbers: 'g'/'kg' are rates, 'gum' is a distribution in %. The HBSC youth series (source='suchtschweiz', ages 11-15) is national only — a canton request returns the national cut with a note, because HBSC is not cantonally representative. Some Obsan observations are pooled spans ('1998-02' = 1998–2002); those carry the full label in 'period' and its first year in 'year'. Where an indicator publishes no series, the call fails with that reason instead of returning an empty series.</important_notes>bag_health_mcp__get_indicator_series(source='obsan', indicator_id='obsan/lebenserwartung', region='ZH') -> ZH life expectancy from the 'kg' cut, with the source's own canton and category legends.

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": {
      "params": "<params>"
    },
    "name": "bag_health_mcp__get_indicator_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
noteNo
unitNo
titleYes
pointsNo
regionNo
sourceYes
variantNo
dimensionsNo
provenanceNo
region_noteNo
indicator_idYes
total_pointsNo
interpretationNo
values_availableNo
variants_availableNo
aggregate_statistics_noticeNoAggregierte Bevölkerungsstatistik (Prävalenzen/Kennzahlen nach Alter/Geschlecht/Region) — KEINE individuelle Beratung, Diagnose oder Fallbeurteilung, kein Personenbezug. Aggregated population statistics, not individual advice or diagnosis.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.4.1
    • changedOutput schema / $defs / IndicatorSeriesPoint / description
      Previous value: -"One observation. Dimension ids (sex/category) are passed through as the\nsource encodes them; see the series ``dimensions`` block for their meaning."New value: +"One observation. Dimension ids (sex/category/age/...) are passed through as\nthe source encodes them; see the series ``dimensions`` block for their meaning.\n\nEvery dimension the Obsan payloads carry gets its own field rather than one\nshared ``category_id``. They are not interchangeable and they co-occur: an\n``ag`` cut ships ``age_class`` *and* ``category_id`` in the same row, so\nfolding them together would silently drop one of the two axes and leave\nseveral rows per year that look like duplicates of each other."
    • addedOutput schema / $defs / IndicatorSeriesPoint / properties / age_class
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Age Class"
      +}
    • addedOutput schema / $defs / IndicatorSeriesPoint / properties / canton
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Canton"
      +}
    • addedOutput schema / $defs / IndicatorSeriesPoint / properties / canton_nr
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Canton Nr"
      +}
    • addedOutput schema / $defs / IndicatorSeriesPoint / properties / characteristic_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Characteristic Id"
      +}
    • addedOutput schema / $defs / IndicatorSeriesPoint / properties / group_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Group Id"
      +}
    • changedOutput schema / $defs / IndicatorSeriesPoint / properties / sample_size / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / $defs / IndicatorSeriesPoint / properties / segment_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Segment Id"
      +}
    • addedOutput schema / properties / variant
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Variant"
      +}
    • addedOutput schema / properties / variants_available
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "title": "Variants Available",
      +  "type": "array"
      +}
  2. First observedv0.2.3

TDQS

A4.8/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 beyond-annotation behavior: failure semantics ('the call fails with that reason instead of returning an empty series'), pooled-span handling ('1998-02' = 1998-2002 with first year in 'year'), unit semantics ('g'/'kg' rates vs 'gum' distribution %), and the region-fallback note.

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?

Dense but front-loaded: source/verb first, then variant semantics, then region behavior, then caveats and an example. Every sentence carries factual weight (units, pooling, failure mode), though the volume is near the upper bound for a single tool and could be trimmed slightly.

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?

Extremely complete for a read tool with an output schema: return values need not be explained, yet the description still covers units, variant selection, cantonal fallback, pooled periods, and explicit failure behavior. An agent has everything needed 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?

The schema descriptions already document region, source, year bounds and language, so that coverage carries much of the load. The description still adds genuine meaning for the key parameters: what 'variant' means (one of several non-interchangeable cuts, others listed in 'variants_available') and the region='ZH' cantonal behavior, plus unit interpretation the schema does not express.

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 and resource ('Fetch one health indicator's time series') and names the three concrete sources (Obsan, Versorgungsatlas, Sucht Schweiz/HBSC). It distinguishes itself from the sibling search_health_indicators by casting that tool as the id supplier, so an agent can tell the two apart without opening schemas.

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?

States the prerequisite ('Use an indicator_id from bag_health_mcp__search_health_indicators') and gives explicit when-to-use guidance via the use_case tag ('national trend, or a cantonal series with a Switzerland comparison'). It also states a when-not: HBSC is national-only, and a canton request silently returns the national cut, so the agent knows the comparison is unavailable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.