bcrp_get_series_long
Fetch up to 50 BCRP series at once into a tidy long-format table, even with mixed frequencies. Each series is fetched separately, so code-to-value mapping stays correct; missing values are omitted.
Instructions
Fetch MANY BCRP series at once as one tidy long-format table.
Unlike bcrp_get_series, the codes do NOT have to share a frequency and the
limit is 50 rather than 10 — each series is fetched separately, so the
code→value mapping is always correct.
Returns rows of {series_code, period, date, value}. date is an
ISO-sortable rendering of BCRP's human period label. Missing observations
are omitted rather than emitted as nulls.
Set all_history=true to pull each series' entire published history (bounded by max_rows).
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_long"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | 'esp' (Spanish) or 'ing' (English) | esp |
| max_rows | No | Hard ceiling on returned rows. | |
| end_period | No | End of range, same format as start_period. | |
| all_history | No | Fetch each series' full published history. | |
| series_codes | Yes | 1–50 BCRP series codes; frequencies may be mixed. | |
| start_period | No | Start of range (Daily DD-MM-YYYY, Monthly/Quarterly YYYY-M). |