hdls Learn

hdls Learn is a headless, MCP-native learning management backend. It manages courses, lessons, and enrolments, operated entirely through named tools your AI assistant calls. It stands in for tools like TalentLMS, Docebo — same job, no UI to run.

💬 Just ask

"Create a course for Acme, then show me my courses."

You don't call these tools yourself — just tell your assistant in plain English. Everything below is the reference for when you (or your assistant) want the exact details.

How Learn is organized

The headline entity is the course — start there, then attach the rest to it. Records connect by reference: a lesson links to a course; an enrolment links to a course; a lesson_progress links to an enrolment and a lesson; a certificate links to an enrolment. The learning_event table is an append-only timeline — every change and note lands there and is never edited or deleted.

EntityPurposeRelates to
courseA course made of ordered lessons; learners enrol and progress through it.
lessonOrdered content unit within a course (text, video, quiz, etc.).course
enrolmentA learner registration in a course tracking progress, score, and completion.course
lesson_progressPer-lesson completion/score for an enrolment; aggregates into enrolment.progress.enrolment, lesson
certificateCredential issued when a learner passes a course; serial enables public verification.enrolment
learning_eventAppend-only learning timeline: enrolment, lesson, quiz, and completion activity.enrolment

Common workflows

Each line is one real sequence of tool calls — your assistant chains them for you.

  • Set up a course end to end: create_courseenroll_learnertrack_progress

Tools

Call these at https://hdls.ai/api/mcp/lms. Required fields you must supply; optional fields refine the call. You never pass tenant_id — it is stamped server-side.

Create

ToolWhat it doesRequiredOptional
create_courseCreate a new course.titledescription, category, level, status, instructor, duration_mins

Update & advance

ToolWhat it doesRequiredOptional
enroll_learnerEnroll a learner.id
track_progressTrack progress on a course.id
issue_certificateIssue a certificate.enrolment_id, learner, serialissued_at, expires_at, url, data

Find & read

ToolWhat it doesRequiredOptional
search_coursesSearch courses by free-text and/or column filters (tenant-scoped, paginated).search, filters, limit, orderBy

Field lists come from the product's live schema and are embedded in each tool's own description — read the tool description for the exact, current fields.

Field reference

Every field you can set on each record. Custom fields you add live alongside these in data.

course

FieldTypeRequiredNotes
titletextYesDisplay name.
descriptiontext
categorytext
leveltext
statustextLifecycle state.
instructortext
duration_minsnumber
pass_thresholdnumeric(5,2)
datajsonFree-form JSON — custom fields live here.

lesson

FieldTypeRequiredNotes
course_ididYesLinks to a course.
titletextYesDisplay name.
contenttext
content_typetext
positionnumber
duration_minsnumber
datajsonFree-form JSON — custom fields live here.

enrolment

FieldTypeRequiredNotes
course_ididYesLinks to a course.
learnertextYes
statustextLifecycle state.
progressnumeric(5,2)
scorenumeric(5,2)
enrolled_attimestamp
completed_attimestamp
due_attimestamp
datajsonFree-form JSON — custom fields live here.

lesson_progress

FieldTypeRequiredNotes
enrolment_ididYesLinks to an enrolment.
lesson_ididYesLinks to a lesson.
statustextLifecycle state.
scorenumeric(5,2)
time_spent_secsnumber
completed_attimestamp
datajsonFree-form JSON — custom fields live here.

certificate

FieldTypeRequiredNotes
enrolment_ididYesLinks to an enrolment.
learnertextYes
serialtextYes
issued_attimestamp
expires_attimestamp
urltext
datajsonFree-form JSON — custom fields live here.

Tailor it with custom fields

Add fields without a schema change. add_custom_field defines one, list_custom_fields shows what's defined, and promote_custom_field (admin) shares a personal field with the whole workspace. The value lives in each row's data (JSON) and is set and read through the normal record tools. See Products, tools & custom fields for the full model.

Roles & safety

  • Tenant isolation is automatic. Your credential is pinned to one workspace; you never pass tenant_id, and you can only ever see your own data (enforced by Postgres row-level security).
  • Role-gated. Permissions run reader < member < admin < owner. Installing a product and promoting a custom field workspace-wide need admin/owner.
  • History is append-only. The learning_event timeline is never edited or deleted — it's your audit trail.

Connect

On the concierge (https://hdls.ai/api/mcp), run install_product({ slug: "lms" }) (admin/owner) to enable it for your workspace, then add https://hdls.ai/api/mcp/lms as a connector in your assistant — see Connect your assistant.

A worked example

The literal call your assistant makes when you ask it to create the headline record:

Tool: create_course
Arguments: {
  "title": "Onboarding 101"
}

See All products · Connect your assistant · Automation