Skip to main content
Glama
amar-mcp

amar-mcp

by sepehr071

Inflation (CPI)

am_inflation
Read-onlyIdempotent

Retrieve Iran's official consumer price index and inflation figures from the Statistical Centre of Iran, including monthly, year-on-year, and annual rates by group, region, or province.

Instructions

Get Iran's official consumer price index (CPI) and inflation from the Statistical Centre of Iran, latest first.

Per month: index, monthly_pct, point_to_point_pct (year-on-year, the headline figure) and twelve_month_avg_pct ("annual inflation"). group or region for breakdowns; province gives one province (no index, no groups). newer_report appears when the portal has a later month as PDF only.

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": "am_inflation"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoCPI group: Persian name part ('مسکن', 'خوراک') or 2-digit code ('04'); omit for all items. List: am_inflation_groups
monthsNoLatest months
regionNoHouseholds: all of Iran, urban or ruralnational
provinceNoProvince name (e.g. 'تهران'): that province's all-items inflation instead

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / group / description
      Previous value: -"A CPI group: Persian name part (e.g. 'مسکن', 'خوراک', 'حمل') or its 2-digit code ('04'). Omit for the all-items index. See am_inflation_groups for the list."New value: +"CPI group: Persian name part ('مسکن', 'خوراک') or 2-digit code ('04'); omit for all items. List: am_inflation_groups"
    • changedInput schema / properties / months / description
      Previous value: -"How many latest months to return"New value: +"Latest months"
    • changedInput schema / properties / province / description
      Previous value: -"Province name (e.g. 'تهران', 'خوزستان'): returns that province's all-items inflation instead"New value: +"Province name (e.g. 'تهران'): that province's all-items inflation instead"
  2. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the description rightly focuses on data behavior: latest-first ordering, the meaning of each returned percentage (point_to_point as the headline, twelve_month_avg as annual), and the important caveat that `newer_report` appears when the portal only has a later month as PDF. It does not discuss failure modes for unknown province/group names or what happens when zero months match.

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?

Three tight sentences, front-loaded with what the tool returns before the parameter caveats. It is dense but every clause carries information (field semantics, routing, PDF fallback); nothing is padding, though the middle field-definition sentence is compressed enough to require a second read.

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?

There is no output schema, so the description must carry the return shape — and it does, enumerating the four per-month metrics and the conditional `newer_report`. Combined with the ordering guarantee and the province/no-group caveat, an agent has everything needed to call this correctly.

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%, so the baseline is 3; the description earns an extra point by explaining the interplay between parameters that the schema does not — `group`/`region` produce breakdowns while `province` suppresses index and group detail. It still does not clarify how `group` and `region` interact when both are supplied.

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 ('Get Iran's official consumer price index (CPI) and inflation'), names the source (Statistical Centre of Iran), and declares the ordering ('latest first'). The per-month field list makes clear this is a time-series retrieval tool, distinct from siblings like am_ppi or am_inflation_groups.

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

Usage Guidelines4/5

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

Gives usable routing context: 'group' or 'region' for breakdowns, and 'province' when you want a single province instead. It also flags the key exclusion that province mode returns 'no index, no groups', which prevents a mis-call. It stops short of explicitly naming am_inflation_groups as the place to discover group codes (that only appears in the schema).

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