Wait for a run
wait_for_runWaits for an optimization run to finish by checking progress about every 10 seconds, returning the final verdict and before-to-after figures or a still-running status when the wait limit is reached.
Instructions
Wait for a run to finish, checking about every 10 seconds and reporting progress. Returns the final result (verdict and before -> after figures), or 'still running, call again' when max_wait_s is up: then call wait_for_run again. Optimize runs take 5-60 minutes, so expect several calls.
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": {
"run_id": "<run_id>"
},
"name": "wait_for_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run id. | |
| max_wait_s | No | How long to wait in this call, in seconds (at most 600). |