IRR calculator
irrInternal rate of return for evenly spaced yearly cash flows after an initial investment. Use xirr instead when cash flows have specific dates or irregular timing. Interactive version: https://raziel.co/tools/irr-calculator
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": {
"initial_investment_usd": "<initial_investment_usd>",
"cash_flows_usd": "<cash_flows_usd>"
},
"name": "irr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash_flows_usd | Yes | Net cash flow for each following year, in order (year 1, year 2, ...). Positive = money received, negative = more money invested. | |
| initial_investment_usd | Yes | Amount invested at the start (year 0), as a positive number. |