Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_stablecoin_depeg_arbitrage

Calculates net arbitrage profit, ROI, annualized APR, and peg discount for stablecoin depeg mint/redeem trades using market price, fees, and redemption timing.

Instructions

Stablecoin Peg Deviation & Mint/Redeem Arbitrage Spread Calculator. Calculate net profit margin, execution slippage, and capital turnover ROI when arbitraging stablecoins (USDT, USDC, DAI) during depeg events. Discipline: CRYPTO. Governing mathematical model / formula: Net Arbitrage Margin = (1.00 - Discounted Market Price) - Mint/Redeem Fee - Gas Slippage.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of net_arbitrage_profit (Net Realized Profit), net_roi_percentage (Return on Investment (ROI)), annualized_arbitrage_apr (Annualized Capital Yield (APR)), gross_discount_spread (Gross Market Peg Discount) using discounted_market_price (Discounted Market Price ($)), arbitrage_capital_usd (Arbitrage Capital Deployed ($)), redemption_fee_pct (Issuer Redemption Fee (%) in %), redemption_holding_days (Redemption Wire Processing Time (Days) in days). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Stablecoin Peg Deviation & Mint/Redeem Arbitrage Spread Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "stablecoin-depeg-arbitrage"

    • category (string): "crypto"

    • name (string): "Stablecoin Peg Deviation & Mint/Redeem Arbitrage Spread Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.net_arbitrage_profit (Net Realized Profit): Formatted display string (e.g. '$3,525.00')

      • metrics.net_roi_percentage (Return on Investment (ROI)): Formatted display string (e.g. '3.53% Net ROI')

      • metrics.annualized_arbitrage_apr (Annualized Capital Yield (APR)): Formatted display string (e.g. '429.5% APR (3-Day Turn)')

      • metrics.gross_discount_spread (Gross Market Peg Discount): Formatted display string (e.g. '3.50% Discount ($0.965 vs $1.00)')

    • execution_time_ms (number): Latency in milliseconds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "omni_stablecoin_depeg_arbitrage"
  }
}

Input Schema

NameRequiredDescriptionDefault
redemption_fee_pctNoIssuer Redemption Fee (%) (%). Tether / Circle official 1:1 fiat redemption fee. Default: 0.1. Min: 0. Max: 1.
arbitrage_capital_usdNoArbitrage Capital Deployed ($). Capital used to purchase discounted stablecoin. Default: 100000. Min: 5000. Max: 10000000.
discounted_market_priceNoDiscounted Market Price ($). Depegged market trading price (e.g. $0.965). Default: 0.965. Min: 0.5. Max: 1.05.
redemption_holding_daysNoRedemption Wire Processing Time (Days) (days). Banking wire settlement turnaround time. Default: 3. Min: 1. Max: 14.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools