Skip to main content
Glama
felpra-trading-mcp

felpra-trading-mcp

Official

Market Context

get_market_context
Read-onlyIdempotent

Get whole-market context for KR, US, or crypto: regime, structure, group positioning, macro links, news, and explicit data gaps—not for single sectors or stocks.

Instructions

Use when the question is about a whole market (KR, US, CRYPTO) — its structure regime and how its groups are positioned. Returns headline claims, the market's structure and global macro regime, the macro categories assumed to affect it (with tuned lags), its groups ordered by distance from the middle regime stage, market-tagged news, and gaps. Not for one sector or stock (use get_group_context or get_symbol_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": {
      "market": "<market>"
    },
    "name": "get_market_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).
marketYescrypto / kr_stock / us_stock, or a market word (KR, 국장, 코스피, US, 미장, 나스닥, 코인).
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.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world, non-destructive, so the safety profile is free. The description adds real value: what sections come back (regime, lagged macro categories, groups ordered by distance from middle stage, market-tagged news, gaps), that every link carries evidence and sample sizes, and that gaps are enumerated rather than silent. Slightly redundant with the existing output schema on the section list, which keeps it from a 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 trigger and scope, then boundaries, then return contents. Dense but every clause carries information; only the middle enumeration of response sections drifts toward listy overlap with the output schema.

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?

For a four-parameter read tool with annotations and an output schema, the description covers selection criteria, scope limits, and return character (evidence-backed links, explicit gaps, not real-time). Nothing an agent needs to invoke it correctly is missing; the section enumeration is mildly duplicative of the 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% and each parameter, including the market enum and view/limit defaults, is documented in the schema itself. The description adds no syntax or format detail about any parameter, so the baseline 3 applies.

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?

First sentence states a concrete verb and scope: whole-market (KR, US, CRYPTO) structure regime and group positioning. It explicitly names the siblings it is not (get_group_context, get_symbol_context), so an agent can route without opening any schema.

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?

Gives an explicit trigger ("question is about a whole market"), an explicit exclusion for single sector/stock with the alternative tools named, and a negative boundary (not a quote, fundamentals, or full-text news source). Little is left to inference.

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