Async Demo Job
async_demo_submitLaunch a long-running solve as an asynchronous job that returns immediately, preventing multi-minute computations from blocking the MCP worker; poll status and results with separate tools.
Instructions
Reference async long-solve: launch a job that runs OFF the MCP channel and return immediately, so a multi-minute solve never blocks the worker. (This demo just computes for duration_s then returns a deterministic result; a real FEM/CFD solve plugs into the same facility — see ankusdrive/jobs.py.) Returns {job_id, status, cache_hit}; poll with job_status / job_result. A re-submit with identical (duration_s, value) is a content-hash cache hit (no recompute).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "async_demo_submit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| workspace | No | Run this call in this named workspace | |
| duration_s | No |