Skip to main content
Glama

FELPRA Trading Intelligence

Market Context

get_market_context
Read-onlyIdempotent

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
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 observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive behavior, so the safety profile is covered; the description then goes beyond by disclosing what the payload actually contains — sample sizes, measured hit rates, per-link evidence, and an explicit "gaps" list for empty sections. The scope disclaimers (not real-time quotes, not fundamentals, not full-text news) are non-obvious behavioral limits an agent would otherwise guess wrong on.

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?

The clause about when to use leads the definition and the sibling exclusions follow, so the routing information is front-loaded where an agent will read it. It is longer than necessary, with the final "Output nature:" block partly re-stating the return-contents list and the disclaimer already implied by "not a real-time quote," but no sentence is fully redundant.

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?

With an output schema present, the return shape need not be described, yet the description still gives an accurate contents inventory and an explicit gaps contract. For a single-required-parameter read tool, nothing an agent needs to select or 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%, so the schema already documents market, limit, and the analytics-only question parameter; baseline 3 applies. The description's mention of KR/US/CRYPTO markets echoes the schema's market field but adds no syntax or constraint detail beyond it, and it says nothing about the limit ceiling or the side-effect-free nature of question.

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 specific selection condition ("when the question is about a whole market (KR, US, CRYPTO)") and enumerates exactly what comes back: headline claims, structure/regime, macro categories with tuned lags, groups ranked by distance from the middle regime stage, tagged news, and gaps. It then names the sibling boundary explicitly ("Not for one sector or stock (use get_group_context or get_symbol_context)"), so an agent can separate it from adjacent context tools without reading 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?

States the positive trigger (whole-market questions about structure regime and group positioning) and the negative trigger (one sector or stock) with the alternative tools named for the exclusion case. The closing scope disclaimer ("Not a real-time quote, fundamentals, or full-text news source") adds further when-not guidance that prevents misuse for quote or news lookups.

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.