list_courses
Retrieve Moodle courses available to the configured API token with filters for category, visibility, limit, and offset. Use it to discover course IDs and names before requesting detailed course data.
Instructions
List LMS courses available to the configured API token. Returns course ID, full name, short name, category, category path, and visibility. Supports filtering and pagination via categoryid, categoryname, visible, limit, and offset. When categoryname is used, it must match an existing category name exactly; if multiple categories share that name, the tool will ask for the ID instead of guessing. Use visible=false for hidden courses and visible=true for visible courses. Use limit and offset for subset requests like first 10 or first 50. Do not request the full course list unless the user explicitly asks for all courses. Use this to discover available courses before drilling into details. Prefer exact category IDs from list_categories when available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of courses to return | |
| offset | No | Number of courses to skip before returning results | |
| visible | No | Filter by course visibility. false returns hidden courses; true returns visible courses. | |
| categoryid | No | Filter courses by category ID | |
| categoryname | No | Filter courses by exact category name |