Finance
Discount a future lump sum or an annuity back to today's value (PV). Supports lump-sum and annuity cash flows, multiple compounding frequencies, a present-value decay curve, and a per-period breakdown. PV = FV / (1+r)^n for a lump sum.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/present-value-calculator' \
-H 'Content-Type: application/json' \
-d '{"cashFlowType":"lump-sum","futureValue":10000,"recurringPayment":1000,"discountRate":5,"periods":10,"compoundingFrequency":"1","decimalPlaces":2}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/present-value-calculator| Name | Type | Required | Description |
|---|---|---|---|
| cashFlowType | select | No | — |
| futureValue | number | Yes | — |
| recurringPayment | number | No | — |
| discountRate | number | Yes | — |
| periods | number | Yes | — |
| compoundingFrequency |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-present-value-calculator": {
"name": "present-value-calculator",
"description": "Discount a future lump sum or an annuity back to today's value (PV). Supports lump-sum and annuity cash flows, multiple compounding frequencies, a present-value decay curve, and a per-period breakdown. PV = FV / (1+r)^n for a lump sum.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=present-value-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "present-value-calculator",
"arguments": {
"cashFlowType": "lump-sum",
"futureValue": 10000,
"recurringPayment": 1000,
"discountRate": 5,
"periods": 10,
"compoundingFrequency": "1",
"decimalPlaces": 2
}
}
}| select |
| No |
| — |
| decimalPlaces | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]