Invite users

Invite people by email as learner, instructor or manager, optionally into a group.

MCP tool learnupon_write → invite_users

write Confirm

Sends an invite to each address, with the default user type learner. With group_id, the invitees join that group when they accept, and courses assigned to the group enroll them then. Invitees stay pending until they accept. A manager can be invited but cannot get a group before accepting. Admin invites are not made by this tool. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: invite_users
NameTypeDescription
emails array required array Email addresses to invite.
user_type enum enum learner, instructor or manager. Default: learner.
group_id string string Group the invitees join on accepting.
expires date date Date when access runs out.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "learnupon_write",
    "arguments": {
      "operation": "invite_users",
      "arguments": {
        "emails": [
          "maria.nowak@example.com",
          "tom.reyes@example.com"
        ],
        "user_type": "learner",
        "group_id": "4821"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "invited": 2,
    "group_id": "4821",
    "status": "pending",
    "emails": [
      "maria.nowak@example.com",
      "tom.reyes@example.com"
    ]
  },
  "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.