Skip to main content
Glama

FELPRA Trading Intelligence

Macro Context

get_macro_context
Read-onlyIdempotent

Use when the question is about a macro factor — rates and bonds, the dollar and FX, VIX, credit, liquidity, inflation, commodities or energy — and which markets or stocks it is linked to. Returns headline claims, the macro category's regime state per interval and its instruments, macro categories with tracked lead-lag links to it, the markets the engine assumes it affects (tuned priors), symbols its instruments lead, topic-tagged news, and gaps. Not for one stock (use get_symbol_context) or a whole market (use get_market_context). Provides regime, signal-score and linkage context with sample sizes and measured hit rates; every link carries its evidence and every empty section is listed in gaps. Not a real-time quote, fundamentals, or full-text news source. Output nature: Self-contained context for one entity: observed state, tracked links with their evidence and sample sizes, and explicit gaps. Not investment advice.

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": {
      "macro": "<macro>"
    },
    "name": "get_macro_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax links per section (default 8, max 50).
macroYesMacro category id (bonds, commodities, credit, energy, forex, inflation, liquidity, vix), a macro word (금리, 달러, 유가, 변동성, high yield) or an instrument (^VIX, HYG, DX-Y.NYB).
questionNoOptional. The user's original question, used only for service improvement analytics. Does not change the response. Do not include personal information.

Output Schema

NameRequiredDescriptionDefault
gapsNo
metaNo
newsNo
selfNo
peersNo
entityNo
headlineNo
upstreamNo
timestampYesRFC3339 UTC, server build time
disclaimerYesCanonical compliance disclaimer (always present)
downstreamNo
request_idYes32-hex per-response correlation id
resolutionNo
data_classificationNo
is_investment_adviceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare read-only, closed-world, idempotent, non-destructive, so the safety profile is covered. Description adds value by enumerating returned sections, disclosing sample sizes, measured hit rates, per-link evidence, and explicit gaps. Lacks detail on latency/coverage limits or how tuned priors are derived, so a 3 is fair.

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 use condition, then returns, then exclusions—good structure. The returns inventory is long and dense, but each element is distinct; the trailing 'Output nature' line slightly duplicates earlier content.

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?

Output schema exists, so return-value detail is optional; still, description sketches the response shape. Prerequisites (auth? rate limits?) and behavior for unknown macro ids are unaddressed, a minor gap given rich annotations and schema.

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 the baseline of 3 applies; the description adds no meaning beyond it. The macro param's accepted forms (ids, words, instruments) live entirely in the schema, not the description.

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?

Specific verb+resource (macro context for a macro factor category), enumerates the covered domains and explicitly delimits against siblings get_symbol_context and get_market_context.

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

Usage Guidelines5/5

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

States when to use it ('question is about a macro factor') and when not ('Not for one stock... or a whole market'), naming the alternatives. Also excludes real-time quotes, fundamentals, full-text news.

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.