Get course contents
get_course_contentsRetrieve all teacher-posted materials for a Moodle course, grouped by weekly sections. Shows resources, links, forums, assignments, and summaries, with optional blank sections.
Instructions
Get everything the teacher posted in one course (by Moodle course id, from list_courses), grouped by section — NCCU names sections by week, so this is the week-by-week list of materials, links, forums and assignments.
The summary is the teacher's text for that section/week (readings, plan, notes) — many NCCU weeks have only a summary and no attached items. By default a section is shown if it has items OR a summary; only truly blank sections are dropped. Set include_empty true for the full week skeleton including blank weeks.
Each section: {section_id, section, summary, modules:[{id, instance, name, type, url}]}. type is the Moodle module (assign, resource, url, forum, quiz, page, folder, label, …); id is the course-module id (cmid) and instance the activity id — use them to open an item with other tools (e.g. an assign instance is the course_id-independent assignment id, a forum instance feeds get_announcement's forum).
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). | |
| include_empty | No | Include truly blank sections (no items and no summary). |