moodle-api-user

Automate Moodle LMS course and enrollment management via REST API.

Updated Nov 7, 2025
One-click install
npx skills add https://github.com/tlambert03/microtutor-agent --skill moodle-api-user
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moodle-api-user
Source: https://github.com/tlambert03/microtutor-agent/tree/main/.claude/skills/moodle-api-user
Command: npx skills add https://github.com/tlambert03/microtutor-agent --skill moodle-api-user

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl.

What problem does it solve?

This Skill enables Claude to interact with the MicroTutor Moodle LMS (microtutorcourses.org) via its REST API, providing access to 416+ web service functions for comprehensive course management and content operations.

Core Features & Use Cases

  • Course & Content Discovery: List, search, or retrieve detailed course data.
  • Enrollment & User Management: Get enrolled users, manage enrollments, and view user profiles.
  • Assessments & Grades: Retrieve grades, submissions, quizzes, and activity data.

Quick Start

Use a curl call to fetch courses: curl -X POST "${MOODLE_API_URL}/webservice/rest/server.php"
-d "wstoken=${MOODLE_API_TOKEN}"
-d "wsfunction=core_course_get_courses"
-d "moodlewsrestformat=json"

Frequently Asked Questions about moodle-api-user

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Moodle course and enrollment management via REST API?

Automate Moodle LMS tasks using REST API calls with curl, passing your MOODLE_API_TOKEN and MOODLE_API_URL to execute web service functions like core_course_get_courses for listing courses, core_enrol_get_enrolled_users for retrieving enrollments, and similar functions for managing content, assignments, quizzes, and grades.

What Moodle operations can I perform through the REST API?

The REST API supports 416+ web service functions covering course discovery and retrieval, enrollment and user management, grade retrieval, quiz and assignment data, forum operations, and activity tracking, all accessible via curl POST requests with wsfunction parameters and JSON responses.

What environment setup do I need to use the Moodle REST API?

You need MOODLE_API_URL pointing to your Moodle instance and MOODLE_API_TOKEN for authentication, plus curl installed to execute REST calls; the Skill enforces permissions, pagination, and logging while applying non-destructive defaults for safety.

Can I retrieve student grades and quiz data from Moodle through API calls?

Yes, retrieve grades, submissions, quizzes, and activity data by calling appropriate web service functions via curl with your API token; responses return JSON-formatted assessment and grade information for enrolled users and courses.

What are the limitations when using Moodle REST API for automation?

The REST API respects Moodle permissions and enforces pagination for large datasets; non-destructive defaults mean deletion and bulk operations require explicit confirmation; API availability depends on your Moodle instance configuration and enabled web services.