Get my role in a course
get_course_roleCheck your role in a specific Moodle course by providing its course ID. Returns the primary role and all assigned roles, such as student, teacher, or editingteacher.
Instructions
Get the user's role in one course (by Moodle course id, from list_courses): 'student', 'teacher' (often the TA/助教), 'editingteacher' (instructor), 'teachingassistant', 'manager', etc.
Returns {course_id, role, roles}: role is the primary role shortname, roles all of them (a user can hold more than one).
Credentials come from the MCP settings headers, not from you.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | Moodle course id (from list_courses). |