Skip to main content
Glama

AfriRate

Latest inflation figures

get_inflation
Read-only

Latest published inflation for a country: month-on-month, year-on-year and the CPI index, split into food and non-food where the statistics agency publishes it. Zimbabwe publishes separate USD and ZWG series, which arrive as separate rows distinguished by denomination.

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": {
      "country": "<country>"
    },
    "name": "get_inflation"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryYesISO 3166-1 alpha-2 country code, e.g. ZW

Output Schema

NameRequiredDescriptionDefault
countYes
countryYes
inflationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. Beyond that, the description adds real behavioral value: it discloses the shape of results (food/non-food split where published) and the Zimbabwe quirk where separate USD and ZWG series arrive as distinct rows keyed by `denomination`, which is exactly the kind of structural detail an agent would otherwise misread.

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?

Two tight sentences, no filler. The core capability is front-loaded in the first clause and the special-case caveat follows, which is the right ordering for a scanning agent.

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 an output schema present, the description need not spell out return values, and it correctly focuses on scope plus the Zimbabwe row-splitting caveat. It stops short of covering data freshness, publication frequency, or what happens when an agency has not published a series, which would matter for an open-world tool.

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% and the `country` field already documents the ISO 3166-1 alpha-2 format with an example. The description's mention of `denomination` refers to output rows rather than input parameters, so it adds little to parameter meaning; 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?

The description names a specific verb and resource ('Latest published inflation for a country') and enumerates the exact measures returned (month-on-month, year-on-year, CPI index, food/non-food split). This makes it clearly distinguishable from siblings such as get_rate and get_gold without needing to open the schema.

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 'latest published inflation' – an agent can infer this is the tool for current CPI data. However, there is no explicit when-to-use/when-not guidance, no mention of how it relates to get_rate (interest rates) or any historical-series alternative, and no statement of prerequisites.

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.