Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_cross_chain_bridge_fee

Calculates total cross-chain bridge cost, protocol fees, destination gas subsidy, and slippage to determine net tokens received.

Instructions

Cross-Chain Token Bridge Fee & Gas Slippage Optimizer. Calculate total cost, bridge operator fee, destination gas subsidy, and slippage when bridging tokens across Ethereum, Arbitrum, Polygon, and Solana. Discipline: CRYPTO. Governing mathematical model / formula: Total Bridge Fee = Origin Gas + Operator Fixed Fee + Protocol % + Destination Mint Gas.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of net_amount_received (Net Amount Received on Destination), total_bridge_toll_usd (Total Bridge Toll & Gas Paid), effective_toll_percentage (Effective Bridge Cost Percentage), protocol_fee_dollars (Protocol Liquidity Fee) using bridged_amount_usd (Amount to Bridge ($ USD)), origin_gas_fee_usd (Origin Chain Gas Fee ($)), bridge_protocol_fee_pct (Bridge Protocol Fee (%) in %), dest_gas_drop_usd (Destination Gas Refuel ($)). 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 'Cross-Chain Token Bridge Fee & Gas Slippage Optimizer' 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): "cross-chain-bridge-fee"

    • category (string): "crypto"

    • name (string): "Cross-Chain Token Bridge Fee & Gas Slippage Optimizer"

    • formula (string): Governing mathematical formula string

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

    • metrics (object): Dictionary of computed outputs:

      • metrics.net_amount_received (Net Amount Received on Destination): Formatted display string (e.g. '$4,983.50')

      • metrics.total_bridge_toll_usd (Total Bridge Toll & Gas Paid): Formatted display string (e.g. '$16.50')

      • metrics.effective_toll_percentage (Effective Bridge Cost Percentage): Formatted display string (e.g. '0.33%')

      • metrics.protocol_fee_dollars (Protocol Liquidity Fee): Formatted display string (e.g. '$3.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_cross_chain_bridge_fee"
  }
}

Input Schema

NameRequiredDescriptionDefault
dest_gas_drop_usdNoDestination Gas Refuel ($). Optional native gas subsidy credited on destination chain. Default: 5. Min: 0. Max: 50.
bridged_amount_usdNoAmount to Bridge ($ USD). Transfer amount in USDC or ETH. Default: 5000. Min: 50. Max: 500000.
origin_gas_fee_usdNoOrigin Chain Gas Fee ($). L1 gas to approve and deposit tokens. Default: 8.5. Min: 0.05. Max: 100.
bridge_protocol_fee_pctNoBridge Protocol Fee (%) (%). Across, Stargate, or Hop protocol fee. Default: 0.06. Min: 0. Max: 0.5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools