Skip to main content
Glama

Kildeverk

A statistic over time for one region

statistics_series
Read-onlyIdempotent

One SSB statistic for Norway, a county or a municipality over every year, in one call. Uses SSB's series summed to today's borders where the table has one, so the series does not stop at the 2020 or 2024 reforms. Accepts codes, old or current, and names. Find tables with statistics_search_tables.

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": {
      "table_id": "<table_id>",
      "region": "<region>"
    },
    "name": "statistics_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionYes'0' for Norway, a county or municipality code (old or current), or a name.
filtersNoCodes for the table's other dimensions, e.g. {'Kjonn': ['2']}. Dimensions left out are summed where SSB allows it.
measureNoThe ContentsCode value, when the table has more than one measure.
to_yearNo
table_idYesSSB table, e.g. '07459'.
from_yearNo
measure_kindNoWhen SSB has no series for today's borders: 'additive' (counts, totals) lets Kildeverk rebuild earlier years by summing the regions that became this one; 'non_additive' (rates, shares) follows renumberings only. Leave out to get the region's own series as published.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/open-world safety, so the description's value is in the substantive context it adds: series are summed to today's borders, so data does not stop at the 2020/2024 reforms, and codes may be old or current. That is real behavioral detail beyond the annotations, though it says nothing about output shape or failure modes when SSB lacks a border-compatible table.

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?

Three short sentences, front-loaded with what the tool returns, followed by the border-reform caveat and then discovery routing. No filler, though the border-summing caveat could be tightened.

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?

Covers the core semantics an agent needs for a 7-parameter, nested-filter, no-output-schema tool: region flexibility, series continuity across reforms, and how to find table ids. Missing only return-shape expectations and what a call yields when no border-compatible series exists.

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 coverage is 71% and already documents region, filters, measure, measure_kind and table_id examples. The description reinforces that region accepts codes old or current and names, but adds no syntax or edge-case detail the schema lacks; baseline 3 fits.

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 specific verb+resource: one SSB statistic for a named region across every year in a single call. The scope ('every year, in one call') implicitly separates it from a point-in-time data fetch, but it never names or contrasts a sibling like statistics_get_data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives one concrete prerequisite – 'Find tables with statistics_search_tables' – which is genuinely useful routing. It offers no when-not-to-use guidance and no criteria for choosing this over other statistics retrieval tools.

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.