Skip to main content
Glama

F1ow Crypto Market Data & Research MCP

Trade Plan Check & Replay

research_trade_plan
Read-only

Check, review or replay a perp trade setup (entry, stop, optional target), before it is placed or after: the tool for 'check this setup', 'is this trade good' and 'how did my trade do'. Renders an interactive trade ticket. Give the coin, entry and stop; optionally target, leverage, order type, placed_at, and account size with risk percent. Returns reward:risk, the stop's distance in % and 4h ATR, the isolated liquidation price at the leverage (first-tier 0.5% maintenance margin, so the optimistic case), funding per day at the current rate (in % of notional, and in USD when sized), the perp levels around the setup (from flow_levels: volume nodes, value area, liquidation clusters, entries, walls), and named checks: liquidation before the stop, price already through the stop, a stop inside one ATR of noise, a stop just in front of a level a wick would reach for, a level between entry and target, reward:risk under 2:1, costs that pull a 2:1 plan under it, leverage over 10x, and an entry far from live. Costs: fees per fill (a venue's base tier, Binance by default; override with venue, fee_bps, maker_fee_bps), funding carry over hold_hours at the current rate with the rate's 1y percentile, and, when sized, the slippage of a market exit of the whole size at the stop against today's visible book; they give a net reward:risk, the break-even win rate, and the stop, target and liquidation outcomes in R (and USD and % of account when sized). Everything reads in R and % without an account; give account_size and risk_percent (both or neither) to add the fixed-fractional size, notional and margin. Pass placed_at (when the order was placed) to replay the setup since then from public candles, filling the entry by order_type: a limit fills when price comes to it (or at once if it was already marketable, e.g. a buy limit above the market), a stop entry when price comes through it, a market order at placement; R is measured from the actual fill. Statuses: PENDING, MISSED (target traded before the entry), OPEN with the result and best/worst so far in R, STOPPED, TARGET, or AMBIGUOUS when one candle reached both; plus funding paid while open. Nothing about the plan is stored: the numbers come in, the replay goes out, and planLine is the one-line copy to bring the plan back later. Use it after research_opportunities or flow_levels has suggested a setup; it is a check of the setup, 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": {
      "symbol": "<symbol>",
      "entry": "<entry>",
      "stop": "<stop>"
    },
    "name": "research_trade_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopYesStop-loss price (below entry = long, above = short)
entryYesPlanned entry price
venueNoOptional venue whose base-tier fees to apply. Default binance (5 bps taker, 2 bps maker).
symbolYesCoin symbol, e.g. "ETH".
targetNoOptional take-profit price
fee_bpsNoOptional taker fee per fill in bps of notional (e.g. 4.5), when the user states their own fee tier. Overrides the venue's.
leverageNoOptional leverage the position is opened at, 1–200, for the liquidation price. Default when sized: the smallest whole leverage that carries the notional; unsized: no liquidation price unless given.
placed_atNoWhen the order was placed, as ISO 8601 (e.g. 2026-10-14T12:00:00Z) or unix time, up to 90 days back. Pass it whenever the user says when the trade was placed or opened ('placed 2026-10-12T12:00Z', 'opened yesterday at 14:00'): with it the tool replays the trade and reports filled / stopped / target / open; without it the plan is checked as if not yet placed.
hold_hoursNoOptional expected holding time in hours, e.g. 72 for three days: prices the funding carry over the hold into the net reward:risk.
order_typeNoHow the entry was placed, for the replay. limit (default): fills when price comes to the entry, or at once if the entry was already on the far side of the market. stop: a breakout trigger that fills when price comes through the entry. market: filled at placement. Omit it when the user hasn't said: if the entry was through the market at placement, one call returns both readings (lifecycle as a limit, alternativeLifecycle as a stop); ask the user which applies rather than calling again. Also sets the entry fee: a resting limit pays maker, anything else taker.
account_sizeNoOptional account equity in USD, with risk_percent: adds the position size, notional and margin. Leave both out when the user didn't give them.
risk_percentNoOptional percent of the account lost if the stop is hit, e.g. 1; only with account_size
maker_fee_bpsNoOptional maker fee per fill in bps (negative for a rebate). Overrides the venue's.

