Estimate job cost
estimate_costFree. Estimate the maximum model, compute and platform credits for a paid tool. Optional: paid tools can be called directly. Use it when the user asks what a job will cost. With cost_mode "agent_authored" and a specification, it also validates the specification with exactly the checks the paid tool runs and lists every problem as a blocker, so fix those before paying. No model calls or paid workload execution.
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": {
"tool": "<tool>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Only for cost_mode "agent_authored" on generate_safety_analysis: {conditions:[{target,description,severity,...}],modes:[{target,mode,severity,occurrence,detection,...}]}; with analysis "stpa": {losses:[{id,description}],hazards:[{id,description,losses}],controllers:[{target,processModel}],controlActions:[{from,to,name,ucas:[{id,type,context,contextVariables,hazards,constraint}|{type,notApplicable,rationale}]}],feedback:[{from,to,name,updates}],constraints:[{id,name,text}]}. | |
| tool | Yes | ||
| model | No | ||
| study | No | ||
| events | No | ||
| format | No | ||
| prompt | No | ||
| stop_s | No | ||
| analysis | No | For generate_safety_analysis: fha, fmea, both (default) or stpa. stpa needs no standard. | |
| fidelity | No | ||
| model_id | No | A model from a generation job (model_ id) or a saved studio model (m_ id); a saved model is read at the head of main. | |
| provider | No | ||
| standard | No | ||
| cost_mode | No | managed | |
| max_depth | No | Only for run_agent_swarm: levels of division, 1 to 3 (default 2). At 2 and 3, a subsystem the orchestrator judges too large for one agent is divided again inside its frozen boundary. | |
| subsystem | No | For reprompt_agent: qualified name of the subsystem, e.g. "Rover::DriveUnit". For run_agent_swarm on a saved model: the subsystem to decompose one level further (its parts get the agents); leave it out to work on the whole system's subsystems. | |
| scenario_id | No | ||
| simulations | No | ||
| specification | No | Required for cost_mode "agent_authored" on generate_system_model and build_full_system: the system you wrote, as JSON matching this schema (the same schema describe_mbestudio returns as specification_schema). estimate_cost validates it for free with the same checks the paid tools run and lists every problem as a blocker, so call it before a paid tool. | |
| simulation_type | No |