Finance
Project investment growth with initial principal plus monthly contributions and compound interest. Supports compounding frequency, inflation-adjusted real value, and yearly contribution escalation, with a yearly breakdown table and nominal vs real balance curves.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/investment-calculator' \
-H 'Content-Type: application/json' \
-d '{"initialAmount":10000,"monthlyContribution":500,"annualReturnRate":7,"years":20,"compoundingFrequency":"monthly","contributionTiming":"end","inflationRate":3,"annualContributionIncrease":0,"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/investment-calculator| Name | Type | Required | Description |
|---|---|---|---|
| initialAmount | number | Yes | — |
| monthlyContribution | number | Yes | — |
| annualReturnRate | number | Yes | — |
| years | number | Yes | — |
| compoundingFrequency | select | No | — |
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-investment-calculator": {
"name": "investment-calculator",
"description": "Project investment growth with initial principal plus monthly contributions and compound interest. Supports compounding frequency, inflation-adjusted real value, and yearly contribution escalation, with a yearly breakdown table and nominal vs real balance curves.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=investment-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": "investment-calculator",
"arguments": {
"initialAmount": 10000,
"monthlyContribution": 500,
"annualReturnRate": 7,
"years": 20,
"compoundingFrequency": "monthly",
"contributionTiming": "end",
"inflationRate": 3,
"annualContributionIncrease": 0,
"decimalPlaces": 2
}
}
}| contributionTiming |
| select |
| No |
| — |
| inflationRate | number | No | — |
| annualContributionIncrease | number | 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]