Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MOODLE_URLNoMoodle site URL to use instead of what `moodle-mcp setup` saved.
MOODLE_TOKENNoMoodle token to use instead of what `moodle-mcp setup` saved.
MOODLE_DOWNLOADSNoWhere `moodle_open` saves files. Default is `~/Downloads/moodle`.
MOODLE_TOKEN_FILENoFile containing the Moodle token, or a `MOODLE_TOKEN=` line.
MOODLE_INLINE_TEXTNoSet to `0` to avoid returning the text of PDFs, only saving them.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Read-only access to the user's Moodle. Start with moodle_courses; a course can be given by id or part of its name. moodle_course lists sections and materials with [module ids]; moodle_open(module_id) returns the text of pages and PDFs and saves files locally. moodle_updates, moodle_deadlines and moodle_notifications show what is new. Nothing can be submitted, posted, changed or marked as read.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
moodle_coursesA

List the Moodle courses you are enrolled in, with their ids.

moodle_courseA

Show a course's sections and materials (files, pages, forums, assignments, links) with their [module ids]. course is the course id or part of its name.

moodle_openA

Open one item from moodle_course by its [module id]: returns the text of pages, labels, links and PDFs, and saves attached files under ~/Downloads/moodle//. Long PDFs come back in parts (about 40,000 characters each); call again with start_page to read the rest. Give course (id or name) to make it faster.

moodle_updatesA

What changed in your courses in the last days days (new or updated files, forum posts, grades, ...). Leave course empty for all courses.

moodle_deadlinesB

Upcoming deadlines and calendar events (assignments, quizzes, course events) for the next days days.

moodle_notificationsB

Your latest Moodle notifications (announcements, forum posts, feedback, grades), newest first.

moodle_forumA

List a course's forums (no forum_id), or the latest discussions in one forum (forum_id from that list).

moodle_discussionA

Read all posts of one forum discussion (discussion_id from moodle_forum).

moodle_assignmentsB

Assignments with due dates and your submission and grading status. Leave course empty for all courses.

moodle_gradesA

Your grades in one course (id or part of its name).

moodle_messagesA

Your Moodle private chats and group conversations (newest first): who, unread count and the last message. Open one with moodle_conversation(conversation_id). Nothing is marked as read.

moodle_conversationA

Read the latest messages of one Moodle conversation (conversation_id from moodle_messages), oldest first. Nothing is marked as read.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 12 tools

Disambiguation3/5

moodle_courses (list enrolled courses) vs moodle_course (show one course's contents) differ only by an 's', which is a real misselection hazard despite the descriptions. There is also partial overlap among moodle_updates, moodle_notifications, and moodle_deadlines, and moodle_assignments partially duplicates due-date info found in moodle_deadlines.

Naming Consistency4/5

Every tool uses a uniform moodle_<resource> snake_case pattern, which is predictable and readable. The only blemish is the singular/plural pair moodle_courses/moodle_course, which is technically consistent but semantically fragile.

Tool Count5/5

Twelve tools is well within the healthy range and each maps to a distinct Moodle entity or activity stream. Nothing feels padded or redundant at the count level.

Completeness3/5

Read coverage is broad (courses, materials, forums, discussions, assignments, grades, messages, deadlines), but the surface is entirely read-only: no submitting assignments, uploading files, replying to forums, or sending messages. Agents asked to act on Moodle rather than summarize it will hit dead ends, even though assignment submission status is exposed.