calculate_margin
Compute margin amount, margin percentage, and break-even ad-spend band using cost, retail price, ad spend, and VAT rate. A pure math utility with no external dependencies.
Instructions
Pure math utility: given cost, retail, ad spend, and VAT rate, return margin amount, margin %, and break-even ad-spend band. Makes zero API calls. Do NOT use when the user wants a real product evaluation (use evaluate_product) or to find products (use search_products). No auth required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cost": "<cost>",
"retail_price": "<retail_price>"
},
"name": "calculate_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Product cost in EUR | |
| retail_price | Yes | Retail price in EUR | |
| ad_spend | No | Ad spend per unit in EUR | |
| vat_rate | No | VAT rate as decimal |