Skip to main content
Glama

China Macro Indicator

china_macro_indicator
Read-onlyIdempotent

China's headline National Bureau of Statistics (NBS) macro indicators — one tool, pick an indicator: cpi (Consumer Price Index, national/urban/rural, y/y + m/m), ppi (Producer Price Index), pmi (manufacturing + non-manufacturing Purchasing Managers' Index), gdp (quarterly GDP, published as year-to-date cumulative, by sector), industrial_production (industrial value-added growth), retail_sales (total retail sales of consumer goods), fixed_asset_investment (FAI), money_supply (M0/M1/M2 outstanding + growth), or trade (General Administration of Customs monthly export/import totals in USD). Returns the latest period's values first (with its period, e.g. "2026-09"), then up to periods months/quarters of history, newest first — every Chinese NBS field name translated to an English name with its unit and the index convention it uses (prior-period = 100 unless stated otherwise). Answers "China's latest CPI", "China PMI history", "China Q2 GDP growth", "China M2 money supply", "China's trade surplus last month". Default route is a republisher's data centre. Pass source: "nbs" to read the National Bureau of Statistics of China's own database directly: every series then carries its period, period TYPE (single month/quarter vs year-to-date), measure (index vs percent change vs level), unit and base, exactly as published and never converted, and data_as_of. The direct route also adds urban_unemployment (surveyed urban unemployment rate) and capacity_utilization (industrial capacity utilisation, quarterly), and region (a province name, or all for the 31 mainland provincial-level regions in one period) for cpi, ppi, industrial_production, fixed_asset_investment and gdp. A series whose base cannot be established from the publisher's own label comes back basis_status "unresolved" rather than guessed. Keyless, sourced live from the National Bureau of Statistics of China (General Administration of Customs for trade).

Input Schema

NameRequiredDescriptionDefault
periodNo(source nbs, region "all") The period to cross-section: "YYYY-MM" for monthly series, "YYYY-Qn" for quarterly ones. Omit for the latest period with data.
regionNo(source nbs) A mainland province by English or Chinese name (e.g. "Guangdong", "广东省") for that region's history, or "all" for all 31 mainland provincial-level regions in one period. Available for cpi, ppi, industrial_production, fixed_asset_investment, gdp.
seriesNo(source nbs) Return one named series only, e.g. "cpi_yoy_index", "cpi_mom_index", "ppi_yoy_index", "manufacturing_pmi". Omit for every series of the indicator; an unknown name lists the valid ones.
sourceNoWhich route serves the data. Default "eastmoney" (republisher). "nbs" reads the National Bureau of Statistics of China directly and returns typed series (period type, measure, unit, base). Implied by region, series, urban_unemployment and capacity_utilization.
periodsNoHow many of the most recent monthly/quarterly rows to return, 1-36 (default 12).
indicatorYesWhich NBS/Customs indicator to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description then adds genuinely useful non-annotation context: newest-first ordering, English field translation with units, the year-to-date cumulative convention for GDP, the basis_status "unresolved" fallback instead of guessing, and data_as_of. That is strong added value, but it omits pagination, rate limits, latency, and error behavior for bad indicator/series names beyond one mention.

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?

Despite being long, the description is front-loaded with what the tool returns, then the ordering behavior, then the source routing, then caveats. Every clause carries information an agent needs (indicator semantics, ordering, basis_status, route differences) and nothing is repeated from the schema fields 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?

No output schema exists, so the description must explain returns, and it does: latest period first with a period label like "2026-09", then up to periods of history newest-first, every field translated to English with unit and index convention. It also covers the direct-route extras (period type, measure, base, data_as_of, basis_status) and the auth situation (keyless), leaving no major gap for a read-only multi-indicator tool.

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 nonetheless adds meaning the schema does not carry, such as cpi being split national/urban/rural with y/y and m/m, pmi covering manufacturing plus non-manufacturing, GDP being published as YTD cumulative by sector, and money_supply being M0/M1/M2 outstanding plus growth. It also clarifies that the direct route adds extra indicator and region dimensions. It does not add anything beyond the schema for parameter formats or defaults like periods range.

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 resource (China NBS headline macro indicators) with a concrete verb of returning them, and enumerates the nine indicators (cpi, ppi, pmi, gdp, etc.) so an agent knows exactly what data set is behind it. It is clearly distinguishable from siblings like china_lpr, china_rates and china_house_prices, which cover narrower or different subjects.

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?

The description gives concrete routing guidance: default to the republisher route, and pass source: "nbs" when typed series, provincial regions, urban_unemployment or capacity_utilization are needed. It also lists the kinds of questions it answers ("China's latest CPI", "China PMI history"). It stops short of explicitly naming sibling tools to use instead for LPR, rates or house prices.

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.