roi_calc
Calculate return on investment percentage by dividing total gain by total cost. Determine profitability of an investment with a simple formula.
Instructions
Calculate Return on Investment (ROI) percentage.
Parameters:
gain — Total gain from investment.
cost — Total cost of investment.
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": {
"gain": "<gain>",
"cost": "<cost>"
},
"name": "roi_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gain | Yes | ||
| cost | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |