Pricing, Margin & Discount Calculators — Saifs AI
pricing_profit_calculatorsCalculate prices, profit and percentages exactly: what is 18% of a price, % change, percentage points, reverse %; price from target margin, margin vs markup; single / chain (10% + 5%) / trade + cash discounts, MRP back-calculation; profit or loss % on cost and on sale; slab / volume pricing, sales commission slabs, incentive payout; break-even units and revenue, contribution margin, target-profit units, margin of safety; split an amount by a ratio, rule of three. Returns a standard-library Python script with only these calculators (percentage_calculator, margin_markup_calculator, discount_calculator, profit_loss_calculator, tier_pricing_commission_calculator, break_even_calculator, ratio_proportion_calculator) to run in your code sandbox; each answer gives result, formula, inputs used, rounding, rule version and effective date. Inputs: tools (narrow to some of these calculators), calls ([{tool, operation, inputs, rounding?, as_of?}] baked into the script; a calculator from another area named in calls is added), calls_path (JSON file of calls in your sandbox). Calculation never runs on this server or any API. Not for EMI / interest / NPV / IRR (refused), nor win-probability pricing (Saifs MCP 59); GST (use gst_tds_invoice_calculators). Operation and input names: business_calculator_list_formulas.
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": "pricing_profit_calculators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | Calculations to bake into the script (their calculators are included). | |
| tools | No | Narrow the script to some of this area's calculators (default: all of them). | |
| calls_path | No | JSON file of calls already in your sandbox. | |
| full_catalog | No | Keep descriptions and worked examples inside the script (larger). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | ||
| notes | No | ||
| script | Yes | ||
| language | No | ||
| requires | No | ||
| calls_path | No | ||
| operations | No | ||
| call_format | No | ||
| instructions | Yes | ||
| writes_files | No | ||
| calls_baked_in | No | ||
| engine_version | Yes | ||
| included_tools | Yes | ||
| server_computes | No | ||
| network_access_required | No |