Skip to main content
Glama

Inflation (CPI) card (paid $0.05)

get_cpi
Read-onlyIdempotent

Paid $0.05 USDC on Base. Call when you need the latest inflation (CPI or HICP) print for a covered country or area, with headline, core and selected categories, each item cited to the statistics office. Free: sample_macro id CPI (US). CPI ids: US, UK, EA, JP. Others return 404 (no charge).

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": {
      "id": "<id>"
    },
    "name": "get_cpi"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCPI id (country or area)

Output Schema

NameRequiredDescriptionDefault
idYes
itemsYes
agencyYes
releasedNo
indicatorYes
source_urlYes
generated_atNo
next_releaseNo
release_titleNo
reference_periodNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing cost ('Paid $0.05 USDC on Base'), the covered id set, and error semantics for unsupported ids with no charge. It does not explain the payment mechanics (how/when the charge is settled, e.g. whether a 404 or retry still costs anything), which is the one behavioral gap for a paid tool.

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?

Dense and front-loaded with the most decision-relevant facts (cost, trigger condition, coverage). Minor waste in repeating the price already in the title and re-listing the enum values verbatim.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read tool with a full output schema and rich annotations, the description covers everything an agent needs: purpose, cost, coverage, content of the response, and failure behavior. Nothing material is left to inference.

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 coverage is 100% and the enum already constrains id to US/UK/EA/JP, so the description's restatement of the same four ids is redundant. It does add real meaning by clarifying that non-listed ids are rejected with 404 and no charge, which the schema cannot express.

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: 'Call when you need the latest inflation (CPI or HICP) print for a covered country or area', then enumerates the returned fields (headline, core, selected categories, each cited). This is clearly separable from siblings such as get_macro, sample_macro, and get_bundle.

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

Usage Guidelines5/5

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

Explicit when-to-use ('when you need the latest inflation print'), an explicit free alternative ('Free: sample_macro id CPI (US)'), and explicit out-of-scope behavior ('Others return 404 (no charge)'). The agent knows both the selection condition and the fallback.

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.

Resources