Skip to main content
Glama

Cubite LMS: Learning Management System

Enroll learner

enrollment_create
Destructive

Enroll one learner in a course by email, finding or creating their account (new accounts are passwordless students on this site); use enrollment_bulk_create for many learners, and application_review to approve someone who applied. Price, the application requirement and enrollment dates are not checked; prerequisites are checked for a new enrollment unless skipPrerequisiteCheck:true, and an account is still created when they refuse it. Cubite emails no one unless sendInvite:true; by default you get magicLinkUrl, a single-use sign-in link for your own welcome email. A new enrollment gets the status label "completed" and the course's access period, and fires the site's enrollment.created webhook. Use it to add enrollments; to change an existing one, use enrollment_update. Calling it for a learner who is already enrolled creates nothing new (created:false) and keeps the expiry and waitlist flag, but resets the status label to "completed". Returns {enrollment, user, magicLinkUrl, created, emailSent, externalReference}. Get course ids from course_list.

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name for a NEW account (default: the part of the email before @); an existing user's name is not changed.
emailYesLearner email (required), matched case-insensitively to an existing account; a new email creates one.
courseIdYesId of a course on this site (required). For a course linked to Open edX this creates only the Cubite enrollment, not the learner's Open edX one.
redirectToNoPath on this site to open after sign-in, starting with "/" (e.g. "/course/<slug>/courseware", the lessons). Anything else is ignored and the learner lands on their dashboard. Use the courseware path for a paid course: this call records no payment, so the learner's dashboard card and the course page still show a checkout button.
sendInviteNoHave Cubite email the learner itself: a one-click sign-in invite (7-day link, lands on redirectTo, also returned as magicLinkUrl) when a link can be issued, otherwise the plain course-enrolment email. Default false. The site can turn these emails off; the response's emailSent says whether an email went out. It also emails a learner who is already enrolled, e.g. someone you just let in off the waitlist with enrollment_update.
issueMagicLinkNoReturn magicLinkUrl, a single-use sign-in link valid for 24 hours (default true). Minting it cancels any earlier link for this email. It is null when the person has a password, is an admin, or belongs to another Cubite site. Ignored when sendInvite is true.
externalReferenceNoYour own correlation value, echoed back unchanged in the response; not stored.
skipPrerequisiteCheckNotrue enrolls even if the course's prerequisites are not met (default false); otherwise unmet prerequisites fail the call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: it discloses that an account is still created even if the user declines, that prerequisites are enforced unless skipPrerequisiteCheck:true, the exact default email behavior (nothing sent unless sendInvite:true), that magic links are single-use/24h and minting cancels earlier links, the duplicate-enrollment side effect (no new record, created:false, but status label reset to "completed"), and the enrollment.created webhook. This is unusually rich side-effect disclosure for a destructive write tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and zero filler sentences, but it is one dense run-on paragraph where semicolon-joined clauses blend usage guidance, side effects, and return values. It would read better split into use-when / behavior / returns groupings, though nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by enumerating the return shape ({enrollment, user, magicLinkUrl, created, emailSent, externalReference}) and explaining key values like created:false and emailSent. Combined with the side-effect coverage, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter behavior not in the schema: sendInvite overrides issueMagicLink, the magic link is what you use for your own welcome email, and no payment is recorded so checkout still shows. These interactions meaningfully extend the per-field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first clause states a specific verb+resource (enroll one learner in a course by email) and immediately scopes it against siblings: enrollment_bulk_create for many learners, application_review for approvals. An agent can distinguish this from enrollment_update and enrollment_bulk_create without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit alternatives are named with the condition that selects each: bulk create for many learners, application_review to approve an applicant, enrollment_update to change an existing enrollment. It also states what is NOT validated (price, application requirement, enrollment dates) and where to get course ids (course_list).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources