long_running_task
Simulate long-running workloads with configurable timeouts and periodic progress updates, preventing client disconnects during healthy 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": {
"label": "<label>"
},
"name": "long_running_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| timeout_ms | No | Deadline for the task in milliseconds. Clients override this per call to match the expected workload. | |
| work_duration_ms | No | How long the simulated work should run, in milliseconds. If this exceeds timeout_ms the worker is cooperatively cancelled. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |