MCP ServerTool Reference
Set Course Status
Set Course Status MCP tool.
Set Course Status
Publish one course, or move a published course back to draft. Unpublish fails while learners are enrolled or active.
Contract
| Field | Value |
|---|---|
| Tool name | set_course_status |
| Domain | courses |
| Required scopes | courses:manage |
| Title | Set course status |
| Read only hint | false |
| Destructive hint | true |
| Idempotent hint | true |
| Open world hint | false |
| Bulk limit | none |
| Timeout | 10000ms |
| Kill switch key | courses.status |
| REST sibling | POST /api/public/v1/courses/{id}/{action} |
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)$"
},
"action": {
"type": "string",
"enum": [
"publish",
"unpublish"
]
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"pattern": "^[A-Za-z0-9._:-]+$"
}
},
"required": [
"id",
"action",
"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
}