get_student_enrollments
Retrieve a student's enrollment details and grades for a course. Pass a grading period ID to get term-specific grades instead of cumulative lifetime grades.
Instructions
Get enrollment details for a specific student in a course, including grades if available. Pass grading_period_id to get the grade for a specific semester/term instead of the cumulative lifetime grade — find the id with list_grading_periods.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"course_id": "<course_id>",
"student_id": "<student_id>"
},
"name": "get_student_enrollments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | Canvas course ID | |
| student_id | Yes | Canvas user ID of the student | |
| grading_period_id | No | Grading period ID to scope grades to a single semester/term. Without this, current_score reflects the entire course history. Use list_grading_periods to discover ids. |