Moltline Merchant Maths
Processor fees, charge-to-net, invoice totals and proration. 3 of 6 tools free.
| Endpoint | https://mcp.moltlinestudio.com/merchant (streamable-http) |
|---|---|
| Registry version | 1.2.0 |
| Now | 6 tools · grade A (97) · pin ts_a87d26a03e7352046ab242091c8711ae · protocol 2025-06-18 |
| First / last listed | 2026-10-27 02:25 UTC / 2026-10-27 02:25 UTC |
| Grade over time | 2026-10-27: A (97), 6 tools |
Is this your server? Own a server? ToolFit hosted watch re-checks it every 24 h ($0.25 per 30 days) or 6 h ($0.60) and sends you an HMAC-signed webhook when its tools or grade change: POST https://api.youraitools.co/toolfit/v1/watch. To opt out, see About & opt-out.
Tools: processor_fees charge_to_net invoice_total discount_stack proration installment_plan
processor_fees | Break down payment-processor fees: fee, net, and effective rate. FREE.
Uses editable presets for stripe/paypal/square/shopify (verify current
rates) or your own custom_pct + custom_fixed. Typical input {"amount":
1000, "processor": "stripe", "transactions": 10} returns {"gross":
1000, "fee": 32.0, "net": 968.0, "effective_rate_pct": 3.2, "note":
"..."}.
Use when the charge amount is known and th params: amount*, processor, custom_pct, custom_fixed, transactions |
charge_to_net | Compute the gross price to charge so you net a target after fees. FREE.
'Charge X to receive Y' after percentage + fixed processor fees.
Typical input {"net_target": 100, "pct_fee": 2.9, "fixed_fee": 0.30}
returns {"charge": 103.4, "fee": 3.4, "net": 100.0}.
The inverse of processor_fees - solves for gross from a target net. Use
when the payout is the fixed requirement. Not when the price is alr params: net_target*, pct_fee, fixed_fee |
invoice_total | Total an invoice: per-line totals, subtotal, discount, tax, grand total. FREE.
Typical input {"line_items": [{"desc": "Design", "qty": 2,
"unit_price": 50}], "tax_pct": 8.5, "discount_pct": 10} returns
{"lines": [{"desc": "Design", "qty": 2, "unit_price": 50,
"line_total": 100.0}], "subtotal": 100.0, "discount": 10.0, "tax":
7.65, "total": 97.65}.
Use when several line items roll up with discoun params: line_items*, tax_pct, discount_pct |
discount_stack | Stack discounts correctly: sequential vs additive comparison. PREMIUM (license).
The two methods differ: this shows both, the final price, and the true
total discount. Typical input {"price": 200, "discounts_pct": [20, 10]}
returns {"original": 200, "sequential_price": 144.0,
"sequential_total_discount_pct": 28.0, "additive_price": 140.0,
"difference": 4.0, "note": "..."}.
Use when more than one params: price*, discounts_pct* |
proration | Compute a prorated charge or refund for a partial billing period. PREMIUM (license).
Typical input {"amount_per_period": 90, "days_used": 10,
"days_in_period": 30} returns {"days_used": 10, "days_in_period": 30,
"prorated_charge": 30.0, "prorated_refund": 60.0, "answer": 30.0}.
Use when a plan starts, ends, or changes mid-period. Not for splitting a
full amount into scheduled payments (installme params: amount_per_period*, days_used*, days_in_period, refund_mode |
installment_plan | Split a total into an installment schedule with optional deposit. PREMIUM (license).
Rounding remainders land on the final payment so the schedule always
sums exactly. Typical input {"total": 1000, "installments": 3,
"deposit_pct": 10} returns {"deposit": 100.0, "payments": [300.0,
300.0, 300.0], "check_sum": 1000.0}.
Use when one total is paid across scheduled dates. Not for partial-period
adju params: total*, installments*, deposit_pct |
Entries describe changes in tool definitions. They are not statements about a server, its quality or its author. The grade measures how the tool definitions fit model providers (token cost, schema compatibility, confusable names) as scored by the ToolFit engine at the time of the listing. JSON: append .json. Opt-out: how or hello@youraitools.co.