ROI Calculator
roiCompute net gain and return on investment percentage from entered cost and final value, with optional annualization.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cost": 100,
"finalValue": 125
},
"name": "roi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Cost (must be positive). | |
| years | No | Optional positive duration in years for annualized ROI. | |
| finalValue | Yes | Final value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||