gross_margin
Calculate gross margin, gross profit, and markup from revenue and cost of goods sold.
Instructions
Calculate gross margin, gross profit, and markup from revenue and COGS.
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": {
"revenue": "<revenue>",
"cogs": "<cogs>"
},
"name": "gross_margin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cogs | Yes | Cost of goods sold | |
| revenue | Yes | Total revenue |