Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoDEBUG · INFO · WARNING · ERRORINFO
BCRP_TIMEOUTNoHTTP timeout in seconds30
BCRP_LANGUAGENoDefault language: esp (Spanish) or ing (English)esp
BCRP_CACHE_TTLNoResponse cache in seconds (0 = disabled)300
BCRP_MAX_RETRIESNoRetries on transient errors3

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
bcrp_get_seriesA

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.).

Example codes: PD04637PD (exchange rate), PD12301MD (policy rate), PN00196MM (total liquidity), PN03503MQ (GDP var%)

bcrp_get_latestA

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.

Use this for quick snapshots of current economic conditions.

Example codes:

  • Daily rates/prices: PD04637PD, PD12301MD, PD04650MD, PD04701XD

  • Monthly monetary: PN00196MM, PN00496MM, PN00178MM

  • Quarterly growth: PN03503MQ, PN03501MQ

bcrp_describe_seriesA

Get metadata about 1–10 BCRP series without fetching all data points.

Returns series names, frequency, decimal precision, and available date range. Use this to verify series codes exist and understand what they measure before fetching large date ranges with bcrp_get_series.

bcrp_get_series_longA

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).

bcrp_search_catalogA

Search the built-in catalog of important BCRP series by keyword.

Returns matching series codes, names, descriptions, frequency, units, and the period format needed to query them with bcrp_get_series.

Example queries:

  • 'tipo de cambio' → exchange rate series

  • 'tasa referencia' → BCRP policy rate

  • 'reservas internacionales' → international reserves

  • 'cobre' → copper price

  • 'liquidez' → monetary liquidity (M1/M2)

  • 'credito' → private sector credit

  • 'BVL' → Lima stock exchange index

  • 'PBI' → GDP quarterly series

Use bcrp_list_catalog_categories to see all available categories.

bcrp_list_catalog_categoriesA

List all available categories in the BCRP series catalog.

Returns category IDs (usable as the category filter in bcrp_search_catalog), the number of series per category, and their frequency.

Categories include: exchange rates, interest rates, international reserves, liquidity (M1/M2), credit, financial markets, commodities, and GDP.

bcrp_get_macro_snapshotA

Fetch a real-time snapshot of Peru's key macroeconomic indicators in one call.

Returns the latest values for: Daily indicators:

  • Exchange rate (TC Interbancario S/ por US$)

  • BCRP policy rate (%)

  • International reserves (millions US$)

  • Copper price (cUS$ per pound)

  • Lima stock market index (BVL)

Monthly indicators (last 3 months):

  • Total liquidity M2 (millions S/)

  • Private sector credit (millions S/)

  • Currency in circulation (millions S/)

  • Credit growth 12-month (%)

Use bcrp_get_series for custom date ranges or additional series.

Prompts

Interactive templates invoked by user choice

NameDescription
inflation_and_monetary_analysisGenerate a structured analysis workflow for Peru's monetary policy and inflation using BCRP data. Returns ready-to-run tool calls for policy rate tracking, liquidity monitoring, credit growth, and currency in circulation trends.
exchange_rate_analysisGenerate a structured workflow to analyze Peru's exchange rate dynamics and dollarization using BCRP daily and monthly data. Covers USD/PEN rate trends, international reserves, and external shocks.
economic_growth_analysisGenerate a structured economic growth analysis workflow for Peru using BCRP quarterly and monthly data. Covers GDP growth, monetary multiplier, credit expansion, and liquidity trends.

Resources

Contextual data attached and managed by the client

NameDescription
BCRP API Developer GuideComplete guide for the BCRPData public API: URL structure, period formats, response schema, error handling, and URL examples for all frequencies.
BCRP Period Format ReferenceQuick reference for BCRP period formats by frequency: daily (DD-MM-YYYY), monthly (YYYY-M), quarterly (YYYY-Q), annual (YYYY). Includes month/quarter number tables and common gotchas.
BCRP Series CatalogCurated catalog of important BCRP series organized by category: exchange rates, interest rates, international reserves, liquidity, credit, financial markets, commodities, and GDP. Each entry includes the series code, name, description, unit, and period format.

TDQS

A4.3/5.0

Scored across 7 tools

Disambiguation3/5

The data-retrieval tools overlap: bcrp_get_series, bcrp_get_latest, bcrp_get_series_long, and bcrp_get_macro_snapshot all return series data. Descriptions clarify their intended use cases, but an agent could easily pick bcrp_get_latest when bcrp_get_series would suffice, since get_series already supports fetching most recent data.

Naming Consistency5/5

All tools follow a clean bcrp_<verb>_<object> snake_case pattern, e.g. get_series, search_catalog, list_catalog_categories, describe_series. The naming is predictable and consistent across the entire set.

Tool Count5/5

Seven tools is well-scoped for a BCRP economic data server. Each tool fills a distinct role: catalog discovery, metadata lookup, series retrieval, latest values, long-form multi-series retrieval, and a curated macro snapshot.

Completeness5/5

The tool surface covers the full workflow: discover series via search/categories, inspect metadata, fetch data in multiple formats, and get quick snapshots. There are no obvious dead ends or missing operations for the stated purpose of accessing BCRP time series.

Maintenance

ActivityMaintained
ResponsivenessNo issues