Skip to main content
Glama

BCRP-MCP

by rodcar

get_time_series_data

Retrieve time series data from Peru's Central Reserve Bank database for a specific code within a defined date range. Returns formatted dates and corresponding values for analysis.

Instructions

Get the data for a specific time series within a date range.

This function retrieves time series data from the BCRP (Banco Central de Reserva del Perú) database for a specific time series code within the specified date range. The data is returned as a list of lists with dates formatted as 'YYYY-MM-DD'.

Args: time_series_code (str): The unique code identifier for the time series. start (str): The start date for the data retrieval. Format should be '2020-1' for monthly data or '2020-1-1' for daily data. end (str): The end date for the data retrieval. Format should be '2020-1' for monthly data or '2020-1-1' for daily data.

Returns: List[List[str]]: A list of lists where each inner list contains: [formatted_date, time_series_value] The date is formatted as 'YYYY-MM-DD' and the value is the corresponding data point for that date.

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
time_series_codeYes

Input Schema (JSON Schema)

{ "properties": { "end": { "title": "End", "type": "string" }, "start": { "title": "Start", "type": "string" }, "time_series_code": { "title": "Time Series Code", "type": "string" } }, "required": [ "time_series_code", "start", "end" ], "type": "object" }
Install Server

Other Tools from BCRP-MCP

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/rodcar/bcrp-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server