Estimate a simulation's cost and size before running it
estimate_simulation_size_and_costPredicts how large a run of a model will be and how many credits it will cost, without running it. Use this before running a large or unfamiliar model, or to check that an account can afford it. It does not look for mistakes; use check_simulation_model for that. It returns the number of trials, time periods, nodes and edges, the estimated peak memory in MB, a complexity score, the size tier (small or large), the credit cost for an account, and a rough run time in seconds for run_monte_carlo_simulation and for rank_inputs_by_impact (which runs the model many times). Runs over about 40 seconds continue in the background and are collected with get_simulation_results. A run is small when trials × nodes × time periods is at most 100,000, and large otherwise. Accounts have no fixed trial or node limit. That cost is what run_monte_carlo_simulation, summarize_outcome_scenarios and rank_inputs_by_impact each charge for this model. A model with mistakes returns an error instead of an estimate. Cost: free; uses no credits and no free runs. Without an account, a model over 1,000 trials or 20 nodes is rejected, also at no cost.
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": {
"graph": "<graph>"
},
"name": "estimate_simulation_size_and_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | Yes | The model: root_nodes (uncertain inputs), calc_nodes (formulas), edges (links; formulas refer to them like {e1}) and run_params (trials and time periods). Same format as run_monte_carlo_simulation's graph, which documents formulas, periods, distributions and financial metrics in full. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | small when trials × nodes × time periods is at most 100,000, otherwise large. | |
| trials | Yes | ||
| billing | No | Who you are and what this call cost: principal, auth source, credits debited and balance, or the anonymous allowance left today. | |
| edge_count | Yes | ||
| node_count | Yes | ||
| credit_cost | Yes | Credits an account would be charged by run_monte_carlo_simulation, summarize_outcome_scenarios or rank_inputs_by_impact for this model. | |
| time_periods | Yes | ||
| graph_complexity | Yes | A relative complexity score; higher means heavier. | |
| estimated_seconds | No | Rough run time of one run_monte_carlo_simulation or summarize_outcome_scenarios call, in seconds. | |
| estimated_memory_mb | Yes | Estimated peak memory, in MB. | |
| estimated_seconds_rank_inputs | No | Rough run time of rank_inputs_by_impact with its default three values per input, in seconds. Over about 40 seconds, it finishes in the background. |