28 tools · 4 prompts · 2 resources

MCP tools

The upb-moodle-mcp server exposes the tools below over stdio. The table is generated from the real definitions: the names, parameters, types and annotations come from the code. The same MCP tools are available in all five harnesses.

How to read the table

Every tool has a type: read (changes nothing), write (changes the account and needs confirm=true) or local (works on your machine). Parameters show the name, the type and the default value, when there is one.

Tools that return lists answer with {"count": n, "items": [...]}. Moodle errors arrive as tool errors, with the original message.

Account

ToolTypeParametersWhat it does
whoamiread—Show the logged-in student, site name and the number of Web Service functions available.
auth_statusread—Check whether a saved Moodle token exists and works.
moodle_loginlocalmethod: str = 'auto' timeout_s: int = 300Log in to Moodle and save the token for future calls.

Courses and materials

ToolTypeParametersWhat it does
list_coursesreadstudy_year: int | None semester: int | None academic_year: str | None faculty: str | None program: str | None series: str | None search: str | NoneList enrolled courses.
course_outlinereadcourse_id: intRaw course structure: sections, modules (activities, resources, labels), contents and file URLs.
download_materialslocalcourse_ids: list[int] | None study_year: int | None semester: int | None faculty: str | None program: str | None series: str | None out_dir: str | None deep: bool = TrueDownload courses to disk, in parallel: files, pages, assignments (teme.md), forums, quizzes, grades, links, raw JSON.

Assignments

ToolTypeParametersWhat it does
list_assignmentsreadcourse_ids: list[int] | NoneList assignments (teme) with due dates, submission types and instructions.
assignment_statusreadassign_id: intSubmission status for an assignment: drafts_enabled, submitted files/text, grade, feedback comments.
submit_assignment_filewriteassign_id: int file_path: str submit_for_grading: bool = False confirm: bool = False allow_direct: bool = FalseUpload a local file as the assignment submission.
submit_assignment_textwriteassign_id: int text: str submit_for_grading: bool = False confirm: bool = False allow_direct: bool = FalseWrite the online-text submission for an assignment.

Forums

ToolTypeParametersWhat it does
list_forumsreadcourse_ids: list[int] | NoneList forums (including the 'news' Announcements forum) of the given or all courses.
forum_discussionsreadforum_id: intAll discussions of a forum with their ids, authors, dates and reply counts.
discussion_postsreaddiscussion_id: intAll posts of a forum discussion, with text and attachments.
reply_to_postwritepost_id: int subject: str message: str confirm: bool = FalseReply to a forum post.
new_discussionwriteforum_id: int subject: str message: str confirm: bool = FalseStart a new forum discussion.

Grades

ToolTypeParametersWhat it does
grades_overviewread—Overall course grades for every enrolled course.
course_gradesreadcourse_id: intGrade items (items, grades, ranges, percentages, feedback) for one course.

Quizzes

ToolTypeParametersWhat it does
list_quizzesreadcourse_ids: list[int] | NoneList quizzes with open/close times and attempt limits.
quiz_attemptsreadquiz_id: intThe student's past attempts at a quiz with state and grades.
quiz_startwritequiz_id: int force_new: bool = False confirm: bool = FalseStart (or resume) an attempt at a quiz.
quiz_questionsreadattempt_id: intQuestions of an attempt.
quiz_answerwriteattempt_id: int answers: dict[str, str] finish: bool = False confirm: bool = FalseSave answers to an attempt (finish=false) or submit it for grading (finish=true, irreversible). answers maps input name -> value, e.g. {"q123:1_answer": "2"} for a radio option value.
quiz_reviewreadattempt_id: intReview of a finished attempt: questions, the answers given and the marks (raw Moodle data).

Notifications and deadlines

ToolTypeParametersWhat it does
notificationsreadlimit: int = 20 unread_only: bool = FalseRecent Moodle notifications (new content, grades, forum activity) and the unread count.
mark_notification_readwritenotification_id: int confirm: bool = FalseMark a notification as read.
deadlinesreaddays: int = 30Upcoming deadlines and events in the next N days, sorted by time.

Moodle API

ToolTypeParametersWhat it does
moodle_functionsreadpattern: str | NoneList every Moodle Web Service function available to this token.
moodle_callwritefunction: str params: dict[str, Any] | None confirm: bool = FalseCall ANY Moodle Web Service function with a params dict (nested dicts/lists are encoded like Moodle expects).

Prompts

PromptParametersWhat it does
weekly_brief—Deadlines, unread notifications and open assignments for the week; writes nothing.
prepare_assignmentassign_id: intThe requirement, the deadline, the state and a plan; submits only after approval.
solve_quizquiz_id: intQuestions, proposed answers, save, then finish after a second approval.
download_yearstudy_year: int semester: intDownload a year and semester, then summarise the report.

Resources

ResourceContent
moodle://meThe connected student's profile.
moodle://deadlinesDeadlines for the next 14 days.

Rules

Writes need confirm=true. Without it, the server returns an error and does nothing. Submissions to assignments without drafts are refused, except with allow_direct=true.

Prompts are ready-made flows the client can offer as commands. Resources are readable context: your profile and the deadlines for the next 14 days.

moodle_call calls any Web Service function the token exposes. Functions that are not read-only need confirm=true. On the real account in November 2026, the token on curs.upb.ro/2026 had 450 functions available.

The tool surface

Diagram: the MCP tools grouped by account, courses, assignments, forums, grades, quizzes, notifications and Moodle API, with green dots for read, amber for write and blue for local.
The tools, grouped by area, with each one's type.

Diagram: the MCP tools grouped by account, courses, assignments, forums, grades, quizzes, notifications and Moodle API, with green dots for read, amber for write and blue for local.