Skip to main content
Glama
felpra-trading-mcp

felpra-trading-mcp

Official

Macro Context

get_macro_context
Read-onlyIdempotent

Retrieve macro-factor regime, signal and lead-lag context—rates, FX, VIX, credit, inflation, energy—plus linked markets and stocks, with evidence and gaps.

Instructions

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
viewNo"full" (default) or "compact". compact keeps headline, meta, self (with conflicts), gaps and skill, up to 3 links per section, and leaves out methodology text; response_view.omitted lists what was left out.full
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 observedv0.7.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare a read-only, idempotent, non-destructive, non-open-world read, so the safety bar is low; the description goes far beyond by disclosing what the payload contains (regime, signal-score, linkage context), that links carry evidence and measured hit rates with sample sizes, and that empty sections are enumerated in gaps. That last point is genuinely useful behavioral disclosure an agent could not infer from annotations, and nothing contradicts readOnlyHint=true.

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?

Despite its length, it is front-loaded with the trigger first, then payload contents, then exclusions, which is the right order for an agent scanning for applicability. A few clauses are near-duplicative (the closing disclaimers about not being advice, quotes, fundamentals, or news restate earlier exclusions), costing it the top score.

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

Completeness5/5

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

An output schema exists, so return-value mechanics need not be explained, yet the description still characterizes the payload shape (evidence per link, sample sizes, gaps). For a 4-parameter read tool, nothing an agent needs in order to choose and call 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 description coverage is 100% and the schema already documents view, limit, macro, and question in detail, so the parameter layer is already fully served. The description adds only a loose gloss on the macro parameter's value space (matching the ids listed in the schema) and says nothing about view, limit, or the analytics-only question parameter. Baseline 3 is appropriate.

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 description opens with a specific trigger plus resource enumeration (rates/bonds, FX, VIX, credit, liquidity, inflation, commodities, energy) and then states exactly what is returned: headline claims, regime state per interval, instruments, lead-lag linked categories, tuned priors, tagged news, and gaps. It explicitly separates itself from the two nearest siblings (get_symbol_context for one stock, get_market_context for a whole market), so an agent can route without inspecting schemas.

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?

It gives an explicit when-to-use condition ("Use when the question is about a macro factor") and an explicit when-not clause naming the alternative for each exclusion case. It also rules out adjacent purposes (real-time quote, fundamentals, full-text news), leaving no ambiguity about which tool handles those needs.

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