Get one country's series
get_seriesRetrieve a canonical time series by indicator + geography.
Both arguments accept any vocabulary the catalog knows: Interva's own
code, the publisher's code (`NY.GDP.PCAP.CD`, `WHOSIS_000001`), the
indicator name or an alias; and ISO alpha-3, alpha-2, or a country name in
common use ('Korea, Rep.', 'UK', 'Ivory Coast').
Returns `{"series": [...]}` on success. When the request cannot be resolved
it returns a `detail` explaining which term failed and what to do — an
agent can act on that, where an empty list only looks like missing data.
Pass `source` to choose between publishers when a term is ambiguous.
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": {
"indicator": "<indicator>",
"geography": "<geography>"
},
"name": "get_series"
}
}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. | |
| geography | Yes | A country: ISO alpha-3 or alpha-2 code, or a name in common use ('Nigeria', 'UK', 'Korea, Rep.', 'Ivory Coast'). | |
| indicator | Yes | What is measured: Interva's code, the publisher's code ('NY.GDP.PCAP.CD'), the indicator's name or an alias ('GDP per capita', 'inflation'). |