Contribution Margin
contribution-marginContribution margin per unit and as a percent of price.
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": {
"pricePerUnit": "<pricePerUnit>",
"variableCostPerUnit": "<variableCostPerUnit>"
},
"name": "contribution-margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pricePerUnit | Yes | Selling price per unit. | |
| variableCostPerUnit | Yes | Variable cost per unit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratioPct | No | Contribution margin ratio, percent (null if price=0). | |
| contributionMargin | No | Contribution per unit. |