bcrp_get_latest
Fetch current data points for 1–10 BCRP economic series without a date range, returning the last N observations for present-value questions like exchange rates or policy rates.
Instructions
Get the most recent data points for 1–10 BCRP series (same frequency).
Convenience wrapper around bcrp_get_series that fetches latest data without
specifying a date range, then returns only the last n_periods values.
Prefer this over bcrp_get_series when the question is "what is it now?" —
today's exchange rate, the current policy rate. Use bcrp_get_series for a
specific historical window, and bcrp_get_series_long for many series at once
or mixed frequencies.
Results are cached on disk; n_periods accepts 1–50 and defaults to 5.
Example codes:
Daily rates/prices: PD04637PD, PD12301MD, PD04650MD, PD04701XD
Monthly monetary: PN00196MM, PN00496MM, PN00178MM
Quarterly growth: PN03503MQ, PN03501MQ
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_latest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | 'esp' (Spanish) or 'ing' (English) | esp |
| n_periods | No | Number of most recent periods to return (1–50). Default: 5. | |
| series_codes | Yes | List of 1–10 BCRP series codes (same frequency) |