Skip to main content
Glama

TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures

Market Profile: Value Migration

workflow.run_value_migration
Read-only

Market Profile value-area migration across sessions: is value migrating up, down, or overlapping (directional conviction vs balance)? Use for "is value moving higher day over day?". Returns: state, direction, migration_pct, key_levels (current vs. prior session VAH/VAL/VPOC), tails (session-high/low rejection tails and single prints), scenario_framing, invalidation level. Candles come from the venue when candles[] is omitted (past sessions are cached, so repeats are fast); supplying candles[] makes the run network-free and reproducible. session_date must be a completed UTC session, before today; a session with no candles returns an error. Edge cases: instrument non-empty and venue binance or bybit; session_date is a completed UTC session before today; timeframe 1m, 5m, 15m or 30m (default 15m); value_area_rule 0.5 to 0.9 (default 0.70); supplied candles must each have high at or above low, open and close, low at or below them, and volume 0 or more; a session with no candles is an error. lookback_sessions a whole number 1 to 5 (default 1). Not covered: order flow beyond the candles given, other venues, and any statement about what price will do; the output describes the session and is not a signal.

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": {
      "instrument": "<instrument>",
      "venue": "<venue>",
      "session_date": "<session_date>"
    },
    "name": "workflow.run_value_migration"
  }
}

Input Schema

NameRequiredDescriptionDefault
venueYesExchange to fetch candles from when candles[] not supplied
candlesNoOptional OHLCV for the session; omit to fetch from venue (reproducible + 0 COGS when supplied)
timeframeNoCandle timeframe (default 15m)
instrumentYesSymbol, e.g. BTCUSDT
prev_candlesNoOptional OHLCV for the previous session
session_dateYesSession date YYYY-MM-DD (UTC); must be before today (a completed session)
value_area_ruleNoValue-area fraction 0.5–0.9 (default 0.70)
lookback_sessionsNoSessions to compare, 1–5 (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / session_date / description
      Previous value: -"Session date YYYY-MM-DD (UTC)"New value: +"Session date YYYY-MM-DD (UTC); must be before today (a completed session)"
  2. Changed1 schema field changed
    • changedInput schema / properties / value_area_rule / description
      Previous value: -"Value-area fraction 0.5–0.9 (default 0.71)"New value: +"Value-area fraction 0.5–0.9 (default 0.70)"
  3. Changed1 schema field changed
    • changedInput schema / properties / value_area_rule / description
      Previous value: -"Value-area fraction 0.5–0.9 (default 0.70)"New value: +"Value-area fraction 0.5–0.9 (default 0.71)"
  4. Changed1 schema field changed
    • changedInput schema / properties / candles / description
      Previous value: -"Optional OHLCV for the session — omit to fetch from venue (reproducible + 0 COGS when supplied)"New value: +"Optional OHLCV for the session; omit to fetch from venue (reproducible + 0 COGS when supplied)"
  5. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already establish a safe, open-world read, and the description adds materially beyond them: that candles are fetched from the venue when omitted, that past sessions are cached so repeats are fast, that supplying candles[] makes the run network-free and reproducible, and that a session with no candles is an error. Validation constraints (session must be a completed prior UTC session, candle OHLC/volume invariants) are disclosed up front. It also lists the return fields, so the agent knows what it will receive despite no output schema.

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?

It is well front-loaded (purpose, then question, then returns, then data sourcing, then edge cases), but the 'Edge cases' block largely re-serializes the schema. There is verbatim repetition: 'session_date ... before today' and 'a session with no candles returns an error' each appear twice, which is wasted space in an already dense paragraph.

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?

For an 8-parameter analytical tool with no output schema, the description covers inputs, data provenance, failure modes, return shape, and exclusions. An agent has everything needed to construct a valid call and interpret the result without guessing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description earns above baseline by explaining the cross-parameter interaction between candles[], venue, and caching/reproducibility, which the schema only hints at, and by restating the operative bounds for timeframe, value_area_rule, and lookback_sessions. It never mentions prev_candles, leaving one optional parameter to the schema alone.

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 opens with a specific verb and resource ('Market Profile value-area migration across sessions') and frames the question it answers ('is value migrating up, down, or overlapping'), which is far more than a restated title. It also delimits scope ('Not covered: order flow beyond the candles given, other venues...'), which helps separate it from siblings like run_session_structure. It stops short of naming an actual sibling to route against, so it lands at 4 rather than 5.

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 a concrete triggering question ('Use for "is value moving higher day over day?"') and an explicit exclusion list (order flow, other venues, predictive statements, 'not a signal'). What's missing is a positive alternative: it never says what to reach for instead when the user wants order flow or another venue, so the when-not side is not actionable.

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.