net_present_value
Calculates the net present value (NPV) of a cashflow series by discounting each period's cashflow at the given rate. Useful for investment analysis and comparing cashflows.
Instructions
Net Present Value (discounted cash flow) of a periodic cashflow series.
NPV = sum(CF_t / (1 + rate)^t), t = 0..n. Index 0 is period 0 (typically the negative initial investment).
Args: rate: Discount rate per period as a decimal (0.10 = 10%). cashflows: List of >= 2 numbers, e.g. [-10000, 3000, 4200, 6800]. currency: ISO code for formatting.
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": "<rate>",
"cashflows": "<cashflows>"
},
"name": "net_present_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| currency | No | USD | |
| cashflows | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||