Skip to main content
Glama

Kildeverk

Convert a regional series to other borders

regions_harmonise
Read-onlyIdempotent

Convert values by municipality or county to the borders of another date, so a series spanning the 2020 and 2024 reforms lines up. Mergers are summed for additive values and renumberings are followed. Anything that cannot be converted exactly (a split, a missing piece, a rate that would need weights) is listed in unconverted with the reason, never estimated. Rows usually come from statistics_get_data: pass {region, period, value}.

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": {
      "level": "<level>",
      "target": "<target>",
      "measure": "<measure>",
      "rows": "<rows>"
    },
    "name": "regions_harmonise"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYes
levelYes'municipality' (kommune) or 'county' (fylke).
targetYesBorders to convert to: '2020' (2020-2023), '2024' (2024 onwards), 'latest' (today), or a date like '2018-01-01'.
measureYes'additive' if values can be summed across regions (counts, totals, areas). 'non_additive' for rates, shares, averages and indices: these are only renumbered, never summed.

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?

Beyond the readOnly/idempotent annotations, the description discloses the conversion rules (mergers summed for additive values, renumberings followed) and a critical non-obvious guarantee: anything not exactly convertible is returned in `unconverted` with a reason and 'never estimated.' That is exactly the kind of failure-mode disclosure annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Three tight sentences, front-loaded with the purpose, then the conversion rules, then the failure policy, then the input source. Every sentence carries distinct information and the `unconverted` clause is properly foregrounded rather than buried.

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?

With no output schema, the description covers the important part of the return surface (`unconverted` with reasons) and the aggregation policy, which is enough to call and interpret the tool. Minor gap: it does not say how converted rows are keyed back (presumably the target region code) or how many rows one call returns.

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 description coverage is 75% and both enums are already documented, so the schema does most of the work. The description still adds meaning by tying `measure` to concrete behavior (additive summed, non-additive renumbered only) and by showing the row shape an agent must supply; it does not add anything for `target` or `level` beyond the schema.

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?

States a specific verb and resource: 'Convert values by municipality or county to the borders of another date.' The phrase 'so a series spanning the 2020 and 2024 reforms lines up' gives the exact problem the tool solves, distinguishing it from point-in-time lookup siblings such as regions_at_point or regions_resolve.

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?

Explicitly names the upstream source and input shape ('Rows usually come from statistics_get_data: pass {region, period, value}'), which tells an agent when this tool is the right next step after a data fetch. It lacks an explicit exclusion statement, e.g. what to use for a single region lookup or when the reform period is irrelevant, which keeps it short of 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.