Dated cash flows: NPV and internal rate of return
compute_cashflow_metricsNet present value and internal rate of return of 2-360 dated cash flows. NPV at a stated annual effective rate, Actual/365 Fixed day count as in spreadsheet XNPV. XIRR-style rate by a bracketed, bounded search that says when no rate exists, when several may exist or when it did not converge. Arithmetic only: no currency conversion, tax rule or financial advice.
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": {
"flows": "<flows>"
},
"name": "compute_cashflow_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flows | Yes | ||
| discount_rate | No | Annual effective rate as a fraction (0.08 for 8 %). Omit to skip the NPV. |