Build a country-year panel
build_panelSeveral indicators for several countries as one table, ready to compute on.
`indicators` and `geographies` take any vocabulary `resolve` accepts (codes,
publisher codes, names; ISO codes or country names); up to 10 and 60.
Returns `rows` (one per country and year, a key per indicator code),
`columns` (each indicator's name, unit and the dataset behind each country),
and what is missing: `unresolved` terms (an ambiguous one lists candidates:
re-call with a code), `missing` country-indicator pairs and `gaps` (years
one country lacks). Where several publishers measure one concept
("population"), the World Bank's series is taken and listed in `chosen`
with the others; pass `source` or a code to choose another. Values are each publisher's own: nothing is converted,
interpolated or filled. Cite each column's datasets with cite_dataset.
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": {
"indicators": "<indicators>",
"geographies": "<geographies>"
},
"name": "build_panel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Last period to include, e.g. '2023'. Omit for the latest. | |
| start | No | First period to include, e.g. '2010' or '2010-01'. Omit for the start of the series. | |
| source | No | A publisher id ('worldbank', 'imf', 'who', 'eurostat'...) to choose among publishers of an ambiguous term. list_sources gives the ids. | |
| indicators | Yes | Up to 10 indicators, each as get_series takes them: codes, publisher codes or names. | |
| geographies | Yes | Up to 60 countries: ISO codes or names. |