list_user_courses
Retrieves all Moodle courses for a specific user ID, enabling admins to review a learner's enrolled courses. Use exact user IDs from get_user or search_users lookups.
Instructions
List courses for a specific Moodle user ID. Requires an exact userid. Use get_user for exact email or username lookups first. Use search_users when a person is identified by name and multiple matches are possible. If multiple people match, ask the operator to choose the correct userid before calling this tool.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"userid": "<userid>"
},
"name": "list_user_courses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _silo | No | INTERNAL: Silo filter injected by agent-edge. Not for direct use. | |
| limit | No | Maximum courses to return | |
| offset | No | Pagination offset | |
| userid | Yes | Exact Moodle user ID |