World Bank Data + Analysis
wb_series" for , over time / vs other countries" — World Bank annual data,
feature-extracted (open data, 3 credits). Pass a structural CONCEPT (the server resolves it to the canonical
indicator + variant) or an exact indicator id. Returns results:[{country, series:[{year,value}], analysis}]
(one per country); analysis = latest(+year), trend, cagr_pct, change, peak/trough. ⭐ For a
MULTI-COUNTRY call (comma-sep country) a top-level ranking orders them by the latest value — the
cross-country compare FRED can't do. Annual STRUCTURAL data → read levels + CAGR, not high-frequency moves.
A country/year with no data is omitted (never interpolated). The right VARIANT (%GDP vs US$ vs per-capita) is
picked from your context. A concept that isn't World-Bank structural (CPI/unemployment → fred_series) → honest
no_match. Surface _license_note when showing data.
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": {
"q": "<q>",
"country": "<country>"
},
"name": "wb_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | A cross-country STRUCTURAL concept (any language — 'household consumption', 'GDP per capita', 'poverty rate', 'life expectancy', 'government debt', 'การบริโภค') OR an exact World Bank indicator id you already hold (WB_WDI_NE_CON_PRVT_ZS). The SERVER resolves a concept → the canonical indicator + the right unit VARIANT (no separate lookup). 🔴 Pass the user's FULL request in `context` so the server picks the VARIANT: % of GDP/share (compare across country sizes) vs current US$ (absolute) vs per-capita (living standards) vs constant/real. World Bank = ANNUAL structural data (consumption/GDP/demographics/poverty) — NOT high-frequency macro (CPI/unemployment/rates → fred_series). | |
| to | No | End year (default latest). | |
| from_ | No | Start year (default ≈ last 15y, dynamic). | |
| context | No | OPTIONAL but RECOMMENDED — the user's FULL request VERBATIM (any language). Used to pick the right unit VARIANT (% of GDP vs US$ vs per-capita vs real). e.g. 'compare household spending as a share of GDP'. | |
| country | Yes | Country as ISO3 or a name (`Thailand`/`THA`); COMMA-SEP for a cross-country compare (`THA,JPN,USA`); or an aggregate (`WLD` world · `EMU` euro area · `HIC`/`MIC`/`LIC` income groups). | |
| database | No | ADVANCED — the indicator's source database (WB_WDI, IMF_FSIC). Auto-derived from the resolved concept; override only for a non-WDI id you pass directly. |