Skip to main content
Glama

Get macro / market history

get_macro_history
Read-only

Retrieve historical time series and summary statistics for macro indicators, rates, FX, commodities, and indices to analyze how markets or economies changed over time.

Instructions

Historical time series behind the Global Markets dashboard, often decades long: equity indices, central-bank policy rates, 10-year government bond yields, FX rates, oil/gas/gold/copper, VIX, DXY, the US 2s10s curve, and per-country macro indicators (GDP growth, inflation, unemployment, house prices, credit gap, debt, confidence, macro stress). Address a series by historyCode (from get_global_markets_overview, get_country_macro or get_macro_indicators), by instrument name ("Fed", "Brent", "Germany 10Y", "S&P 500"), or by indicator + country. Returns summary statistics (latest, change over 1M/3M/1Y/5Y, range, where the latest sits in the window) plus resampled points. Use for "how have rates moved since 2022", "plot Brent over 10 years", "is German unemployment rising". Read-only.

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD (inclusive).
codeNoExact series code from another tool's historyCode field (e.g. "CNBC_US10Y", "BIS_CBPOL_US", "UNEMPLOYMENT:Germany", "YAHOO_GSPC").
fromNoStart date YYYY-MM-DD (inclusive).
countryNoCountry for indicator, e.g. "Japan".
intervalNoResample to end-of-period values. auto = the finest interval that fits maxPoints.auto
indicatorNoOr a per-country macro indicator, together with country (same keys as get_macro_indicators).
maxPointsNoUpper bound on returned points (auto interval only; an explicit interval is truncated to the most recent maxPoints).
instrumentNoOr a market name: an index ("S&P 500", "DAX", "Nikkei 225"), commodity ("Brent", "Gold"), FX pair ("EUR/USD"), central bank ("Fed", "ECB", "BoE"), 10Y yield ("Germany 10Y", "US 10Y"), or headline series ("VIX", "DXY", "2s10s", "global inflation").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true / destructiveHint=false, so safety needs no restating; the description instead adds real behavioral context: data can be decades long, output is summary statistics (latest, 1M/3M/1Y/5Y change, range, percentile position) plus resampled points. It does not cover failure modes (e.g., unknown code, conflicting address modes) or date defaults, keeping it below 5.

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?

Front-loaded with the resource and scope, then addressing modes, then return shape, then use cases — a sensible order with no filler sentences. The long comma-separated series enumeration is informative but dense; it slightly crowds the paragraph.

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

Completeness4/5

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

With no output schema, the description carries the return-value burden and does so (summary stats + resampled points). Combined with a fully documented 8-parameter schema, an agent has enough to call it correctly; only edge-case behavior (default date window, conflicting address params, unknown series) is left unspecified.

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 coverage is 100%, so 3 is the floor; the description earns above that by explaining the three mutually alternative addressing modes (code vs. instrument vs. indicator+country) and by pointing to the sibling tools whose historyCode values the `code` param accepts. It does not disambiguate precedence if more than one address mode is supplied.

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?

Opens with a concrete verb+resource ('Historical time series behind the Global Markets dashboard') and enumerates the exact data families covered (policy rates, 10Y yields, FX, commodities, VIX, DXY, 2s10s, per-country macro). It is clearly separable from siblings like get_global_markets_overview and get_macro_indicators, which it names as upstream code sources.

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?

Gives three concrete routing rules for addressing a series (historyCode from a named sibling, instrument name, or indicator+country) plus example questions ('how have rates moved since 2022', 'plot Brent over 10 years'). It stops short of explicit when-not-to-use/exclusion guidance versus the snapshot-style siblings, so it lands at a strong 4 rather than 5.

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