tvm_irr
Compute the internal rate of return for a series of cash flows. Uses Newton-Raphson method to return IRR, annualized IRR, and NPV.
Instructions
Internal rate of return via Newton-Raphson. First cash flow is typically negative (investment).
Use when computing the internal rate of return for a cash flow series. Provide an array of cash flows. Returns: IRR (decimal), annualized IRR, and NPV at the computed IRR (should be ~0).
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": "tvm_irr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash_flows | Yes | Array of cash flows (first is typically negative = initial investment) |