Enroll group

Enroll all users of a group on published courses, completed learners included on request.

MCP tool learnupon_write → enroll_group

write Confirm

Enrolls the group on each course. Group enrollments can take longer than individual ones, so the call returns processing and list_enrollments shows the progress. re_enroll_completed true adds learners who already finished. Users with a disabled account are caught up when their account is enabled again. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: enroll_group
NameTypeDescription
group_id string required string Group id from list_groups.
course_ids array required array Course ids from list_courses.
re_enroll_completed boolean boolean Enroll again on courses already completed. Default: false.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "learnupon_write",
    "arguments": {
      "operation": "enroll_group",
      "arguments": {
        "group_id": "4821",
        "course_ids": [
          "10233"
        ],
        "re_enroll_completed": true
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "group_id": "4821",
    "course_ids": [
      "10233"
    ],
    "re_enroll_completed": true,
    "status": "processing"
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.