Skip to main content
Glama

Cubite LMS: Learning Management System

Enroll learner

enrollment_create

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

TableJSON 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.6/5.0
Behavior5/5

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

Annotations only cover readOnlyHint=false and openWorldHint=false, and the description carries the rest exceptionally well: no price/application/date checks, prerequisite gating with the skipPrerequisiteCheck escape, passwordless account creation even on refusal, no Cubite email unless sendInvite:true, single-use magic link semantics, the fired enrollment.created webhook, and the idempotent re-enroll behavior (created:false, expiry preserved, status label reset).

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 routing, but it is a dense run-on that mixes routing, side effects, edge cases and return shape into few sentences. Every clause is substantive, yet the volume pushes past what an agent needs in one read.

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 and eight parameters on a mutation tool with side effects, the description enumerates the returned keys ({enrollment, user, magicLinkUrl, created, emailSent, externalReference}) and closes the loop on the constant-default course id source. Nothing material for a correct call is missing.

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

Parameters3/5

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

Schema description coverage is 100% and the schema itself is unusually rich, so the baseline is 3. The description largely restates the same parameter facts (skipPrerequisiteCheck, sendInvite default, magicLinkUrl issuance) rather than adding syntax or constraints the schema lacks.

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?

Specific verb+resource ('Enroll one learner in a course by email') with an explicit account-lookup-or-create scope. It names the siblings it is not (enrollment_bulk_create for many, application_review for approvals, enrollment_update for changes), so an agent can route without opening another 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 when-to-use and when-to-use-something-else: bulk for many learners, application_review for approving applicants, enrollment_update for changing an existing enrollment, course_list for ids. It even carves out the already-enrolled case and explains what happens instead.

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