{"apiVersion":"v1","directorySlug":"tradingcalc-mcp-a8c61f4255","title":"TradingCalc","description":"Free, instant trading calculators for crypto futures, forex, and Deribit options (PnL, liquidation, position size, funding costs) plus on-chain safety checks and prediction-market odds. No signup.","pageUrl":"https://www.mcpbundles.com/skills/tradingcalc-mcp-a8c61f4255","connectPath":"importable","connectAction":"import_server","catalogListing":false,"bundleSlug":null,"listingKind":"remote_mcp","kind":"provider","transportUrl":"https://tradingcalc.io/api/mcp","hostedMcpUrl":null,"toolCount":74,"toolInventoryStatus":"observed","refreshedAt":"2026-11-16T18:50:02.677936+00:00","registryName":"io.tradingcalc/tradingcalc-mcp-a8c61f4255","registryVersion":"2026.11.16","registryEligible":true,"tools":[{"name":"workflow.run_pnl_planning","description":"Calculate net PnL, ROE, fees and gross profit/loss for a futures trade. Use when user asks \"what's my profit/loss on this trade?\" Returns: grossPnl, fees, netPnl, netPnlUsdt, roe (%), maxLossBound (only non-null for an inverse/coin-margined short: the finite ceiling on net coin-denominated loss as price rises without limit, (size/entryPrice)×(1+feeOpenPct) - includes the opening fee, since it survives the exit-price-to-infinity limit while the closing fee vanishes - null for every other side/con","inputSchema":{"type":"object","required":["side","entryPrice","exitPrice","size"],"properties":{"side":{"enum":["long","short"],"type":"string"},"size":{"type":"number"},"exitPrice":{"type":"number"},"entryPrice":{"type":"number"},"feeOpenPct":{"type":"number"},"feeClosePct":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_pnl_planning","displayName":"workflow.run_pnl_planning","title":"workflow.run_pnl_planning"},{"name":"workflow.run_liquidation_safety","description":"Calculate the liquidation price for an isolated-margin futures position. Use when user asks \"where will I get liquidated?\" or \"how close is my liq price?\". Returns: liquidationPrice, distancePct (how far from entry).","inputSchema":{"type":"object","required":["side","entryPrice","leverage"],"properties":{"mmr":{"type":"number"},"side":{"enum":["long","short"],"type":"string"},"leverage":{"type":"number"},"entryPrice":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_liquidation_safety","displayName":"workflow.run_liquidation_safety","title":"workflow.run_liquidation_safety"},{"name":"workflow.run_breakeven_planning","description":"Calculate the break-even exit price that covers all trading fees: this alone, nothing else. Use when user asks only \"what price do I need to just break even?\" and nothing more. If the user also gave a stop/target or wants a full trade-safety check, use workflow.run_risk_reward or workflow.run_pre_trade_check instead; both already include this breakeven figure plus more. Returns: breakevenPrice, totalFees.","inputSchema":{"type":"object","required":["side","entryPrice","sizeBase"],"properties":{"side":{"enum":["long","short"],"type":"string"},"sizeBase":{"type":"number"},"entryPrice":{"type":"number"},"feeOpenPct":{"type":"number"},"feeClosePct":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_breakeven_planning","displayName":"workflow.run_breakeven_planning","title":"workflow.run_breakeven_planning"},{"name":"workflow.run_position_sizing","description":"Calculate the correct position size given a maximum risk in USDT and a stop-loss price. Use when user asks \"how many coins should I buy?\" or \"size my position so I risk exactly $X\". Returns: positionSize (base), positionUsdt, marginRequired.","inputSchema":{"type":"object","required":["side","entryPrice","stopLoss","riskUsdt"],"properties":{"side":{"enum":["long","short"],"type":"string"},"leverage":{"type":"number"},"riskUsdt":{"type":"number"},"stopLoss":{"type":"number"},"entryPrice":{"type":"number"},"feeOpenPct":{"type":"number"},"feeClosePct":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_position_sizing","displayName":"workflow.run_position_sizing","title":"workflow.run_position_sizing"},{"name":"workflow.run_funding_cost","description":"Calculate the total funding cost (or income) for holding a perpetual futures position. Use when user asks \"how much funding will I pay holding X days?\" or \"is funding eating my profit?\". Returns: totalFundingUsdt (negative = you pay, positive = you receive), perIntervalUsdt.","inputSchema":{"type":"object","required":["side","sizeBase","entryPrice","fundingRate","days"],"properties":{"days":{"type":"number"},"side":{"enum":["long","short"],"type":"string"},"sizeBase":{"type":"number"},"entryPrice":{"type":"number"},"fundingRate":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_funding_cost","displayName":"workflow.run_funding_cost","title":"workflow.run_funding_cost"},{"name":"primitive.average_entry","description":"Calculate the weighted average entry price from multiple buy/sell fills (DCA): the bare number only, no breakeven or per-fill breakdown. Use when user asks only \"what's my average entry?\" and wants just that figure. For breakeven and a per-level summary too, use workflow.run_dca_entry instead. Returns: averagePrice, totalSize, totalCost.","inputSchema":{"type":"object","required":["symbol","input"],"properties":{"input":{"type":"object","required":["fills"],"properties":{"fills":{"type":"array","items":{"type":"object","required":["price","quantity"],"properties":{"price":{"type":"number"},"quantity":{"type":"number"}}},"minItems":1}}},"symbol":{"type":"string"},"contractType":{"enum":["linear","inverse"],"type":"string"},"exchangeCode":{"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"primitive.average_entry","displayName":"primitive.average_entry","title":"primitive.average_entry"},{"name":"workflow.run_exit_target","description":"Calculate the exact exit price needed to hit a target PnL or ROE percentage. Use when user asks \"at what price do I take profit to make $500?\" or \"where should I set TP for 20% ROE?\". Returns: targetExitPrice.","inputSchema":{"type":"object","required":["side","entryPrice","leverage","sizeBase","targetMode","targetValue"],"properties":{"side":{"enum":["long","short"],"type":"string"},"leverage":{"type":"number"},"sizeBase":{"type":"number"},"entryPrice":{"type":"number"},"feeOpenPct":{"type":"number"},"targetMode":{"enum":["pnl","roe"],"type":"string"},"feeClosePct":{"type":"number"},"targetValue":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_exit_target","displayName":"workflow.run_exit_target","title":"workflow.run_exit_target"},{"name":"workflow.run_scenario_planning","description":"Run a scenario analysis: compute PnL for multiple price-change percentages at once. Use when user asks \"show me my P&L if BTC moves -10%, -5%, +5%, +10%\". Returns: array of { deltaPct, exitPrice, netPnl, roe }.","inputSchema":{"type":"object","required":["side","entryPrice","size","deltasPct"],"properties":{"side":{"enum":["long","short"],"type":"string"},"size":{"type":"number"},"deltasPct":{"type":"array","items":{"type":"number"}},"entryPrice":{"type":"number"},"feeOpenPct":{"type":"number"},"feeClosePct":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_scenario_planning","displayName":"workflow.run_scenario_planning","title":"workflow.run_scenario_planning"},{"name":"workflow.run_max_leverage","description":"Calculate the maximum safe leverage based on account size, max acceptable drawdown, and asset daily volatility. Use when user asks \"what's the max leverage I should use on BTC?\" or \"how much leverage is safe given 3% daily volatility?\". Returns: maxLeverage, marginAtRisk.","inputSchema":{"type":"object","required":["accountSize","maxDrawdownPct","volatilityPct"],"properties":{"mmr":{"type":"number"},"accountSize":{"type":"number"},"volatilityPct":{"type":"number"},"maxDrawdownPct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_max_leverage","displayName":"workflow.run_max_leverage","title":"workflow.run_max_leverage"},{"name":"primitive.hedge_ratio","description":"Calculate the short perpetual futures position size needed to hedge a spot holding. Use when user asks \"how much should I short to hedge my BTC?\" or \"what margin do I need for a 100% hedge?\". Returns: hedgeNotional, requiredMargin, estimatedFundingCost.","inputSchema":{"type":"object","required":["spotSize"],"properties":{"leverage":{"type":"number"},"spotSize":{"type":"number"},"hedgeRatio":{"type":"number"},"fundingRatePct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"primitive.hedge_ratio","displayName":"primitive.hedge_ratio","title":"primitive.hedge_ratio"},{"name":"workflow.run_funding_arbitrage","description":"Calculate funding rate arbitrage profit: annualized yield, net profit, and breakeven days for a long/short basis trade across two exchanges: the bare numbers only, no plain-English verdict. For the same math plus a profitable/marginal/loss verdict, use workflow.run_carry_trade instead. Use when user asks \"is this funding arb worth it?\" or \"how many days to break even on transfer fees?\". Returns: netProfitUsdt, annualizedYieldPct, breakevenDays.","inputSchema":{"type":"object","required":["positionSize","longFundingRate","shortFundingRate","durationDays"],"properties":{"durationDays":{"type":"number"},"positionSize":{"type":"number"},"intervalHours":{"enum":[8,1],"type":"number"},"transferFeePct":{"type":"number"},"longFundingRate":{"type":"number"},"shortFundingRate":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_funding_arbitrage","displayName":"workflow.run_funding_arbitrage","title":"workflow.run_funding_arbitrage"},{"name":"workflow.run_compound_funding","description":"Project capital growth from reinvesting perpetual futures funding income (compounding carry). Use when user asks \"how much will I make compounding 0.01% funding for 90 days?\" or \"what's my APY on this carry position?\". Returns: finalCapital, totalEarned, apy, growthTable.","inputSchema":{"type":"object","required":["initialCapital","fundingRatePct","durationDays"],"properties":{"reinvestPct":{"type":"number"},"durationDays":{"type":"number"},"intervalHours":{"enum":[8,1],"type":"number"},"fundingRatePct":{"type":"number"},"initialCapital":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_compound_funding","displayName":"workflow.run_compound_funding","title":"workflow.run_compound_funding"},{"name":"workflow.run_dca_entry","description":"DCA entry planner: weighted average entry price, breakeven, and per-level contribution from multiple fill prices and sizes. Prefer this over primitive.average_entry whenever breakeven or the per-level breakdown is also wanted, not just the bare average. Use when user bought at several prices and asks \"what's my average entry?\" or \"where is my DCA breakeven?\". Returns: averageEntry, breakeven, per-level summary.","inputSchema":{"type":"object","required":["side","entries"],"properties":{"side":{"enum":["long","short"],"type":"string"},"entries":{"type":"array","items":{"type":"object","required":["price","size"],"properties":{"size":{"type":"number"},"price":{"type":"number"}}},"maxItems":20,"minItems":2},"contractType":{"enum":["linear","inverse"],"type":"string"},"fee_open_pct":{"type":"number"},"fee_close_pct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_dca_entry","displayName":"workflow.run_dca_entry","title":"workflow.run_dca_entry"},{"name":"workflow.run_scale_out","description":"Scale-out planner: P&L, ROI, and cumulative P&L for each partial exit level. Use when user wants to take profit at multiple targets: \"close 30% at $90k, 30% at $95k, 40% at $100k, what's my total P&L?\". Returns: per-level pnl, weightedAvgExitPrice, totalRoi.","inputSchema":{"type":"object","required":["side","entry_price","total_size","exits"],"properties":{"side":{"enum":["long","short"],"type":"string"},"exits":{"type":"array","items":{"type":"object","required":["price","pct"],"properties":{"pct":{"type":"number"},"price":{"type":"number"}}},"maxItems":10,"minItems":2},"total_size":{"type":"number"},"entry_price":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"},"fee_open_pct":{"type":"number"},"fee_close_pct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_scale_out","displayName":"workflow.run_scale_out","title":"workflow.run_scale_out"},{"name":"workflow.run_carry_trade","description":"Delta-neutral carry trade (funding arbitrage) analysis, with a profitable/marginal/loss verdict on top of the same math primitive.funding_arb uses. Prefer this over primitive.funding_arb whenever a plain-English verdict is wanted, not just the raw numbers. Use when user asks \"is this carry trade worth it?\": long on exchange A, short on exchange B, collect the funding rate spread. Returns: netYieldPct, grossProfit, netProfit, breakevenDays, verdict (profitable/marginal/loss).","inputSchema":{"type":"object","required":["notional","funding_rate_long","funding_rate_short","hold_days"],"properties":{"notional":{"type":"number"},"hold_days":{"type":"number"},"interval_hours":{"enum":[1,8],"type":"number"},"transfer_fee_pct":{"type":"number"},"funding_rate_long":{"type":"number"},"funding_rate_short":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_carry_trade","displayName":"workflow.run_carry_trade","title":"workflow.run_carry_trade"},{"name":"workflow.run_funding_breakeven","description":"Price move needed to cover funding cost + fees over a holding period. Use when user asks \"how much does BTC need to move for me to profit after funding?\" or \"is funding killing my edge on this trade?\". Returns: breakevenWithFunding, breakevenWithoutFunding, requiredMovePct.","inputSchema":{"type":"object","required":["side","entry_price","size","funding_rate","hold_hours"],"properties":{"side":{"enum":["long","short"],"type":"string"},"size":{"type":"number"},"hold_hours":{"type":"number"},"entry_price":{"type":"number"},"contractType":{"enum":["linear","inverse"],"type":"string"},"fee_open_pct":{"type":"number"},"funding_rate":{"type":"number"},"fee_close_pct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_funding_breakeven","displayName":"workflow.run_funding_breakeven","title":"workflow.run_funding_breakeven"},{"name":"workflow.run_bonding_curve","description":"Pump.fun-style bonding curve calculator: exact tokens received for a buy, price impact, and graduation progress. Pure constant-product math (Uniswap V2 style) using pump.fun's official virtual-reserve constants: no live lookup needed, works for any token still on the curve (not yet graduated to a real AMM pool). Use when user asks \"how many tokens do I get buying X SOL on this curve?\" or \"will this buy graduate the token?\". Returns: tokensOut, priceImpactPct, progressPctBefore/After, willGraduat","inputSchema":{"type":"object","required":["solRaisedSoFar","solToSpend"],"properties":{"solToSpend":{"type":"number"},"solRaisedSoFar":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_bonding_curve","displayName":"workflow.run_bonding_curve","title":"workflow.run_bonding_curve"},{"name":"workflow.run_black_scholes","description":"Theoretical European option price and Greeks (delta, gamma, theta, vega, rho) from Black-Scholes, given manual spot/strike/days-to-expiry/volatility/risk-free-rate inputs: no live data fetch. Prefer workflow.run_black_scholes_live instead when checking a real Deribit BTC/ETH instrument, since that variant also reports how far the instrument's actual quoted price sits from what this formula implies. Prices are USD-denominated (the universal convention); callPriceCoin/putPriceCoin additionally div","inputSchema":{"type":"object","required":["spot","strike","daysToExpiry","volatilityPct"],"properties":{"spot":{"type":"number"},"strike":{"type":"number"},"daysToExpiry":{"type":"number"},"volatilityPct":{"type":"number"},"riskFreeRatePct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_black_scholes","displayName":"workflow.run_black_scholes","title":"workflow.run_black_scholes"},{"name":"workflow.run_implied_volatility","description":"Solves for the volatility that makes Black-Scholes reproduce an observed option price (Newton-Raphson with a bisection fallback for cases where vega is too flat to converge, e.g. deep ITM/OTM or very short-dated). Checks the price against its no-arbitrage bounds first and refuses to solve (converged: false + error) rather than return a garbage number when the price is impossible for the given spot/strike/rate. Use when user asks \"what IV does this option price imply?\" or gives a market price and","inputSchema":{"type":"object","required":["optionType","spot","strike","daysToExpiry","targetPriceUsd"],"properties":{"spot":{"type":"number"},"strike":{"type":"number"},"optionType":{"enum":["call","put"],"type":"string"},"daysToExpiry":{"type":"number"},"targetPriceUsd":{"type":"number"},"riskFreeRatePct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_implied_volatility","displayName":"workflow.run_implied_volatility","title":"workflow.run_implied_volatility"},{"name":"workflow.run_window_fair_value","description":"Theoretical fair value for a time-windowed crypto up/down contract (the shape ADI Predictstreet and Kalshi-style daily crypto markets use: pays out based on whether the settlement price finishes at/above or below a reference price pinned at window open, by a fixed close time): a cash-or-nothing digital option, priced with the standard N(d2) formula. Use this when there's no live market price to read (e.g. a venue's contract has real terms but zero trading volume) instead of a live-market odds to","inputSchema":{"type":"object","required":["currentPrice","referencePrice","minutesToClose","volatilityPct"],"properties":{"currentPrice":{"type":"number"},"volatilityPct":{"type":"number"},"minutesToClose":{"type":"number"},"referencePrice":{"type":"number"},"riskFreeRatePct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_window_fair_value","displayName":"workflow.run_window_fair_value","title":"workflow.run_window_fair_value"},{"name":"workflow.run_forex_pip_value","description":"Value of 1 pip for a given forex pair and position size, in that pair's own quote currency (e.g. EUR/USD's pip value comes back in USD, USD/JPY's in JPY): no live FX rate needed, since a pair's pip value is naturally denominated in its own quote currency. Pip size is 0.0001 for non-JPY pairs, 0.01 for JPY-quoted pairs, a universal market convention verified against real broker documentation, not broker-specific. Prefer workflow.run_forex_pip_value_live instead when the account currency differs f","inputSchema":{"type":"object","required":["pair","units"],"properties":{"pair":{"type":"string"},"units":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_pip_value","displayName":"workflow.run_forex_pip_value","title":"workflow.run_forex_pip_value"},{"name":"workflow.run_forex_margin_level","description":"Free margin and margin level % from account equity and used margin: equity/usedMargin*100, the same stop-out proximity metric every forex platform shows. Returns null (not Infinity) when usedMargin is 0, meaning no open position. Use when user asks \"how close am I to a margin call?\" or \"what's my free margin?\". Returns: freeMargin, marginLevelPct.","inputSchema":{"type":"object","required":["equity","usedMargin"],"properties":{"equity":{"type":"number"},"usedMargin":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_margin_level","displayName":"workflow.run_forex_margin_level","title":"workflow.run_forex_margin_level"},{"name":"workflow.run_forex_breakeven","description":"Breakeven price for a forex position accounting for spread and round-trip commission, in pips and in price. Commission is quoted per standard lot (100,000 units) and expressed in the pair's own quote currency; because both commission and pip value scale with lot size, the commission-in-pips figure is independent of position size by construction. Use when user asks \"where's my true breakeven after spread and commission?\". Returns: pipSize, commissionPips, totalCostPips, breakevenPrice.","inputSchema":{"type":"object","required":["pair","side","entryPrice","spreadPips"],"properties":{"pair":{"type":"string"},"side":{"enum":["long","short"],"type":"string"},"entryPrice":{"type":"number"},"spreadPips":{"type":"number"},"commissionPerLotRoundTrip":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_breakeven","displayName":"workflow.run_forex_breakeven","title":"workflow.run_forex_breakeven"},{"name":"workflow.run_forex_pnl","description":"Profit or loss for a closed or hypothetical forex trade, in pips and in the pair's own quote currency, long or short. Use when user asks \"what did I make/lose on this trade?\" or \"what would X pips be worth on Y lots?\". Returns: pips (signed, positive favors the position taken), pnlQuote.","inputSchema":{"type":"object","required":["pair","side","entryPrice","exitPrice","units"],"properties":{"pair":{"type":"string"},"side":{"enum":["long","short"],"type":"string"},"units":{"type":"number"},"exitPrice":{"type":"number"},"entryPrice":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_pnl","displayName":"workflow.run_forex_pnl","title":"workflow.run_forex_pnl"},{"name":"workflow.run_forex_risk_reward","description":"Risk and reward distance in pips from entry/stop/target, and the resulting ratio (reward/risk): a raw number, not a verdict. ratio is null when the stop sits exactly at entry (no risk distance), and also when validSetup is false (stop/target on the wrong side of entry for the given side, e.g. a long with its stop above entry) - check validSetup before trusting the ratio. Use when user asks \"what's my risk/reward on this setup?\". Returns: riskPips, rewardPips, validSetup, ratio.","inputSchema":{"type":"object","required":["pair","side","entryPrice","stopPrice","targetPrice"],"properties":{"pair":{"type":"string"},"side":{"enum":["long","short"],"type":"string"},"stopPrice":{"type":"number"},"entryPrice":{"type":"number"},"targetPrice":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_risk_reward","displayName":"workflow.run_forex_risk_reward","title":"workflow.run_forex_risk_reward"},{"name":"workflow.run_forex_scenario","description":"PnL across a range of hypothetical price moves (in pips, signed by actual price direction, not pre-adjusted for side), for a single forex position size, long or short. Use when user asks \"what if price moves X pips in either direction?\". Returns: scenarios[] (deltaPips, exitPrice, pnlQuote).","inputSchema":{"type":"object","required":["pair","side","entryPrice","units","deltasPips"],"properties":{"pair":{"type":"string"},"side":{"enum":["long","short"],"type":"string"},"units":{"type":"number"},"deltasPips":{"type":"array","items":{"type":"number"}},"entryPrice":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_scenario","displayName":"workflow.run_forex_scenario","title":"workflow.run_forex_scenario"},{"name":"workflow.run_forex_average_entry","description":"Size-weighted average entry price across multiple forex fills: plain arithmetic mean, since forex has no coin-margined analog requiring the harmonic mean the crypto average_entry tool uses for inverse contracts. Use when user asks \"what's my average entry after these fills?\". Returns: totalUnits, totalCost, avgEntry.","inputSchema":{"type":"object","required":["pair","fills"],"properties":{"pair":{"type":"string"},"fills":{"type":"array","items":{"type":"object","required":["price","units"],"properties":{"price":{"type":"number"},"units":{"type":"number"}}}}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_average_entry","displayName":"workflow.run_forex_average_entry","title":"workflow.run_forex_average_entry"},{"name":"workflow.run_forex_margin_required","description":"Notional and margin required for a forex position, in the pair's own quote currency: no live FX rate needed. Never built for Phase 1 of this domain since a margin figure has no natural currency-neutral form the way pip value does. Prefer workflow.run_forex_margin_required_live instead when the account currency differs from the pair's quote currency. Use when user asks \"how much margin do I need for X lots of EUR/USD at 50:1?\". Returns: notionalQuote, marginQuote, base, quote.","inputSchema":{"type":"object","required":["pair","units","price","leverage"],"properties":{"pair":{"type":"string"},"price":{"type":"number"},"units":{"type":"number"},"leverage":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_margin_required","displayName":"workflow.run_forex_margin_required","title":"workflow.run_forex_margin_required"},{"name":"workflow.run_forex_currency_converter","description":"Converts an amount between currencies using a manually supplied rate: no live data fetch. Prefer workflow.run_forex_currency_converter_live instead to have the rate fetched automatically. Use when user already knows the exact rate they want applied. Returns: converted.","inputSchema":{"type":"object","required":["amount","rate"],"properties":{"rate":{"type":"number"},"amount":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_currency_converter","displayName":"workflow.run_forex_currency_converter","title":"workflow.run_forex_currency_converter"},{"name":"workflow.run_forex_swap_cost","description":"Total swap/rollover cost (or credit) for holding a forex position overnight, in the pair's own quote currency: no live FX rate needed. Swap rates are broker-set with no free live feed available, so swapPerLotPerNight is always a manual input (quoted per standard lot, matching how commission is quoted in workflow.run_forex_breakeven), not fetched. Negative = cost (you pay), positive = credit (you receive). Prefer workflow.run_forex_swap_cost_live instead when the account currency differs from the","inputSchema":{"type":"object","required":["pair","units","swapPerLotPerNight","nights"],"properties":{"pair":{"type":"string"},"units":{"type":"number"},"nights":{"type":"integer"},"swapPerLotPerNight":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_swap_cost","displayName":"workflow.run_forex_swap_cost","title":"workflow.run_forex_swap_cost"},{"name":"workflow.run_forex_correlation","description":"Correlation coefficient and minimum-variance hedge ratio between two price series of matching length, computed on daily % returns (not raw price levels, which would give spuriously high correlation between two unrelated but both-trending series). hedgeRatio follows Hull's standard futures-hedging formula: cov(returns1,returns2)/var(returns2), \"how many units of series 2 per unit of series 1 minimizes the combined position's variance.\" No live data fetch: supply the two price series directly. Pre","inputSchema":{"type":"object","required":["rates1","rates2"],"properties":{"rates1":{"type":"array","items":{"type":"number"},"minItems":5},"rates2":{"type":"array","items":{"type":"number"},"minItems":5}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_correlation","displayName":"workflow.run_forex_correlation","title":"workflow.run_forex_correlation"},{"name":"workflow.run_var_cvar","description":"Parametric Value at Risk (VaR) and Conditional VaR / Expected Shortfall (CVaR), the variance-covariance method (assumes normally distributed returns), plus Modified VaR (Cornish-Fisher skew/kurtosis correction, Boudt/Peterson/Croux) when a return series is supplied. Supply either a return series or a mean/stdev pair directly, at a confidence level. Output is at the same periodicity as the input (no automatic annualization) - a daily return series gives a daily VaR/CVaR. Use when user asks \"what'","inputSchema":{"type":"object","properties":{"mean":{"type":"number"},"stdev":{"type":"number"},"returns":{"type":"array","items":{"type":"number"},"minItems":2},"confidence":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_var_cvar","displayName":"workflow.run_var_cvar","title":"workflow.run_var_cvar"},{"name":"workflow.run_sharpe_stats","description":"Sharpe ratio with the Lo (2002) serial-correlation-aware annualization correction (the naive sqrt(periods_per_year) scaling overstates or understates the true annualized Sharpe when returns are autocorrelated), plus the Probabilistic Sharpe Ratio (Bailey & Lopez de Prado): the probability the true Sharpe exceeds a benchmark, adjusted for the sample's skewness/kurtosis and length, not just its point estimate. Use when user asks \"what's my real annualized Sharpe, not the naive one?\" or \"how confid","inputSchema":{"type":"object","required":["returns"],"properties":{"returns":{"type":"array","items":{"type":"number"},"minItems":3},"benchmark_sharpe":{"type":"number"},"periods_per_year":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_sharpe_stats","displayName":"workflow.run_sharpe_stats","title":"workflow.run_sharpe_stats"},{"name":"workflow.run_hurst_exponent","description":"Hurst exponent via rescaled-range (R/S) analysis: is this return/price series trending/persistent (H>0.5, a move tends to be followed by a move in the same direction), mean-reverting/anti-persistent (H<0.5), or consistent with a random walk (H~0.5)? Use when user asks \"is this asset trending or mean-reverting?\" or \"does this series show long-range dependence?\". Takes a return series, not raw price levels. Returns: hurst, interpretation (trending/mean_reverting/random_walk), window_sizes, rs_valu","inputSchema":{"type":"object","required":["values"],"properties":{"values":{"type":"array","items":{"type":"number"},"minItems":32},"min_window":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_hurst_exponent","displayName":"workflow.run_hurst_exponent","title":"workflow.run_hurst_exponent"},{"name":"workflow.run_cointegration","description":"Engle-Granger two-step cointegration test for a pair of price series: do they share a long-run equilibrium relationship (their spread is stationary/mean-reverting)? The standard pairs-trading signal test. Returns the cointegrating regression's hedge ratio (beta) and an ADF t-statistic on the residuals, compared against 1%/5%/10% critical values. Use when user asks \"are these two assets cointegrated?\" or \"is this a valid pairs trade?\". Returns: alpha, beta (hedge ratio), t_stat, critical_values,","inputSchema":{"type":"object","required":["y","x"],"properties":{"x":{"type":"array","items":{"type":"number"},"minItems":20},"y":{"type":"array","items":{"type":"number"},"minItems":20}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_cointegration","displayName":"workflow.run_cointegration","title":"workflow.run_cointegration"},{"name":"workflow.run_portfolio_tearsheet","description":"Core risk/return tearsheet from a single return series: annualized return (compounded, not linear) and volatility, Sharpe (plain + Lo 2002-corrected + Pezier-White skew/kurtosis-adjusted), Sortino, max drawdown, Calmar ratio, the drawdown-ratio cluster (Ulcer Index/Martin ratio, Pain Index/Pain ratio, Burke ratio + modified), Omega-Sharpe ratio, Upside Potential Ratio, skewness, kurtosis, Probabilistic Sharpe Ratio, win rate, best/worst single-period return. Use when user asks for a full risk su","inputSchema":{"type":"object","required":["returns"],"properties":{"mar":{"type":"number"},"returns":{"type":"array","items":{"type":"number"},"minItems":3},"benchmark_sharpe":{"type":"number"},"periods_per_year":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_portfolio_tearsheet","displayName":"workflow.run_portfolio_tearsheet","title":"workflow.run_portfolio_tearsheet"},{"name":"workflow.run_garch","description":"GARCH(1,1) volatility model, fit by maximum likelihood on a return series: estimates omega/alpha/beta (the variance-persistence parameters) and forecasts next-period volatility. Use when user asks \"what's my GARCH volatility forecast?\" or \"how persistent is volatility in this return series?\". This is a backward-looking statistical fit, not a market prediction guarantee. Returns: mu, omega, alpha, beta, persistence (alpha+beta), unconditional_vol, forecast_vol, loglikelihood.","inputSchema":{"type":"object","required":["returns"],"properties":{"returns":{"type":"array","items":{"type":"number"},"minItems":50}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_garch","displayName":"workflow.run_garch","title":"workflow.run_garch"},{"name":"workflow.run_risk_parity","description":"Risk-parity (equal or custom risk contribution) portfolio weights for N assets: given a covariance matrix (or N return series to compute one from), finds long-only weights where each asset contributes its target share of total portfolio risk. Use when user asks \"what weights give each asset equal risk contribution?\" or \"how do I risk-parity-weight this portfolio?\". A portfolio-construction calculation, not a buy/sell recommendation. Returns: weights, risk_contributions (should match risk_budgets","inputSchema":{"type":"object","properties":{"returns":{"type":"array","items":{"type":"array","items":{"type":"number"}}},"covariance":{"type":"array","items":{"type":"array","items":{"type":"number"}}},"risk_budgets":{"type":"array","items":{"type":"number"}}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_risk_parity","displayName":"workflow.run_risk_parity","title":"workflow.run_risk_parity"},{"name":"workflow.run_dsr","description":"Deflated Sharpe Ratio (Bailey & Lopez de Prado): given how many strategy variants you tried (and how correlated they are), what Sharpe ratio would the *best of N* clear by luck alone, and does your actual strategy still clear that higher bar? Use when user asks \"is my backtested Sharpe ratio real, or did I get lucky trying many variants?\" or \"how many independent trials does this really represent?\". Provide either trial_sharpes[] (the N trials' own observed Sharpe ratios, most rigorous) or n_tri","inputSchema":{"type":"object","required":["returns"],"properties":{"returns":{"type":"array","items":{"type":"number"},"minItems":3},"n_trials":{"type":"number"},"trial_sharpes":{"type":"array","items":{"type":"number"},"minItems":2},"avg_correlation":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_dsr","displayName":"workflow.run_dsr","title":"workflow.run_dsr"},{"name":"workflow.run_kelly_frontier","description":"Kelly growth-security frontier (MacLean, Ziemba & Blazenko 1992): for a strategy compounding at a fraction lambda of full Kelly, the probability wealth ever falls to a fraction alpha of its starting value is P = alpha^(2/lambda-1). Provide either lambda_fraction (to compute that probability) or max_probability (to solve for the largest lambda that keeps the ruin probability at or below it). Use when user asks \"if I bet half-Kelly, what's my chance of ever losing half my bankroll?\" or \"what fract","inputSchema":{"type":"object","required":["alpha"],"properties":{"alpha":{"type":"number"},"lambda_fraction":{"type":"number"},"max_probability":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_kelly_frontier","displayName":"workflow.run_kelly_frontier","title":"workflow.run_kelly_frontier"},{"name":"workflow.run_unsmoothing","description":"Return \"unsmoothing\" for infrequently-marked/illiquid or appraisal-based series: Getmansky-Lo-Makarov (2004) MA(2) smoothing index plus Blundell-Ward (1987) AR(1) volatility inflation, two complementary models answering \"this return series looks smoother than it really is; what's the true volatility?\". Use when user asks \"how much is appraisal smoothing understating my real volatility?\" or \"what's my de-smoothed Sharpe ratio?\". Returns: glm_theta (MA(2) weights), glm_smoothing_index (xi, 1=no sm","inputSchema":{"type":"object","required":["returns"],"properties":{"returns":{"type":"array","items":{"type":"number"},"minItems":20}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_unsmoothing","displayName":"workflow.run_unsmoothing","title":"workflow.run_unsmoothing"},{"name":"workflow.run_evt_tail_risk","description":"Extreme Value Theory tail risk (Peaks-Over-Threshold): fits a Generalized Pareto Distribution to the losses beyond a high threshold via Grimshaw's (1993) profile-likelihood MLE, then extrapolates VaR/Expected Shortfall at the requested confidence, without assuming a normal distribution. Use when user asks \"what's my tail VaR without assuming normality?\" or \"how fat is my loss tail, really?\". Complements workflow.run_var_cvar (parametric, normal-distribution VaR/CVaR) for exactly the fat-tailed-r","inputSchema":{"type":"object","required":["returns"],"properties":{"returns":{"type":"array","items":{"type":"number"},"minItems":100},"confidence":{"type":"number"},"threshold_percentile":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_evt_tail_risk","displayName":"workflow.run_evt_tail_risk","title":"workflow.run_evt_tail_risk"},{"name":"workflow.run_open_analysis","description":"Market Profile open analysis: where and how price opened vs the prior session value area. Use for \"how did BTC open today?\" / \"what does the open imply for the session?\". Returns: open_location, open_type (OD/OTD/ORR/OAIR) with description/implication, confidence, key_levels (VAH/VAL/VPOC/IB), tails (session-high/low rejection tails and single prints), scenario_framing (bullish/bearish/neutral), invalidation level.","inputSchema":{"type":"object","required":["instrument","venue","session_date"],"properties":{"venue":{"enum":["binance","bybit"],"type":"string"},"candles":{"type":"array","items":{"type":"object"}},"timeframe":{"enum":["1m","5m","15m","30m"],"type":"string"},"instrument":{"type":"string"},"prev_candles":{"type":"array","items":{"type":"object"}},"session_date":{"type":"string"},"value_area_rule":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_open_analysis","displayName":"workflow.run_open_analysis","title":"workflow.run_open_analysis"},{"name":"workflow.run_value_migration","description":"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.","inputSchema":{"type":"object","required":["instrument","venue","session_date"],"properties":{"venue":{"enum":["binance","bybit"],"type":"string"},"candles":{"type":"array","items":{"type":"object"}},"timeframe":{"enum":["1m","5m","15m","30m"],"type":"string"},"instrument":{"type":"string"},"prev_candles":{"type":"array","items":{"type":"object"}},"session_date":{"type":"string"},"value_area_rule":{"type":"number"},"lookback_sessions":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_value_migration","displayName":"workflow.run_value_migration","title":"workflow.run_value_migration"},{"name":"workflow.run_breakout_acceptance","description":"Market Profile breakout acceptance: did price accept (hold) beyond the value area / range, or reject back inside (fakeout)? Optional buy/sell delta. Use for \"did the break above VAH get accepted?\". Returns: state, accepted (boolean), direction, confidence, key_levels (VAH/VAL/VPOC), scenario_framing, invalidation level.","inputSchema":{"type":"object","required":["instrument","venue","session_date"],"properties":{"venue":{"enum":["binance","bybit"],"type":"string"},"candles":{"type":"array","items":{"type":"object"}},"timeframe":{"enum":["1m","5m","15m","30m"],"type":"string"},"instrument":{"type":"string"},"prev_candles":{"type":"array","items":{"type":"object"}},"session_date":{"type":"string"},"include_delta":{"type":"boolean"},"value_area_rule":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_breakout_acceptance","displayName":"workflow.run_breakout_acceptance","title":"workflow.run_breakout_acceptance"},{"name":"workflow.run_token_risk_check","description":"Token rug-pull MECHANISM check for a Solana token (mint address): can the deployer still mint supply, freeze wallets, pull liquidity, swap metadata, or has RugCheck flagged a known scam pattern (e.g. copycat token)? Fetches live facts from RugCheck (GoPlus as fallback) and returns a transparently-weighted composite score. Deliberately does NOT score holder concentration or \"whale dump\" impact: those are properties of any liquid market (a legit protocol's top holders are routinely treasury/vestin","inputSchema":{"type":"object","required":["mint"],"properties":{"mint":{"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_token_risk_check","displayName":"workflow.run_token_risk_check","title":"workflow.run_token_risk_check"},{"name":"workflow.run_swap_price_impact","description":"Live price-impact quote for a Solana token swap: routed through Jupiter (the same aggregator real swaps use) across every pool it knows about, not a single-pool estimate. Use when user asks \"how much slippage will I eat swapping X tokens?\" or \"what will I actually get if I sell N tokens?\". Returns: outputAmount, priceImpactPct, effectivePrice, marketPriceUsd, liquidityUsd, routable (false + error if the size can't be routed at all).","inputSchema":{"type":"object","required":["mint","amount"],"properties":{"mint":{"type":"string"},"amount":{"type":"number"},"outputAsset":{"enum":["USDC","SOL"],"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_swap_price_impact","displayName":"workflow.run_swap_price_impact","title":"workflow.run_swap_price_impact"},{"name":"workflow.run_wallet_flag_check","description":"Checks a wallet address (Solana or any of 5 EVM chains) against independent flag databases: GoPlus (malicious-address categories, all chains), Webacy (address analysis + sanctions check, all chains), and ScamSniffer (public phishing/drainer blacklist, EVM chains only), and returns each source's own facts separately, never merged into one invented score. Use when user asks \"is this wallet address flagged?\" or \"is it safe to send to this address?\". A clean result means \"nothing found in these data","inputSchema":{"type":"object","required":["walletAddress"],"properties":{"chain":{"enum":["solana","ethereum","base","bsc","arbitrum","polygon"],"type":"string"},"walletAddress":{"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_wallet_flag_check","displayName":"workflow.run_wallet_flag_check","title":"workflow.run_wallet_flag_check"},{"name":"workflow.run_odds_converter","description":"Converts a probability into decimal odds, American odds, and breakeven win rate: either from a manually supplied probability, or fetched live from Kalshi, Polymarket, ADI Predictstreet, Limitless, or Myriad (five independent crypto-price prediction market venues, all public keyless market data). When a Kalshi, Polymarket, Limitless, or Myriad source is supplied, also returns the vig (the exchange's built-in edge), computed from the market's own YES+NO prices, not estimated; ADI Predictstreet's c","inputSchema":{"type":"object","required":[],"properties":{"adiSymbol":{"type":"string"},"myriadSlug":{"type":"string"},"probability":{"type":"number"},"kalshiTicker":{"type":"string"},"limitlessSlug":{"type":"string"},"polymarketSlug":{"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_odds_converter","displayName":"workflow.run_odds_converter","title":"workflow.run_odds_converter"},{"name":"workflow.run_spread_reader","description":"Reads the same real-world bet's live price from 2-5 prediction-market venues at once (Kalshi, Polymarket, ADI Predictstreet, Limitless, Myriad) and reports the spread between the cheapest and most expensive. The caller supplies each venue's own identifier for what they've confirmed is the same underlying bet; this tool never auto-matches events across venues, only reads and compares prices for identifiers you provide. Use when user asks \"is this bet priced differently on Kalshi vs Polymarket?\" o","inputSchema":{"type":"object","required":["quotes"],"properties":{"quotes":{"type":"array","items":{"type":"object","required":["venue","identifier"],"properties":{"venue":{"enum":["kalshi","polymarket","adi","limitless","myriad"],"type":"string"},"identifier":{"type":"string"}}},"maxItems":5,"minItems":2}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_spread_reader","displayName":"workflow.run_spread_reader","title":"workflow.run_spread_reader"},{"name":"workflow.run_market_implied_odds","description":"Reads Kalshi's full live BTC or ETH year-end price ladder (a set of mutually-exclusive prediction markets covering the whole price range) and reports what the market itself implies: the median (50th-percentile) price bucket, the single most-likely (mode) bucket, and the probability of ending the year at or above any real bucket boundary. Deliberately does not compute an expected value or interpolate inside a bucket: the top/bottom buckets are open-ended, so any point estimate there would need an","inputSchema":{"type":"object","required":[],"properties":{"coin":{"enum":["BTC","ETH"],"type":"string"},"thresholdUsd":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_market_implied_odds","displayName":"workflow.run_market_implied_odds","title":"workflow.run_market_implied_odds"},{"name":"workflow.run_black_scholes_live","description":"Black-Scholes theoretical price and Greeks for a REAL, live Deribit BTC/ETH option instrument: pulls that instrument's own spot, strike, days to expiry, and implied volatility from Deribit, then reports how far Deribit's actual quoted mark price sits from what Black-Scholes implies at that IV (priceDiscrepancyPct). This is the trust-check tool: \"is this exchange's quoted price consistent with its own volatility assumption?\", not an estimate, a live formula cross-check. Use when user gives a spec","inputSchema":{"type":"object","required":["instrumentName"],"properties":{"instrumentName":{"type":"string"},"riskFreeRatePct":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_black_scholes_live","displayName":"workflow.run_black_scholes_live","title":"workflow.run_black_scholes_live"},{"name":"workflow.run_forex_pip_value_live","description":"Value of 1 pip for a forex pair and position size, converted to a given account currency via a live FX rate: TrueFX for its 10 quoted majors (genuinely live tick data), frankfurter.app daily ECB reference rate as the fallback for every other currency (30 total). Use when user asks \"what's 1 pip worth in my account currency?\" and the account currency differs from the pair's own quote currency (if it matches, workflow.run_forex_pip_value alone is enough, no live fetch needed). Returns everything w","inputSchema":{"type":"object","required":["pair","units","accountCurrency"],"properties":{"pair":{"type":"string"},"units":{"type":"number"},"accountCurrency":{"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_pip_value_live","displayName":"workflow.run_forex_pip_value_live","title":"workflow.run_forex_pip_value_live"},{"name":"workflow.run_forex_margin_required_live","description":"Notional and margin required for a forex position, converted to a given account currency via a live FX rate (same TrueFX/frankfurter.app source as workflow.run_forex_pip_value_live). Use when user asks \"how much margin do I need in my account currency?\" and the account currency differs from the pair's own quote currency. Returns everything workflow.run_forex_margin_required does, plus accountCurrency, notionalAccount, marginAccount, fxRate, fxSource, available (false + error if no rate could be","inputSchema":{"type":"object","required":["pair","units","price","leverage","accountCurrency"],"properties":{"pair":{"type":"string"},"price":{"type":"number"},"units":{"type":"number"},"leverage":{"type":"number"},"accountCurrency":{"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_margin_required_live","displayName":"workflow.run_forex_margin_required_live","title":"workflow.run_forex_margin_required_live"},{"name":"workflow.run_forex_position_size_live","description":"Position size (units and standard lots) from a risk amount and stop distance, in a given account currency, via a live FX rate to convert pip value into that currency (same TrueFX/frankfurter.app source as the other forex _live tools). Never has a meaningful account-currency-agnostic form: sizing a position from a risk budget genuinely requires knowing what 1 pip is worth in the currency that budget is denominated in. Use when user asks \"how many lots should I trade to risk $X on this setup?\". Re","inputSchema":{"type":"object","required":["pair","entryPrice","stopPrice","riskAmount","accountCurrency"],"properties":{"pair":{"type":"string"},"stopPrice":{"type":"number"},"entryPrice":{"type":"number"},"riskAmount":{"type":"number"},"accountCurrency":{"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_position_size_live","displayName":"workflow.run_forex_position_size_live","title":"workflow.run_forex_position_size_live"},{"name":"workflow.run_forex_currency_converter_live","description":"Converts an amount between currencies using a live FX rate: TrueFX for its 10 quoted majors (genuinely live tick data), frankfurter.app daily ECB reference rate as the fallback for every other currency pair (30 total). Use when user asks \"what's $X worth in EUR?\" or any currency conversion where the rate itself isn't already known. Returns: converted, rate, source (truefx/frankfurter/identity), asOf, available (false + error if no rate could be found for that pair).","inputSchema":{"type":"object","required":["amount","from","to"],"properties":{"to":{"type":"string"},"from":{"type":"string"},"amount":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_currency_converter_live","displayName":"workflow.run_forex_currency_converter_live","title":"workflow.run_forex_currency_converter_live"},{"name":"workflow.run_forex_swap_cost_live","description":"Total swap/rollover cost (or credit) for holding a forex position overnight, converted to a given account currency via a live FX rate (same TrueFX/frankfurter.app source as the other forex _live tools). swapPerLotPerNight is still always a manual input: swap rates are broker-set, with no free live feed available for them. Use when user asks \"how much will holding this position overnight cost me in my account currency?\" and it differs from the pair's own quote currency. Returns everything workflo","inputSchema":{"type":"object","required":["pair","units","swapPerLotPerNight","nights","accountCurrency"],"properties":{"pair":{"type":"string"},"units":{"type":"number"},"nights":{"type":"integer"},"accountCurrency":{"type":"string"},"swapPerLotPerNight":{"type":"number"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_swap_cost_live","displayName":"workflow.run_forex_swap_cost_live","title":"workflow.run_forex_swap_cost_live"},{"name":"workflow.run_forex_correlation_live","description":"Correlation coefficient and minimum-variance hedge ratio between two forex pairs, fetched live: historical daily rates for both pairs over the given lookback window (frankfurter.app's daily ECB reference time series, business days only), aligned by matching date, computed on daily % returns. hedgeRatio follows Hull's standard futures-hedging formula: \"how many units of pair2 per unit of pair1 minimizes the combined position's variance.\" Use when user asks \"how correlated are EUR/USD and GBP/USD?","inputSchema":{"type":"object","required":["pair1","pair2"],"properties":{"days":{"type":"integer"},"pair1":{"type":"string"},"pair2":{"type":"string"}}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"workflow.run_forex_correlation_live","displayName":"workflow.run_forex_correlation_live","title":"workflow.run_forex_correlation_live"},{"name":"system.verify","description":"Run the full regression suite: 42 canonical test vectors (linear and inverse/coin-margined) across all 12 calculators, and return a pass/fail report with counts and timestamp. Call this before using results in production workflows to confirm the computation layer is operating correctly.","inputSchema":{"type":"object","required":[],"properties":{}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"system.verify","displayName":"system.verify","title":"system.verify"},{"name":"system.pubkey","description":"Return the ECDSA P-256 public key (PEM + JWK) and canonical signing format used to sign tool responses, so results can be verified offline without calling back to TradingCalc. Every tools/call result includes a signed second content block when signing is configured; also available at GET /api/mcp/pubkey.","inputSchema":{"type":"object","required":[],"properties":{}},"annotations":{"readOnlyHint":true,"untrustedContentHint":true},"logicalName":"system.pubkey","displayName":"system.pubkey","title":"system.pubkey"}],"toolSource":"directory_preview","agentAction":"both","installLinks":[{"id":"cursor","label":"Cursor","href":"cursor://anysphere.cursor-deeplink/mcp/install?name=TradingCalc&config=eyJ1cmwiOiAiaHR0cHM6Ly90cmFkaW5nY2FsYy5pby9hcGkvbWNwIn0%3D"},{"id":"vscode","label":"VS Code","href":"vscode:mcp/install?%7B%22name%22%3A%22TradingCalc%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Ftradingcalc.io%2Fapi%2Fmcp%22%7D"},{"id":"vscode-insiders","label":"VS Code Insiders","href":"vscode-insiders:mcp/install?%7B%22name%22%3A%22TradingCalc%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Ftradingcalc.io%2Fapi%2Fmcp%22%7D"},{"id":"claude-web","label":"Claude.ai","href":"https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=TradingCalc&connectorUrl=https%3A%2F%2Ftradingcalc.io%2Fapi%2Fmcp"},{"id":"codex","label":"Codex","copyText":"codex mcp add \"TradingCalc\" --url \"https://tradingcalc.io/api/mcp\""},{"id":"chatgpt","label":"ChatGPT","href":"https://www.mcpbundles.com/docs/integrations/chatgpt"}],"catalogUrl":"https://www.mcpbundles.com/api/directory/v1/servers/tradingcalc-mcp-a8c61f4255","callUrl":"https://www.mcpbundles.com/api/directory/v1/servers/tradingcalc-mcp-a8c61f4255/tools/{tool}","mcpServerUrl":"https://tradingcalc.io/api/mcp","liveCatalogUrl":"https://www.mcpbundles.com/api/directory/v1/servers/tradingcalc-mcp-a8c61f4255?live=1"}