MCP ServerPrompt Reference
Assign compliance training to a group and report completion
Enroll every member of a group in a compliance course, then produce a completion report for that course.
Assign compliance training to a group and report completion
Enroll every member of a group in a compliance course, then produce a completion report for that course.
The prompt assign_compliance_training appears in prompts/list only when the token can see every tool listed below.
Arguments
| Argument | Required | Description |
|---|---|---|
group_id | yes | UUID of the group to assign the course to. |
course_id | yes | UUID of the compliance course. |
report_id | yes | Report id from list_reports, such as course-completion-summary. |
Steps
get_group: Read the group and collect every member user id, following member_cursor until all members are read.save_enrollment: The API has no group-level enrollment. Call this once for each member with course_id, no id, and a distinct idempotency_key.start_report_job: Run the report with report_id, course_ids set to the course and group_ids set to the group.get_report_job: Confirm the job status is completed; if failed, report its error.download_report: Download the finished report and summarize completion for the group.
Tools Needed
| Tool | Scopes |
|---|---|
get_group | people:read |
save_enrollment | enrollments:write |
start_report_job | analytics:write |
get_report_job | analytics:read |
download_report | analytics:read |