MCP ServerTool Reference
Save Course
Save Course MCP tool.
Save Course
Create a draft course, or update one by id. Create needs title, description and category_id (list_categories). Publish with set_course_status.
Contract
| Field | Value |
|---|---|
| Tool name | save_course |
| Domain | courses |
| Required scopes | courses:write |
| Title | Save course |
| Read only hint | false |
| Destructive hint | false |
| Idempotent hint | true |
| Open world hint | false |
| Bulk limit | none |
| Timeout | 10000ms |
| Kill switch key | courses.save |
| REST siblings | PUT /api/public/v1/courses/{id}, POST /api/public/v1/courses |
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)$"
},
"title": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"minLength": 1
},
"category_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)$"
},
"difficulty": {
"type": "string",
"enum": [
"beginner",
"intermediate",
"advanced",
"expert"
]
},
"duration_minutes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"thumbnail_url": {
"type": "string",
"format": "uri"
},
"idempotency_key": {
"type": "string",
"minLength": 8,
"maxLength": 200,
"pattern": "^[A-Za-z0-9._:-]+$"
}
},
"required": [
"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
}