bcrp_get_series
Fetch up to 10 BCRP time series by code and date range to retrieve exchange rates, interest rates, GDP, and other economic indicators.
Instructions
Fetch time series data from the BCRP (Banco Central de Reserva del Perú) API.
Accepts 1–10 series codes of the SAME frequency. Series codes can be found using
bcrp_search_catalog or the bcrp://series-catalog resource.
Period format by frequency:
Monthly:
YYYY-M(e.g.2024-1= January 2024,2024-12= December 2024)Quarterly:
YYYY-Q(e.g.2024-1= Q1 2024,2024-4= Q4 2024)Daily:
DD-MM-YYYY(e.g.01-01-2025)Annual:
YYYY(e.g.2024)Leave both periods empty to get the most recent available data.
Important: All series in one call must have the same frequency (all daily, all monthly, etc.).
Need MORE than 10 series, or a mix of frequencies? Use bcrp_get_series_long
instead — up to 50 codes of any frequencies, returned as one tidy long table.
Responses are cached on disk between calls, so repeating a query is free.
An empty series list means the code is valid but has no data in that range,
not that the code is wrong — check it with bcrp_describe_series.
Example codes: PD04637PD (exchange rate), PD12301MD (policy rate), PN00196MM (total liquidity), PN03503MQ (GDP var%)
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": {
"series_codes": "<series_codes>"
},
"name": "bcrp_get_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language for series names: 'esp' (Spanish) or 'ing' (English) | esp |
| end_period | No | End of date range. Same format as start_period. | |
| series_codes | Yes | List of 1–10 BCRP series codes (same frequency). E.g. ['PD04637PD', 'PD12301MD'] | |
| start_period | No | Start of date range. Format depends on series frequency: - Monthly: YYYY-M (e.g. '2020-1') - Quarterly: YYYY-Q (e.g. '2020-1') - Daily: DD-MM-YYYY (e.g. '01-01-2025') Leave empty for most recent data. |