List courses
Courses of the portal with name and published or draft status.
MCP tool learnupon_read → list_courses
read
Returns the courses in the portal with their status. Only published courses can take enrollments: LearnUpon does not enroll anyone, individual or group, on a draft. Use course_id in the enrollment tools.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Part of the course name. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "learnupon_read",
"arguments": {
"operation": "list_courses",
"arguments": {}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"courses": [
{
"course_id": "10233",
"name": "Forklift safety",
"status": "published"
},
{
"course_id": "10240",
"name": "Data privacy basics",
"status": "published"
},
{
"course_id": "10251",
"name": "Workshop attendance",
"status": "draft"
}
]
},
"isError": false
}