ROAS calculator
roasReturn on ad spend from sales and ad spend, plus the break-even ROAS and profit for a profit margin.
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>",
"ad_spend": "<ad_spend>"
},
"name": "roas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revenue | Yes | Sales from the ads (conversion value) in the period. | |
| ad_spend | Yes | What the ads cost in the same period. | |
| currency | No | Currency code for the amounts; amounts are shown in it, never converted. | USD |
| margin_percent | No | Profit margin in percent, for the break-even ROAS. |