Skip to main content
Glama

Get Macro Data

get_macro_data
Read-only

US macro: one FRED series (macro; without series, the latest of every series), an intraday instrument (macro_intraday, series required), and computed fields with no target. Series: get_system_info catalogs. No window = current value; since_ms/until_ms/last = history. Rows newest first, dated at the START of their bucket (first_time + i x step_s); for a total, an extreme or a change read summary, for the period covered read ranges; null + unavailable = no data; _pct = percent, _ratio = fraction; every unit: describe_fields. timeframe: macro_intraday only. A daily or monthly series is legitimately days or weeks old.

EXAMPLE: 10-year yield: series=DGS10, fields=["macro"]

FIELDS:

  • macro: US macro: one series, or the latest of every series. [series optional]

  • macro_intraday: Intraday candles of a macro instrument. [tf with N or history, needs series]

  • macro_net_liquidity: Fed net liquidity, USD (balance sheet - TGA - reverse repo).

  • macro_correlations: Correlations between crypto and macro series. [now, 1 point]

  • macro_momentum: 30-day and 90-day momentum of the macro series. [now, 1 point]

  • macro_risk: Macro risk-on / risk-off score with its signals. [now, 1 point]

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": {
      "fields": "<fields>"
    },
    "name": "get_macro_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
lastNoHistory over the last '48h' / '30d' (whole buckets).
limitNoN latest points per series (default 1).
detailNosummary: one row per series + summary; full: every column.compact
fieldsYesFields (FIELDS below).
seriesNoFRED series (DGS10) or intraday instrument (PAXGUSDT).
columnsNoColumns to keep, e.g. ["close", "volume"].
dry_runNoPlans the call without making it: its quota cost, your remaining rate and quota, the checks. No data, no quota.
since_msNoHistory start: epoch ms, ISO date or '48h' ago.
until_msNoHistory end.
timeframeNoStep of macro_intraday.
max_tokensNoResponse budget, estimated tokens (default 6000).
max_quota_costNoRefuses the call, before any request, if it would use more quota requests than this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly and non-destructive, and the schema documents dry_run, so the safety and cost story is covered structurally. The description still adds genuine behavior beyond that: rows are newest-first, each row is dated at the START of its bucket (first_time + i x step_s), null plus 'unavailable' means no data, _pct is percent and _ratio is fraction, and a daily/monthly series is legitimately days or weeks old. Return shape and pagination behavior are not described, keeping this at a 3 rather than higher.

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

Conciseness3/5

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

There is almost no filler, but the text is a chain of semicolon-clipped fragments that is dense to the point of being hard to parse, and the FIELDS block partly duplicates the schema's fields enum. The example is useful; the prose would benefit from clearer sentence boundaries and front-loading the primary use case.

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 12 parameters, no output schema and six selectable field groups, this is a complex tool, and the description covers the main axes: series vs all-series mode, window vs history, bucketing and dating conventions, null semantics, unit conventions, and where to find series names and units. Gaps remain around response size/truncation behavior and the computed fields' exact meaning, but nothing essential to calling it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter including last/limit/since_ms/until_ms/timeframe/detail already carries its own documentation and the baseline is 3. The description supplements this with cross-parameter semantics the schema cannot express, notably 'No window = current value; since_ms/until_ms/last = history' and that timeframe is macro_intraday-only, but it adds no syntax or format detail for individual parameters.

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

Purpose4/5

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

The description names a concrete verb/resource pairing ('US macro: one FRED `series`... without series, the latest of every series') plus intraday and computed-field variants, so an agent knows it returns macro time series. It is clear about what is returned but written in a compressed telegraphic register that requires careful parsing to extract the scope.

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?

It gives explicit routing rules: series optional for `macro` but required for `macro_intraday`; `timeframe` applies only to macro_intraday; catalog lookup is delegated to get_system_info. It also steers reading intent ('for a total, an extreme or a change read summary, for the period covered read ranges') and units to describe_fields, though it never states when not to use the tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources