---
title: "corestack_task_cancel"
url: https://docs.corefinity.com/mcp/tools/corestack_task_cancel
type: tool
last_updated: 2026-11-13
feature: operations
related:
  - https://docs.corefinity.com/api/long-running-work.md
---
# corestack_task_cancel

**Cancel a task.** Ask a task to stop. Work the control panel can stop ends cancelled; a change it cannot stop keeps running and its status says so. Scope: the scopes of the call that started the task.

- Scope: ``
- Also needs `` when the scopes the call that started the task needed
- Runs as a task: no

## When to use it

Ask a task to stop. Work the Control Panel can stop ends cancelled; a change it cannot stop keeps running and its status says so. A task whose site another control panel now manages is not cancelled here: cancel it in that control panel.

## Inputs

- `task_id` (string, pattern `^cfmcpt_[0-9A-Za-z]{32}$`, required): The task id (cfmcpt_…) from the tool's answer.

### Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "task_id": {
      "description": "The task id (cfmcpt_…) from the tool's answer.",
      "pattern": "^cfmcpt_[0-9A-Za-z]{32}$",
      "type": "string"
    }
  },
  "required": [
    "task_id"
  ],
  "type": "object"
}
```

## Refusals

- `managed_elsewhere` (message: "This site is managed by another control panel"): another control panel manages the site this task works on, so use that control panel for it. This is refused before anything else about the task, as the native `tasks/cancel` is. Nothing was cancelled, and the work keeps running.
- The refusals every tool can answer: `invalid_arguments`, `tenant_mismatch`, `scope_required`, `pin_refused`, `rate_limited`, `temporarily_unavailable`, `internal_error` (corestack://guides/how-this-server-works).

## Example

```json
{
  "name": "corestack_task_cancel",
  "arguments": {
    "task_id": "cfmcpt_a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6"
  }
}
```

## Prompt

```text
Using the Corefinity MCP server, call corestack_task_cancel with task_id cfmcpt_a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6. (Cancel a task.) Tell me what it returned.
```

## The same task elsewhere

- Guide: [Long-running work](https://docs.corefinity.com/api/long-running-work.md)
