Skip to main content
Glama

Latest value of a CBS index

get_latest_index

Retrieve a CBS price index's current published value, base, percent changes, publication date, and recent observations for analysis or index-linked calculations.

Instructions

Get the latest published value of a CBS price index with its base (e.g. 'Average 2024'), the monthly and 12-month percent change as published, the approximate publication date (CBS publishes month M on the 15th of M+1 at 18:30) and the most recent observations. change_over_window_pct is chain-linked, so it stays correct across base changes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
codeNoCBS index code, e.g. 120010 for the headline CPI (find codes with search_indices)
periodsNoHow many recent observations to return (default 13)

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 disclosure burden and does substantial work: it explains that the publication date is approximate and gives the CBS cadence (month M released on the 15th of M+1 at 18:30), and it flags that change_over_window_pct is chain-linked so the figure survives base changes. That is genuine behavioral context an agent could not infer. It stops short of covering failure modes, unknown codes, or latency.

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?

It is a single dense sentence, but the most important information (what is returned) is front-loaded and the parenthetical publication cadence and the chain-linking caveat are both load-bearing. The one weakness is that the long comma chain makes the return-value list harder to scan than a short bulleted enumeration would be.

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?

There is no output schema, so the description must characterize the return payload, and it largely does: base, percent changes, publication date, observations, plus a note on how the window-change is computed. The remaining gap is that "change_over_window_pct" is cited by field name without defining what window it spans, which leaves an agent guessing at that figure's meaning relative to the periods parameter.

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 both parameters (code with its example and search_indices hint, periods with its default) are already fully documented in the schema. The description reinforces that output is limited to "the most recent observations," tying loosely to the periods cap, but adds no format or edge-case detail beyond what the schema states. Baseline 3 applies when the schema does the heavy lifting.

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 specific verb and resource ("Get the latest published value of a CBS price index") and then enumerates exactly what is returned: base label with an example, monthly and 12-month percent change, approximate publication date, and recent observations. That scope statement distinguishes it from a full-history sibling without naming one, since "latest" and "most recent observations" establish the recency framing.

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 rather than stated: the word "latest" plus "most recent observations" signals this is the recency-oriented lookup rather than a history call, but the description never explicitly contrasts itself with get_index_history or tells the agent when not to use it. The pointer to search_indices for finding codes lives in the schema, not the description, so the routing guidance here is only implicit.

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