irr
Calculate the internal rate of return for an investment given a series of cash flows, with the first value representing the initial outlay.
Instructions
Calculate Internal Rate of Return of cash flows (Newton-Raphson).
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": "irr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash_flows | Yes | Cash flows; index 0 is the initial outlay (usually negative). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||