# Goldnat for Moodle — Teacher (Pro)

Connect Claude or ChatGPT to your Moodle site and let it grade assignments, enrol students, message learners, and export the gradebook — every action runs as the teacher, with Moodle's own permissions.

- Platform: Moodle
- Edition: paid add-on
- Web page: https://plugins.goldnat.ai/moodle/moodle-teacher-ai-connect
- Installation guide: https://plugins.goldnat.ai/moodle/guide
- Requires: Goldnat for Moodle (https://plugins.goldnat.ai/moodle/moodle-plugin.md)

## What it does

- **Automated grading & feedback** — AI grades assignment submissions and records the score straight into the Moodle gradebook — submitGrade runs as the teacher, so grades are attributed correctly and respect course permissions.
- **Full gradebook access & export** — Read the complete course gradebook (every student × every grade item), pull one student's grades, or export the whole thing to CSV or Excel (.xlsx) in one call — ready to share or archive.
- **Enrolment & messaging on autopilot** — Enrol students into courses, search users, update course details, and send learners personal Moodle messages — the day-to-day admin a teacher repeats every week, handled by the AI.
- **Permission-aware, runs as the teacher** — Every write runs as the authenticated teacher through Moodle's own capability checks. The AI can never do anything the teacher couldn't do manually.
- **Builds on the Free Moodle plugin** — Pro is a Moodle plugin that extends the Free AI Connect core. Install both: the core provides read tools + OAuth, Pro adds the 10 teacher write/gradebook tools.
- **Plans that fit a class or a campus** — From $149/yr for a single teacher's toolkit up to $599/yr for institution-wide use. Paddle handles billing, local currency, VAT, and tax automatically.
- **Secure by design** — Industry-standard OAuth 2.0 flow with PKCE. Every AI agent authenticates with proof-of-key exchange — no secrets stored client-side.
- **Native Moodle permissions** — Tool calls respect Moodle's capability system. The AI acts as the teacher and only touches courses and students that teacher can access.
- **Servio Protocol** — Manifest endpoint, tool discovery, structured JSON responses. Compatible with the Model Context Protocol standard.
- **Production ready** — 60 structured teacher tools — including grading, enrolment, messaging, course updates, and gradebook CSV/Excel export — ready for production use.

## What you can ask the agent

- "Which students have not submitted the essay?" — The agent compares enrolments and submissions and lists who is missing.
- "Give everyone in Group B a one-week extension." — It extends the due date for that group.
- "Which students are at risk of failing?" — It analyses grades and activity and lists students to check on.
- "Create a new assignment for next week with this brief." — It creates the assignment in your course.
- "Export the gradebook to Excel." — It exports the course gradebook.
- "Show me how the class did on the last quiz." — It reads the quiz statistics.

## Install and connect

1. Install the free core plugin first: Goldnat for Moodle (https://plugins.goldnat.ai/moodle/moodle-plugin). This plugin runs on top of it.
2. Buy Goldnat for Moodle — Teacher (Pro) at goldnat.ai, download it, and upload it in your Moodle admin panel. Enter the license key you receive.
3. Connect your AI agent: in goldnat.ai (or another compatible agent) add your site address. You are sent to your own Moodle site to log in and approve what the agent may do (read only, or read and write).
4. Ask the agent in plain language. It calls the plugin on your site as you, and shows you the result.
5. Full installation guide with screenshots: https://plugins.goldnat.ai/moodle/guide

## What the agent can and cannot do

- The agent acts as the Moodle user who connected it. It can never see or change more than that user can.
- You approve the access level when you connect (read only, or read and write), and you can revoke the connection at any time from the plugin page in your admin panel.
- Actions that delete content or cannot be undone ask for an explicit confirmation first.
- Your content stays on your site. The plugin answers the agent's requests directly; it does not copy your site anywhere else.

## Tools

Each tool is called by the agent by name. "write" tools need write access approved at connection.

- `moodle.addGroupMember` (write) — Add a user to a group. User must already be enrolled in the group course.
- `moodle.analyzeGradeDistribution` (read) — Analyzes grade distribution in the course and returns statistics (mean, median, spread).
- `moodle.bulkGradeAssignment` (write) — Grade multiple students at once for one assignment. Map of userid to {grade, feedback}.
- `moodle.createAssignment` (write) — Creates a new assignment in the course with name, instructions, and due date.
- `moodle.createCalendarEvent` (write) — Create a calendar event. Personal event if courseid is omitted; course-wide event (visible to all enrolled users) when courseid is provided.
- `moodle.createCourse` (write) — Creates a new course with name, code, and category.
- `moodle.createCourseCategory` (write) — Creates a new course category to organize courses.
- `moodle.createGradeItem` (write) — Creates a new grade item in the course gradebook.
- `moodle.createGroup` (write) — Create a new group in a course. Returns the created group id.
- `moodle.createQuestionCategory` (write) — Create a new question bank category in a course context. Organizes questions across quizzes.
- `moodle.createQuiz` (write) — Create an empty quiz in a course. Returns quiz id + cmid; use createQuestionCategory + question-adding tools to populate. Quiz appears on course page and in gradebook immediately.
- `moodle.deleteAssignment` (delete) — Delete an assignment activity from a course. DESTRUCTIVE — removes the assignment and all student submissions.
- `moodle.downloadSubmissionFile` (read) — Download a specific file from an assignment submission. Returns a signed URL or the file contents.
- `moodle.duplicateCourse` (write) — Duplicates an existing course including its content and settings into a new course.
- `moodle.enrollUser` (write) — Enrolls a user (student/teacher) in a given course.
- `moodle.exportGradebookCSV` (read) — Exports the course gradebook as a CSV file (students × grade items).
- `moodle.exportGradebookExcel` (read) — Exports the course gradebook as an Excel (.xlsx) file, returned base64-encoded.
- `moodle.extendAssignmentDueDate` (write) — Extend the due date (and optionally cutoff date) on an assignment. Provide new dates as Unix timestamps.
- `moodle.getAssignmentSubmissions` (read) — List every submission for an assignment, with status (submitted or not), date, grade, attached files and the learner's comments.
- `moodle.getAttemptDetails` (read) — Get Attempt Details (Moodle quiz)
- `moodle.getCategoryCourses` (read) — List all courses in a given category, with their ID, name, shortname, and visibility.
- `moodle.getCourseCategories` (read) — Get details of a specific course category by ID, including name, description, parent, depth, and course count.
- `moodle.getCourseGradebook` (read) — Get the full gradebook for a course: every enrolled student with their grade in each grade item (Pro)
- `moodle.getGradeCategories` (read) — Get Grade Categories (Moodle core-gradebook)
- `moodle.getGradeCategory` (read) — Get Grade Category (Moodle core-gradebook)
- `moodle.getGradeFeedback` (read) — Get Grade Feedback (Moodle core-gradebook)
- `moodle.getGradeHistory` (read) — Get Grade History (Moodle core-gradebook)
- `moodle.getGradeItem` (read) — Get Grade Item (Moodle core-gradebook)
- `moodle.getGradeItems` (read) — Get Grade Items (Moodle core-gradebook)
- `moodle.getGradeLetters` (read) — Get Grade Letters (Moodle core-gradebook)
- `moodle.getGradeOutcomes` (read) — Get Grade Outcomes (Moodle core-gradebook)
- `moodle.getGradeScales` (read) — Get Grade Scales (Moodle core-gradebook)
- `moodle.getGroup` (read) — Get details of a specific group by ID, including course, name, description, and current member list.
- `moodle.getQuizAccessRules` (read) — Get Quiz Access Rules (Moodle quiz)
- `moodle.getQuizAttempts` (read) — List quiz attempts for one learner or for the whole class, with date, score, status (in progress or finished) and time remaining.
- `moodle.getQuizDetails` (read) — Get Quiz Details (Moodle quiz)
- `moodle.getQuizQuestions` (read) — Get the questions in a quiz, including type (multiple choice, true or false, short answer), question text, options, marks and feedback where permitted.
- `moodle.getQuizStatistics` (read) — Get Quiz Statistics (Moodle quiz)
- `moodle.getStudentGrades` (read) — Get all grades for a single student in a course, item by item, with the course total (Pro)
- `moodle.getSubmissionContent` (read) — Read the full content of a single student assignment submission: online text, submitted files (with URLs), current grade, and feedback.
- `moodle.getSubmissionFiles` (read) — List the files attached to an assignment submission, with names, sizes, types and download links.
- `moodle.getUserBestAttempt` (read) — Get User Best Attempt (Moodle quiz)
- `moodle.gradeByGroup` (write) — Assign the same grade + feedback to every member of a group in an assignment.
- `moodle.identifyAtRiskStudents` (read) — Identifies at-risk students based on grades, submissions, and activity, and returns a ranked list.
- `moodle.listAttempts` (read) — List Attempts (Moodle quiz)
- `moodle.listCourseCategories` (read) — List all course categories on the site with their hierarchy. Optionally filter by parent id.
- `moodle.listGroups` (read) — List all groups in a course. Returns group id, name, description, and member count.
- `moodle.listQuestionCategories` (read) — List Question Categories (Moodle quiz)
- `moodle.listQuizzes` (read) — List Quizzes (Moodle quiz)
- `moodle.removeGroupMember` (write) — Remove a user from a group. Does NOT unenroll them from the course.
- `moodle.searchGrades` (read) — Search Grades (Moodle core-gradebook)
- `moodle.searchQuestionBank` (read) — Search Question Bank (Moodle quiz)
- `moodle.searchUsers` (read) — Searches users by name or email address.
- `moodle.sendMessage` (write) — Sends a personal message to a student or a group of students through the Moodle messaging system.
- `moodle.submitGrade` (write) — Enters a grade for a student's assignment and saves it to the gradebook.
- `moodle.updateAssignment` (write) — Update an existing assignment (name, intro, dates, max grade).
- `moodle.updateCourse` (write) — Updates the course details (name, description, settings).
- `moodle.updateCourseCategory` (write) — Updates an existing course category (name, hierarchy).
- `moodle.updateGradeItem` (write) — Update a grade item (grademax/grademin/gradepass/aggregationcoef/hidden).
- `moodle.uploadCourseFile` (write) — Upload a file to a course as a Resource module. Accepts base64-encoded content and creates a downloadable file resource on the course page.

## Frequently asked questions

**Which AI agents can I use?**

Our own agent at goldnat.ai, and other AI agents that support the Servio protocol. The list of compatible clients is on this page.

**Can the AI see or change things I can't?**

No. It works as the Moodle user who connected it, with exactly that user's permissions. Connect it with an account that has only the access you want it to have.

**Will it change things without asking?**

Only if you approved write access when you connected it. Deleting or irreversible actions ask for an explicit confirmation.

**How do I disconnect an agent?**

Revoke its connection from the plugin page in your admin panel. The agent loses access immediately.

**Do I also need Goldnat for Moodle?**

Yes. Goldnat for Moodle — Teacher (Pro) runs on top of the free core plugin, which handles the secure connection.
