npv
Calculate net present value from a discount rate and cash flows, with an option to treat the first cash flow as occurring at time zero.
Instructions
Net present value of a list of cash flows at a discount rate. By default the first flow is discounted one period, as spreadsheet NPV does; set first_flow_at_time_zero to leave it undiscounted.
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": {
"rate_pct": "<rate_pct>",
"cash_flows": "<cash_flows>"
},
"name": "npv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate_pct | Yes | ||
| cash_flows | Yes | ||
| first_flow_at_time_zero | No |