Monte Carlo retirement or savings goal
portfolio-analytics_monte-carlo-goalProject a contribution/withdrawal plan with mulberry32 Monte Carlo paths and report success probability and terminal wealth percentiles. Price $0.05 USDC. POST /api/v1/portfolio-analytics/monte-carlo-goal. An unpaid call returns the x402 payment terms and does not run.
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": {
"startValue": "<startValue>",
"years": "<years>",
"meanReturn": "<meanReturn>",
"volatility": "<volatility>"
},
"name": "portfolio-analytics_monte-carlo-goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | seed, integer, from -9007199254740991 to 9007199254740991. Required. | |
| paths | No | paths, integer, from 100 to 100000. Required. | |
| years | Yes | years, integer, from 1 to 100. Required. | |
| timing | No | timing, string, one of start, end. Required. | start |
| inflation | No | inflation, number, from 0 to any. Required. | |
| meanReturn | Yes | meanReturn, number. Required. | |
| startValue | Yes | startValue, number. Required. | |
| volatility | Yes | volatility, number, from 0 to any. Required. | |
| percentiles | No | percentiles, array. Required. | |
| annualWithdrawal | No | annualWithdrawal, number, from 0 to any. Required. | |
| annualContribution | No | annualContribution, number. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | sources. Array. | |
| limitations | No | limitations. Array. | |
| successProbability | No | successProbability. Number. | |
| medianDepletionYear | No | medianDepletionYear. Number. | |
| terminalPercentiles | No | terminalPercentiles. Object. |