calc_npv
COMPUTE. Net Present Value (discounted cash flow). NPV = sum(CF_t/(1+rate)^t); cashflows[0] is period 0 (usually the negative outlay).
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": "calc_npv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| currency | No | ||
| cashflows | Yes |