Skip to main content
Glama

bcrp_get_latest

Fetch recent data for up to 10 economic series from Peru's central bank (exchange rates, interest rates, GDP) and return only the last n periods for a quick snapshot of current conditions.

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.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNo'esp' (Spanish) or 'ing' (English)esp
n_periodsNoNumber of most recent periods to return (1–50). Default: 5.
series_codesYesList of 1–10 BCRP series codes (same frequency)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations present, the description carries the full disclosure burden, and it does disclose the two non-obvious behaviors: automatic date-range selection (fetches without specifying a date range) and truncation to the last n_periods values. It does not cover error behavior such as mixed frequencies or insufficient history, but the operational meaning of 'latest' is clearly explained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded: core purpose first, then wrapper mechanism, usage context, and example codes. The example section is scoped and earns its place given the cryptic domain codes, though it is the longest section and could be tighter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has three well-documented parameters but no output schema or annotations, so the description must cover return and edge-case behavior. It states that it returns only the last n_periods values but does not describe the response shape, error cases (different frequencies, insufficient history), or rate limits. Adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds genuinely useful example codes for series_codes (PD04637PD, PN00196MM, PN03503MQ), which is real value for a parameter whose values are otherwise opaque numeric strings. It also reinforces the n_periods truncation semantics, pushing it above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb (Get), a precise resource (most recent data points for 1-10 BCRP series), and a constraint (same frequency). It further identifies itself as a convenience wrapper around bcrp_get_series, which cleanly distinguishes it from sibling tools without requiring the reader to inspect other schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The line 'Use this for quick snapshots of current economic conditions' provides explicit when-to-use context. The wrapper explanation ('fetches latest data without specifying a date range') implies that bcrp_get_series is the alternative when a date range is needed, though it stops short of an explicit when-not-to-use statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.