Internal rate of return (IRR)
compute_irrInternal rate of return of a series of cash flows, per period, with the equity multiple and every rate that sets the net present value to zero. IRR is where calculators silently disagree: a series with no sign change has no IRR at all, and one that changes sign more than once can have several; this engine refuses the first with a named reason and lists every root of the second. Send cash_flows as comma-separated numbers, period 0 first, with money put in as negative numbers, for example -100000,8000,8500,9000,9500,130000. Yearly flows give a yearly IRR.
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": {
"cash_flows": "<cash_flows>"
},
"name": "compute_irr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash_flows | Yes | Comma-separated cash flows, period 0 first, e.g. -100000,8000,8500,9000,9500,130000 |