return_on_investment
Calculate Return on Investment (ROI).
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": "return_on_investment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Cost of investment | |
| gain | Yes | Gain from investment |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| gain | Yes | ||
| net_profit | Yes | ||
| roi_percent | Yes |