cancel_task_tool
Cancel running or pending quantum computing tasks on the QPanda3 Runtime MCP Server by providing a task ID to stop execution before completion.
Instructions
Cancel a running or pending task.
Request cancellation of a submitted task. This is only effective if the task has not yet completed.
Args: task_id: The ID of the task to cancel.
Returns: Dictionary containing: - status: "success" or "error" - task_id: The task ID - message: Cancellation status
Example: cancel_task_tool("task_12345")
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": {
"task_id": "<task_id>"
},
"name": "cancel_task_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||