Skip to main content
Glama

Compare CBS indices over a period

compare_indices

Compare how up to 12 monthly CBS indices changed between two months, ranked by rate of increase, with annualized rates for year-plus periods and missing codes flagged.

Instructions

Compare how up to 12 monthly CBS indices changed between two months (chain-linked, so base changes are handled), ranked from fastest to slowest rising, with annualized rates for periods of a year or more. Defaults to the CPI and its 10 main consumption groups. Codes without data for both months are listed under missing.

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": {
      "start_month": "<start_month>"
    },
    "name": "compare_indices"
  }
}

Input Schema

NameRequiredDescriptionDefault
codesNoIndex codes. Defaults to the CPI and its main groups
end_monthNoEnd month, YYYY-MM. Defaults to the latest published
start_monthYesStart month, YYYY-MM

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does substantial work: chain-linking so base changes are handled, ordering 'fastest to slowest rising', annualized rates only for periods of a year or more, and explicit handling of codes lacking both months ('listed under missing'). It stops short of describing return shape or units, but the key semantics an agent needs to interpret results are present.

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?

Two sentences, front-loaded with the core operation and followed by the behavioral caveats (chain-linking, ranking, annualization, defaults, missing). The first sentence is long and comma-heavy but every clause carries information; nothing is filler.

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 3-parameter, read-only analytical tool with no annotations and no output schema, the description supplies the methodological context (chain-linking, ranking direction, annualization threshold) and edge-case handling that an agent would otherwise have to guess. Only the response format/units remain undefined, a minor gap given the otherwise rich disclosure.

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 100%, so all three parameters are already documented, including the 12-item cap and the YYYY-MM pattern. The description reinforces the code limit and the defaults for codes and end_month but adds no new format or constraint detail beyond the schema, so the baseline 3 applies.

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?

Names a specific verb and resource ('Compare ... CBS indices') and pins the operation to a two-month window, ranking direction, and annualization rule. That combination is distinct from the sibling set (get_annual_changes, get_index_history, get_latest_index) without needing to name them.

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?

Usage is implied by the framing: use it when you have a start/end month and want a cross-index comparison. The defaults ('Defaults to the CPI and its 10 main consumption groups', schema default for end_month) tell an agent it can call with only start_month, but there is no explicit when-not or named alternative such as get_annual_changes for period-over-period work.

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