Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_merchant_discount_rate_stripe

Calculate total credit card processing fees and effective merchant discount rate (MDR) from monthly card volume, average ticket size, processor percentage, and fixed per-transaction fee.

Instructions

Payment Gateway Processing Fee & Effective Merchant Discount Rate (MDR) Calculator. Calculate total credit card processing costs (Stripe, Shopify Payments, PayPal) and determine your true effective Merchant Discount Rate (MDR). Discipline: ECOMMERCE. Governing mathematical model / formula: Total Fee = (Sales Volume × Variable %) + (Transactions × Fixed Fee) | Effective MDR = (Total Fee / Sales Volume) × 100.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of total_processing_fee (Total Monthly Processing Fees), effective_mdr_pct (Effective Merchant Discount Rate (MDR)), net_deposit_payout (Net Bank Deposit After Fees), total_transactions_count (Total Transactions Processed) using monthly_card_volume (Monthly Card Sales Volume in $), average_ticket_size (Average Order / Ticket Size in $), processor_variable_pct (Processor Variable Fee (%) in %), processor_fixed_fee_cents (Processor Fixed Fee Per Transaction in $). 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 'Payment Gateway Processing Fee & Effective Merchant Discount Rate (MDR) 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): "merchant-discount-rate-stripe"

    • category (string): "ecommerce"

    • name (string): "Payment Gateway Processing Fee & Effective Merchant Discount Rate (MDR) Calculator"

    • formula (string): Governing mathematical formula string

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

    • metrics (object): Dictionary of computed outputs:

      • metrics.total_processing_fee (Total Monthly Processing Fees): Formatted display string (e.g. '$2,857.69 / mo')

      • metrics.effective_mdr_pct (Effective Merchant Discount Rate (MDR)): Formatted display string (e.g. '3.36%')

      • metrics.net_deposit_payout (Net Bank Deposit After Fees): Formatted display string (e.g. '$82,142.31')

      • metrics.total_transactions_count (Total Transactions Processed): Formatted display string (e.g. '1,308 Swipes')

    • 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_merchant_discount_rate_stripe"
  }
}

Input Schema

NameRequiredDescriptionDefault
average_ticket_sizeNoAverage Order / Ticket Size ($). Average dollars per transaction swipe. Default: 65. Min: 2. Max: 2000.
monthly_card_volumeNoMonthly Card Sales Volume ($). Gross credit/debit transactions processed. Default: 85000. Min: 1000. Max: 10000000.
processor_variable_pctNoProcessor Variable Fee (%) (%). Standard Stripe rate is 2.9%. Default: 2.9. Min: 1. Max: 5.
processor_fixed_fee_centsNoProcessor Fixed Fee Per Transaction ($). Standard fixed fee is $0.30 per charge. Default: 0.3. Min: 0. Max: 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools