LearnUpon MCP by usefulapi
v1.2.1List users and enrollments, and enroll users in courses in LearnUpon.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
learnupon_list_users List users
List the users of the portal, 500 per page. Check pagination.has_next_page and request the next page for more. LearnUpon API: GET /users.
| Parameter | Type | Description |
|---|---|---|
login_enabled | boolean | true = enabled users only; false = disabled users only. |
page | integer | Page of results, 500 per page (default 1). |
learnupon_find_user Find a user
Find one user by email or username. Give one of the two. LearnUpon API: GET /users/search?email= or ?username=.
| Parameter | Type | Description |
|---|---|---|
email | string | User email (a unique identifier in LearnUpon). |
username | string | Username (the other unique identifier in LearnUpon). |
learnupon_get_user Get a user
Get one user by numeric user id. LearnUpon API: GET /users/{id}.
| Parameter | Type | Description |
|---|---|---|
user_id * | integer | Numeric LearnUpon user id. |
learnupon_list_custom_user_data_fields List custom user data fields
List the custom user data field definitions of the portal (their labels and types). It returns definitions, not values. LearnUpon API: GET /users/customuserdata.
learnupon_search_courses Search courses
Search courses by name (pattern match, case-insensitive) or by course_id. Returns published courses unless include_draft is true. LearnUpon API: GET /courses.
| Parameter | Type | Description |
|---|---|---|
course_id | integer | Numeric course id (exact). |
include_all_versions | boolean | With name: also return archived versions. |
include_draft | boolean | Also return draft courses. |
name | string | Course name or part of it. |
page | integer | Page of results, 500 per page (default 1). |
learnupon_search_enrollments Search enrollments
Find enrollments by user (user_id, email or username) or by course (course_id or course_name). Give at least one of these. Optional date_from and date_to filter on the enrollment's updated_at date. LearnUpon API: GET /enrollments/search.
| Parameter | Type | Description |
|---|---|---|
course_id | integer | Numeric course id. |
course_name | string | Exact course title (the most recent published title). |
date_from | string | Start date, YYYY-MM-DD (updated_at). |
date_to | string | End date, YYYY-MM-DD (updated_at). |
email | string | User email (a unique identifier in LearnUpon). |
page | integer | Page of results, 500 per page (default 1). |
user_id | integer | Numeric user id. |
username | string | Username (the other unique identifier in LearnUpon). |
learnupon_get_enrollment Get an enrollment
Get one enrollment by its enrollment_id, with status, progress and dates. LearnUpon API: GET /enrollments/{enrollment_id}.
| Parameter | Type | Description |
|---|---|---|
enrollment_id * | integer | Enrollment id (from learnupon_search_enrollments or learnupon_enroll_user). |
learnupon_get_enrollment_modules List modules of an enrollment
List the modules of one enrollment, with the learner's progress on each. LearnUpon API: GET /enrollments/{enrollment_id}/modules.
| Parameter | Type | Description |
|---|---|---|
enrollment_id * | integer | Enrollment id. |
learnupon_list_markcompletes List completions
List mark-complete records: completions set by an admin or by the API (status completed, passed or failed, score, date). Filter by id, user_id, enrollment_id or course_id. LearnUpon API: GET /markcompletes.
| Parameter | Type | Description |
|---|---|---|
course_id | integer | Numeric course id. |
enrollment_id | integer | Enrollment id. |
id | integer | Mark-complete id. |
page | integer | Page of results, 500 per page (default 1). |
user_id | integer | Numeric user id. |
learnupon_enroll_user Enroll a user in a course
Enroll one user in one course, so the learner gets access and the course appears in their list. Give the user (email or username) and the course (course_id or course_name). Optional due_date (advisory) and expires_at (hard end of access), both YYYY-MM-DD. Sends no invitation email by itself. LearnUpon API: POST /enrollments.
| Parameter | Type | Description |
|---|---|---|
course_id | integer | Numeric course id. |
course_name | string | Exact course title (the most recent published title). |
due_date | string | Advisory finish date, YYYY-MM-DD (UTC). |
email | string | User email (a unique identifier in LearnUpon). |
expires_at | string | Access end date, YYYY-MM-DD (UTC). The learner loses access after it. |
re_enroll_if_completed | boolean | true = enroll again even if the learner completed the course. |
username | string | Username (the other unique identifier in LearnUpon). |