MCP ServerTool Reference
Cancel Course Generation
Cancel Course Generation MCP tool.
Cancel Course Generation
Cancel one running or paused course generation run; it cannot be restarted. Repeating the call reports already_canceled.
Contract
| Field | Value |
|---|---|
| Tool name | cancel_course_generation |
| Domain | courses |
| Required scopes | ai:manage |
| Title | Cancel course generation |
| Read only hint | false |
| Destructive hint | true |
| Idempotent hint | true |
| Open world hint | false |
| Bulk limit | none |
| Timeout | 15000ms |
| Kill switch key | course_generations.cancel |
| REST sibling | POST /api/public/v1/course-generations/{id}/cancel |
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"reason": {
"type": "string",
"maxLength": 2000
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"pattern": "^[A-Za-z0-9._:-]+$"
}
},
"required": [
"id",
"idempotency_key"
],
"additionalProperties": false
}Output Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"content": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
}
}
},
"required": [
"content"
],
"additionalProperties": false
}