Skip to main content
Glama

Sweden Latest Figure

sweden_latest_figure
Read-onlyIdempotent

A Swedish headline statistic as a NUMBER, for the latest month or for a month you name, "what is inflation in Sweden", "Swedish CPI in June 2026". One call, "what is inflation in Sweden", "Swedish CPI right now". Returns the figure, its unit, the exact month it refers to, and the SCB table it came from. Use this when the question asks for a number; use scb_se_subjects only when the question asks what statistics exist. Covers Swedish consumer prices today: inflation (CPI annual change) and the CPI index level.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "indicator": "inflation"
    },
    "name": "sweden_latest_figure"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoOptional month, as "2026M06" or "2026-06" or "June 2026". Omit for the most recent published month. If the month you name has not been published yet, the response says so and names the latest month that has.
indicatorYesWhich figure: "inflation" for the CPI annual change in percent, or "cpi" for the CPI index level (2020=100). Common phrasings are understood, "inflation rate", "consumer prices", "kpi".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / indicator / description
      Previous value: -"Which figure: \"inflation\" for the CPI annual change in percent, or \"cpi\" for the CPI index level (2020=100). Common phrasings are understood — \"inflation rate\", \"consumer prices\", \"kpi\"."New value: +"Which figure: \"inflation\" for the CPI annual change in percent, or \"cpi\" for the CPI index level (2020=100). Common phrasings are understood, \"inflation rate\", \"consumer prices\", \"kpi\"."
  2. Changed2 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "indicator": "inflation"
      -  },
      -  {
      -    "indicator": "cpi"
      -  }
      -]New value: +[
      +  {
      +    "indicator": "inflation"
      +  },
      +  {
      +    "indicator": "inflation",
      +    "period": "2026M06"
      +  },
      +  {
      +    "indicator": "cpi"
      +  }
      +]
    • addedInput schema / properties / period
      Added value: +{
      +  "description": "Optional month, as \"2026M06\" or \"2026-06\" or \"June 2026\". Omit for the most recent published month. If the month you name has not been published yet, the response says so and names the latest month that has.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.2/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 openWorld, so safety is covered. The description adds useful behavior beyond that: it names the returned fields (figure, unit, exact month, source SCB table) and states the fallback when a requested month is unpublished. It does not discuss rate limits or precision caveats, keeping it short of 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.

Conciseness3/5

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

The purpose is front-loaded and the routing sentence earns its place, but the example phrases are repeated ('what is inflation in Sweden' appears twice) and the opening clause is grammatically tangled. Trimming the duplicated quotations would tighten it without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter lookup with no output schema, the description supplies scope (only CPI inflation and CPI index level), return fields, and month-fallback behavior, which is enough to call it correctly. It stops short of noting data recency or revision policy, a minor gap.

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 description coverage is 100%, including period formats and the inflation-vs-cpi indicator meanings, so the schema already carries the semantics. The description echoes the two indicator meanings and sample phrasings but adds little the schema lacks, which is the baseline 3 case.

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?

The description opens with a concrete verb-and-resource statement: a Swedish headline statistic returned as a number for the latest or a named month. It explicitly contrasts itself with scb_se_subjects, so an agent can pick between them without opening either schema.

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?

It gives a direct routing rule: 'Use this when the question asks for a number; use scb_se_subjects only when the question asks what statistics exist.' That is an explicit when-to-use plus the named alternative, leaving nothing to inference.

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.