Output Schema

NameRequiredDescriptionDefault
costsYesWhat running the plan costs beyond its geometry, and the outcomes net of it
rulesYesThe check rules and constants in words
atrUsdNo14-period ATR on atrInterval candles, USD; absent without usable candles
checksYesNamed findings about the plan
levelsYesPerp levels around the setup, from flow_levels
sizingNoFixed-fractional size; present only when account_size and risk_percent were given
symbolYes
optionsNoOptions-implied move over the hold window (Deribit ATM IV), stop/target in implied sigma, risk-neutral stop/target odds and modeled gamma levels (under gamma). Its checks also appear in checks with source options. Present when the coin has listed options and the plan is not a closed replay.
stopUsdYesStop-loss, USD
entryUsdYesPlanned entry, USD
guidanceYesInstructions for the model
leverageNoLeverage used for the liquidation price, as a multiple; absent when unsized and not given
planLineYesOne-line copy of the plan to bring it back later
directionYesSide implied by stop below (long) or above (short) the entry
lifecycleNoReplay of the order since placed_at; present only when placed_at was given and candles were available
marginUsdNoIsolated margin, USD; absent without a size
targetUsdNoTake-profit, USD; absent when none was given
accountUsdNoAccount equity, USD; absent when not given
rewardRiskNoReward over risk; absent without a target on the profit side
atrIntervalYesCandle interval ATR is measured on
riskPercentNoPercent of the account lost if the stop is hit; absent when not given
livePriceUsdNoLive price, USD; absent when no price source covers the coin
sourcesFailedYesInputs that were unavailable
leverageAssumedYesTrue when leverage was derived as the smallest whole leverage that carries the notional
stopDistancePctYesEntry to stop in percent of entry: the size of 1R
fundingPctPerDayNoFunding paid (positive) or received per day at the current rate, percent of notional
fundingRateBasisNoWhich funding leg the rate is, as funding_current labels it
fundingUsdPerDayNoThe same in USD; sized plans only
fundingBaseline1yNoThe current rate ranked against a year of daily closes; absent when there is no baseline
liquidationPriceUsdNoIsolated liquidation price at the leverage, USD (first-tier maintenance margin, before fees)
alternativeLifecycleNoThe stop-entry reading, present when order_type was not given and the entry was through the market at placement
fundingRatePctPerHourNoCurrent funding rate, percent per hour; positive means longs pay
maintenanceMarginRateYesMaintenance margin as a fraction of notional (0.005 = 0.5%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "accountUsd": {
      +      "description": "Account equity, USD; absent when not given",
      +      "type": "number"
      +    },
      +    "alternativeLifecycle": {
      +      "description": "The stop-entry reading, present when order_type was not given and the entry was through the market at placement",
      +      "properties": {
      +        "bestR": {
      +          "description": "Best excursion after the fill, R",
      +          "type": "number"
      +        },
      +        "coveredFromMs": {
      +          "description": "Earliest candle seen, Unix epoch milliseconds; later than placedAtMs means that stretch is unknown",
      +          "type": "integer"
      +        },
      +        "entryThroughMarket": {
      +          "description": "The entry was already through the market when placed, so a limit and a stop order are different trades",
      +          "type": "boolean"
      +        },
      +        "events": {
      +          "items": {
      +            "properties": {
      +              "kind": {
      +                "description": "filled, stopped or target",
      +                "type": "string"
      +              },
      +              "priceUsd": {
      +                "description": "Price, USD",
      +                "type": "number"
      +              },
      +              "timeMs": {
      +                "description": "Unix epoch milliseconds",
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "timeMs",
      +              "priceUsd"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "fundingBasis": {
      +          "description": "How funding was measured: history or current rate",
      +          "type": "string"
      +        },
      +        "fundingPaidPct": {
      +          "description": "Funding paid (positive) or received, percent of notional",
      +          "type": "number"
      +        },
      +        "fundingPaidUsd": {
      +          "description": "Funding paid (positive) or received over the open period, USD; sized plans only",
      +          "type": "number"
      +        },
      +        "interval": {
      +          "description": "Candle interval replayed",
      +          "type": "string"
      +        },
      +        "notes": {
      +          "description": "What the replay cannot resolve from candles",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "orderType": {
      +          "description": "Entry order the replay assumed",
      +          "enum": [
      +            "limit",
      +            "stop",
      +            "market"
      +          ],
      +          "type": "string"
      +        },
      +        "placedAtMs": {
      +          "description": "When the order was placed, Unix epoch milliseconds",
      +          "type": "integer"
      +        },
      +        "resultR": {
      +          "description": "Result in R (multiples of the planned risk): realized at an exit, mark-to-market while open",
      +          "type": "number"
      +        },
      +        "status": {
      +          "description": "Where the order stands: PENDING (entry not reached), MISSED (target traded before the entry), OPEN, STOPPED, TARGET, AMBIGUOUS (stop and target in one candle)",
      +          "enum": [
      +            "PENDING",
      +            "MISSED",
      +            "OPEN",
      +            "STOPPED",
      +            "TARGET",
      +            "AMBIGUOUS"
      +          ],
      +          "type": "string"
      +        },
      +        "worstR": {
      +          "description": "Worst excursion after the fill, R",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "orderType",
      +        "placedAtMs",
      +        "interval",
      +        "events",
      +        "entryThroughMarket",
      +        "notes"
      +      ],
      +      "type": "object"
      +    },
      +    "atrInterval": {
      +      "description": "Candle interval ATR is measured on",
      +      "type": "string"
      +    },
      +    "atrUsd": {
      +      "description": "14-period ATR on atrInterval candles, USD; absent without usable candles",
      +      "type": "number"
      +    },
      +    "checks": {
      +      "description": "Named findings about the plan",
      +      "items": {
      +        "properties": {
      +          "code": {
      +            "description": "Stable check id",
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "danger",
      +              "warn",
      +              "info"
      +            ],
      +            "type": "string"
      +          },
      +          "text": {
      +            "description": "The finding in words",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity",
      +          "text"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "costs": {
      +      "description": "What running the plan costs beyond its geometry, and the outcomes net of it",
      +      "properties": {
      +        "breakEvenWinRatePct": {
      +          "description": "Win rate that breaks even after costs, percent",
      +          "type": "number"
      +        },
      +        "carryPct": {
      +          "description": "Funding carry over the hold, percent of notional",
      +          "type": "number"
      +        },
      +        "carryR": {
      +          "description": "Funding carry over the hold, in R",
      +          "type": "number"
      +        },
      +        "carryUsd": {
      +          "description": "Funding carry over the hold, USD; sized plans only",
      +          "type": "number"
      +        },
      +        "entryFill": {
      +          "description": "Which fee the entry pays",
      +          "enum": [
      +            "maker",
      +            "taker"
      +          ],
      +          "type": "string"
      +        },
      +        "feeBasis": {
      +          "description": "Where the fee schedule comes from",
      +          "type": "string"
      +        },
      +        "grossBreakEvenWinRatePct": {
      +          "description": "Win rate that breaks even before costs, percent",
      +          "type": "number"
      +        },
      +        "holdHours": {
      +          "description": "Holding time the carry is priced over, hours",
      +          "type": "number"
      +        },
      +        "makerFeeBps": {
      +          "description": "Maker fee per fill, bps of notional (negative is a rebate)",
      +          "type": "number"
      +        },
      +        "netRewardRisk": {
      +          "description": "Reward over risk after fees, slippage and carry",
      +          "type": "number"
      +        },
      +        "scenarios": {
      +          "description": "How the trade can end, net of costs",
      +          "items": {
      +            "properties": {
      +              "accountPct": {
      +                "description": "Result, percent of the account; sized plans only",
      +                "type": "number"
      +              },
      +              "ifStopFails": {
      +                "description": "A liquidation the stop closes the trade before: reached only if the stop fails to fill",
      +                "type": "boolean"
      +              },
      +              "name": {
      +                "type": "string"
      +              },
      +              "pnlUsd": {
      +                "description": "Result, USD; sized plans only",
      +                "type": "number"
      +              },
      +              "priceUsd": {
      +                "description": "Exit price, USD",
      +                "type": "number"
      +              },
      +              "r": {
      +                "description": "Result in R (multiples of the planned risk)",
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "name",
      +              "priceUsd",
      +              "r",
      +              "ifStopFails"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "stopSlippageBps": {
      +          "description": "Slippage of a market exit at the stop against the visible book, bps; sized plans only",
      +          "type": "number"
      +        },
      +        "stopSlippageComplete": {
      +          "description": "False when the visible book could not fill the whole exit",
      +          "type": "boolean"
      +        },
      +        "takerFeeBps": {
      +          "description": "Taker fee per fill, bps of notional",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "takerFeeBps",
      +        "makerFeeBps",
      +        "feeBasis",
      +        "entryFill",
      +        "stopSlippageComplete",
      +        "scenarios"
      +      ],
      +      "type": "object"
      +    },
      +    "direction": {
      +      "description": "Side implied by stop below (long) or above (short) the entry",
      +      "enum": [
      +        "long",
      +        "short"
      +      ],
      +      "type": "string"
      +    },
      +    "entryUsd": {
      +      "description": "Planned entry, USD",
      +      "type": "number"
      +    },
      +    "fundingBaseline1y": {
      +      "description": "The current rate ranked against a year of daily closes; absent when there is no baseline",
      +      "properties": {
      +        "days": {
      +          "description": "Settled days ranked against",
      +          "type": "integer"
      +        },
      +        "highPctPerHour": {
      +          "description": "Year's high, percent per hour",
      +          "type": "number"
      +        },
      +        "lowPctPerHour": {
      +          "description": "Year's low, percent per hour",
      +          "type": "number"
      +        },
      +        "medianPctPerHour": {
      +          "description": "Year's median, percent per hour",
      +          "type": "number"
      +        },
      +        "percentile": {
      +          "description": "Rank among the year's settled daily closes, 0-100",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "percentile",
      +        "days",
      +        "medianPctPerHour",
      +        "lowPctPerHour",
      +        "highPctPerHour"
      +      ],
      +      "type": "object"
      +    },
      +    "fundingPctPerDay": {
      +      "description": "Funding paid (positive) or received per day at the current rate, percent of notional",
      +      "type": "number"
      +    },
      +    "fundingRateBasis": {
      +      "description": "Which funding leg the rate is, as funding_current labels it",
      +      "type": "string"
      +    },
      +    "fundingRatePctPerHour": {
      +      "description": "Current funding rate, percent per hour; positive means longs pay",
      +      "type": "number"
      +    },
      +    "fundingUsdPerDay": {
      +      "description": "The same in USD; sized plans only",
      +      "type": "number"
      +    },
      +    "guidance": {
      +      "description": "Instructions for the model",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "levels": {
      +      "description": "Perp levels around the setup, from flow_levels",
      +      "items": {
      +        "properties": {
      +          "evidence": {
      +            "type": "string"
      +          },
      +          "kind": {
      +            "description": "Level kind, e.g. volume node, liquidation cluster",
      +            "type": "string"
      +          },
      +          "outsized": {
      +            "type": "boolean"
      +          },
      +          "priceHi": {
      +            "description": "Zone high, USD",
      +            "type": "number"
      +          },
      +          "priceLo": {
      +            "description": "Zone low, USD",
      +            "type": "number"
      +          },
      +          "strength": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "priceLo",
      +          "priceHi",
      +          "kind",
      +          "evidence",
      +          "strength",
      +          "outsized"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "leverage": {
      +      "description": "Leverage used for the liquidation price, as a multiple; absent when unsized and not given",
      +      "type": "number"
      +    },
      +    "leverageAssumed": {
      +      "description": "True when leverage was derived as the smallest whole leverage that carries the notional",
      +      "type": "boolean"
      +    },
      +    "lifecycle": {
      +      "description": "Replay of the order since placed_at; present only when placed_at was given and candles were available",
      +      "properties": {
      +        "bestR": {
      +          "description": "Best excursion after the fill, R",
      +          "type": "number"
      +        },
      +        "coveredFromMs": {
      +          "description": "Earliest candle seen, Unix epoch milliseconds; later than placedAtMs means that stretch is unknown",
      +          "type": "integer"
      +        },
      +        "entryThroughMarket": {
      +          "description": "The entry was already through the market when placed, so a limit and a stop order are different trades",
      +          "type": "boolean"
      +        },
      +        "events": {
      +          "items": {
      +            "properties": {
      +              "kind": {
      +                "description": "filled, stopped or target",
      +                "type": "string"
      +              },
      +              "priceUsd": {
      +                "description": "Price, USD",
      +                "type": "number"
      +              },
      +              "timeMs": {
      +                "description": "Unix epoch milliseconds",
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "timeMs",
      +              "priceUsd"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "fundingBasis": {
      +          "description": "How funding was measured: history or current rate",
      +          "type": "string"
      +        },
      +        "fundingPaidPct": {
      +          "description": "Funding paid (positive) or received, percent of notional",
      +          "type": "number"
      +        },
      +        "fundingPaidUsd": {
      +          "description": "Funding paid (positive) or received over the open period, USD; sized plans only",
      +          "type": "number"
      +        },
      +        "interval": {
      +          "description": "Candle interval replayed",
      +          "type": "string"
      +        },
      +        "notes": {
      +          "description": "What the replay cannot resolve from candles",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "orderType": {
      +          "description": "Entry order the replay assumed",
      +          "enum": [
      +            "limit",
      +            "stop",
      +            "market"
      +          ],
      +          "type": "string"
      +        },
      +        "placedAtMs": {
      +          "description": "When the order was placed, Unix epoch milliseconds",
      +          "type": "integer"
      +        },
      +        "resultR": {
      +          "description": "Result in R (multiples of the planned risk): realized at an exit, mark-to-market while open",
      +          "type": "number"
      +        },
      +        "status": {
      +          "description": "Where the order stands: PENDING (entry not reached), MISSED (target traded before the entry), OPEN, STOPPED, TARGET, AMBIGUOUS (stop and target in one candle)",
      +          "enum": [
      +            "PENDING",
      +            "MISSED",
      +            "OPEN",
      +            "STOPPED",
      +            "TARGET",
      +            "AMBIGUOUS"
      +          ],
      +          "type": "string"
      +        },
      +        "worstR": {
      +          "description": "Worst excursion after the fill, R",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "orderType",
      +        "placedAtMs",
      +        "interval",
      +        "events",
      +        "entryThroughMarket",
      +        "notes"
      +      ],
      +      "type": "object"
      +    },
      +    "liquidationPriceUsd": {
      +      "description": "Isolated liquidation price at the leverage, USD (first-tier maintenance margin, before fees)",
      +      "type": "number"
      +    },
      +    "livePriceUsd": {
      +      "description": "Live price, USD; absent when no price source covers the coin",
      +      "type": "number"
      +    },
      +    "maintenanceMarginRate": {
      +      "description": "Maintenance margin as a fraction of notional (0.005 = 0.5%)",
      +      "type": "number"
      +    },
      +    "marginUsd": {
      +      "description": "Isolated margin, USD; absent without a size",
      +      "type": "number"
      +    },
      +    "options": {
      +      "description": "Options-implied move over the hold window (Deribit ATM IV), stop/target in implied sigma, risk-neutral stop/target odds and modeled gamma levels (under gamma). Its checks also appear in checks with source options. Present when the coin has listed options and the plan is not a closed replay.",
      +      "type": "object"
      +    },
      +    "planLine": {
      +      "description": "One-line copy of the plan to bring it back later",
      +      "type": "string"
      +    },
      +    "rewardRisk": {
      +      "description": "Reward over risk; absent without a target on the profit side",
      +      "type": "number"
      +    },
      +    "riskPercent": {
      +      "description": "Percent of the account lost if the stop is hit; absent when not given",
      +      "type": "number"
      +    },
      +    "rules": {
      +      "description": "The check rules and constants in words",
      +      "type": "string"
      +    },
      +    "sizing": {
      +      "description": "Fixed-fractional size; present only when account_size and risk_percent were given",
      +      "properties": {
      +        "impliedLeverage": {
      +          "description": "Notional over account, as a multiple",
      +          "type": "number"
      +        },
      +        "positionNotionalUsd": {
      +          "description": "Position notional, USD",
      +          "type": "number"
      +        },
      +        "positionSizeUnits": {
      +          "description": "Position size, coin units",
      +          "type": "number"
      +        },
      +        "riskAmountUsd": {
      +          "description": "Amount lost at the stop, USD",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "riskAmountUsd",
      +        "positionSizeUnits",
      +        "positionNotionalUsd",
      +        "impliedLeverage"
      +      ],
      +      "type": "object"
      +    },
      +    "sourcesFailed": {
      +      "description": "Inputs that were unavailable",
      +      "items": {
      +        "properties": {
      +          "error": {
      +            "type": "string"
      +          },
      +          "source": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "source",
      +          "error"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "stopDistancePct": {
      +      "description": "Entry to stop in percent of entry: the size of 1R",
      +      "type": "number"
      +    },
      +    "stopUsd": {
      +      "description": "Stop-loss, USD",
      +      "type": "number"
      +    },
      +    "symbol": {
      +      "type": "string"
      +    },
      +    "targetUsd": {
      +      "description": "Take-profit, USD; absent when none was given",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "symbol",
      +    "direction",
      +    "entryUsd",
      +    "stopUsd",
      +    "stopDistancePct",
      +    "leverageAssumed",
      +    "maintenanceMarginRate",
      +    "costs",
      +    "atrInterval",
      +    "checks",
      +    "levels",
      +    "guidance",
      +    "planLine",
      +    "sourcesFailed",
      +    "rules"
      +  ],
      +  "type": "object"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / fee_bps
      Added value: +{
      +  "description": "Optional taker fee per fill in bps of notional (e.g. 4.5), when the user states their own fee tier. Overrides the venue's.",
      +  "type": "number"
      +}
    • addedInput schema / properties / hold_hours
      Added value: +{
      +  "description": "Optional expected holding time in hours, e.g. 72 for three days: prices the funding carry over the hold into the net reward:risk.",
      +  "type": "number"
      +}
    • addedInput schema / properties / maker_fee_bps
      Added value: +{
      +  "description": "Optional maker fee per fill in bps (negative for a rebate). Overrides the venue's.",
      +  "type": "number"
      +}
    • changedInput schema / properties / order_type / description
      Previous value: -"How the entry was placed, for the replay. limit (default): fills when price comes to the entry, or at once if the entry was already on the far side of the market. stop: a breakout trigger that fills when price comes through the entry. market: filled at placement. Omit it when the user hasn't said: if the entry was through the market at placement, one call returns both readings (lifecycle as a limit, alternativeLifecycle as a stop); ask the user which applies rather than calling again."New value: +"How the entry was placed, for the replay. limit (default): fills when price comes to the entry, or at once if the entry was already on the far side of the market. stop: a breakout trigger that fills when price comes through the entry. market: filled at placement. Omit it when the user hasn't said: if the entry was through the market at placement, one call returns both readings (lifecycle as a limit, alternativeLifecycle as a stop); ask the user which applies rather than calling again. Also sets the entry fee: a resting limit pays maker, anything else taker."
    • addedInput schema / properties / venue
      Added value: +{
      +  "description": "Optional venue whose base-tier fees to apply. Default binance (5 bps taker, 2 bps maker).",
      +  "enum": [
      +    "binance",
      +    "bybit",
      +    "okx",
      +    "hyperliquid",
      +    "bingx",
      +    "bitget"
      +  ],
      +  "type": "string"
      +}
  3. Changed4 schema fields changed
    • changedInput schema / properties / account_size / description
      Previous value: -"Account equity in USD"New value: +"Optional account equity in USD, with risk_percent: adds the position size, notional and margin. Leave both out when the user didn't give them."
    • changedInput schema / properties / leverage / description
      Previous value: -"Optional leverage the position is opened at, 1–200. Default: the smallest whole leverage that carries the notional."New value: +"Optional leverage the position is opened at, 1–200, for the liquidation price. Default when sized: the smallest whole leverage that carries the notional; unsized: no liquidation price unless given."
    • changedInput schema / properties / risk_percent / description
      Previous value: -"Percent of the account lost if the stop is hit, e.g. 1"New value: +"Optional percent of the account lost if the stop is hit, e.g. 1; only with account_size"
    • changedInput schema / required
      Previous value: -[
      -  "symbol",
      -  "entry",
      -  "stop",
      -  "account_size",
      -  "risk_percent"
      -]New value: +[
      +  "symbol",
      +  "entry",
      +  "stop"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / order_type / description
      Previous value: -"How the entry was placed, for the replay. limit (default): fills when price comes to the entry, or at once if the entry was already on the far side of the market. stop: a breakout trigger that fills when price comes through the entry. market: filled at placement. Ask the user when an entry above the market (long) or below it (short) could be either."New value: +"How the entry was placed, for the replay. limit (default): fills when price comes to the entry, or at once if the entry was already on the far side of the market. stop: a breakout trigger that fills when price comes through the entry. market: filled at placement. Omit it when the user hasn't said: if the entry was through the market at placement, one call returns both readings (lifecycle as a limit, alternativeLifecycle as a stop); ask the user which applies rather than calling again."
  5. Changed1 schema field changed
    • changedInput schema / properties / placed_at / description
      Previous value: -"Optional: when the order was placed, as ISO 8601 (e.g. 2026-10-14T12:00:00Z) or unix time, up to 90 days back. Replays the plan since then."New value: +"When the order was placed, as ISO 8601 (e.g. 2026-10-14T12:00:00Z) or unix time, up to 90 days back. Pass it whenever the user says when the trade was placed or opened ('placed 2026-10-12T12:00Z', 'opened yesterday at 14:00'): with it the tool replays the trade and reports filled / stopped / target / open; without it the plan is checked as if not yet placed."
  6. Changed1 schema field changed
    • addedInput schema / properties / order_type
      Added value: +{
      +  "description": "How the entry was placed, for the replay. limit (default): fills when price comes to the entry, or at once if the entry was already on the far side of the market. stop: a breakout trigger that fills when price comes through the entry. market: filled at placement. Ask the user when an entry above the market (long) or below it (short) could be either.",
      +  "enum": [
      +    "limit",
      +    "stop",
      +    "market"
      +  ],
      +  "type": "string"
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / placed_at
      Added value: +{
      +  "description": "Optional: when the order was placed, as ISO 8601 (e.g. 2026-10-14T12:00:00Z) or unix time, up to 90 days back. Replays the plan since then.",
      +  "type": "string"
      +}
  8. Added

TDQS

A4.7/5.0
Behavior5/5

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

The annotations only say readOnlyHint=true, but the description adds a lot beyond that: it discloses the maintenance-margin assumption ("first-tier 0.5% maintenance margin, so the optimistic case"), the fee defaults and override path, the funding-carry model, the exact set of named checks performed, all replay statuses including AMBIGUOUS, and that nothing is persisted ("the numbers come in, the replay goes out"). That is the kind of modeling-assumption disclosure an agent needs for a computation tool.

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?

The open is well front-loaded and the whole thing is topical, but it is delivered as two very long, dense paragraphs with run-on enumerations of checks, costs and statuses. Every clause is arguably functional, yet a bulleted or segmented layout would make the same content far more scannable for an agent.

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?

This is a high-complexity 13-parameter computation and replay tool, and the description covers the input combinations, the cost model, the check list and the replay lifecycle. It also explains return values in detail even though an output schema exists, so nothing an agent needs in order to call it correctly is missing.

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 already 100% and the per-parameter descriptions are themselves detailed, so the description largely reinforces rather than adds. Where it does add real meaning is in combination rules: account_size and risk_percent must be given "both or neither", leverage defaults derive from sizing, and order_type drives both the fill model and whether the entry pays maker or taker. Those cross-parameter interactions are worth more than the baseline 3, but there is some redundancy with the schema text.

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?

States a specific verb set and resource: "Check, review or replay a perp trade setup (entry, stop, optional target), before it is placed or after." It then distinguishes itself from siblings explicitly ("it is a check of the setup, not a signal") and names the tools that feed it, so an agent can classify it without opening the 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 explicit when-to-use both ways: pass placed_at to replay an existing trade, omit it to check a plan as if not yet placed, and use it after research_opportunities or flow_levels. It even prescribes behavior when order_type is unstated (return both lifecycle readings and ask the user rather than calling again), which is genuine routing guidance rather than implied usage.

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.

Resources