Skip to main content
Glama

Api Ninjas Inflation

api_ninjas_inflation
Read-onlyIdempotent

API Ninjas inflation: latest monthly and yearly inflation rates by country. Returns a list of { country, type, period, monthly_rate_pct, yearly_rate_pct }. Optionally filter by country name and index type (CPI or HICP). Example: inflation({ country: "United States", type: "CPI" }).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "CPI",
      "country": "United States"
    },
    "name": "api_ninjas_inflation"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoInflation index type: 'CPI' or 'HICP'
_apiKeyNoOptional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key.
countryNoCountry name, e.g. 'United States', 'Germany'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered and the description adds the returned field composition on top. It does not disclose behavior for the no-filter default (all countries?) or any rate-limit/throttling behavior tied to the shared key, which is the remaining behavioral unknown for a data-fetch 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?

Front-loaded with the resource and metric, then return shape, then filtering, then an example — a sensible order with no filler sentences. Slightly redundant in restating the filter options that the schema and example already convey.

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

Completeness3/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 helpfully enumerates the returned fields, which is the right compensation. However, for a tool with zero required parameters the behavior of the default (unfiltered) call is the single most important missing fact, and it is left to inference.

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 description coverage is 100% and the schema already documents 'CPI'/'HICP' and country naming, so the description adds little beyond restating them. The inline example inflation({ country: "United States", type: "CPI" }) is modest added value in showing the two filters combined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Latest monthly and yearly inflation rates by country" gives a specific resource plus metric, and the return-field list ({country, type, period, monthly_rate_pct, yearly_rate_pct}) makes the output unambiguous. It does not name a sibling to differentiate from, but no obvious competing inflation tool exists in the provided context, so this is clear-but-undifferentiated rather than vague.

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?

"Optionally filter by country name and index type" implies that omitting filters returns the full set, which is real usage guidance. There is no explicit statement of when to prefer this tool over other sources, nor any warning about what an unfiltered call returns in volume.

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.