Skip to main content
Glama

canvas_list_enrollments

Lists enrollments in a Canvas course and filters by type (student, teacher, TA, observer) to identify course participants.

Instructions

List enrollments in a course, optionally filtered by type (student, teacher, ta).

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>"
    },
    "name": "canvas_list_enrollments"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by enrollment type
course_idYesThe Canvas course ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the entire burden of behavioral disclosure for what is a read operation. It says nothing about pagination, whether the result is capped, required permissions or visibility scoping, or whether it returns only active enrollments — all things an agent would want before calling a list endpoint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler. It is efficient, though the brevity is partly the cause of the missing behavioral context rather than pure economy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter read tool with full schema coverage, the description covers the core operation, and the absent output schema is not fatal. However, with zero annotations the definition leaves out any statement of what the list contains or how it is bounded, which is a meaningful gap for an agent deciding whether to call it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters are already documented and the baseline of 3 applies. The description does mention the type filter, but its shorthand ("student, teacher, ta") does not match the actual enum values (StudentEnrollment, TeacherEnrollment, TaEnrollment, ObserverEnrollment) and omits the observer case, so it adds little and could mildly mislead.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("List enrollments in a course") plus the optional filter axis, which is enough to separate it from the other canvas_list_* siblings. It stops short of naming a sibling it overlaps with, so no differentiation credit beyond the resource itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied by the presence of a required course_id — an agent can infer it must be scoped to a course, but nothing says when to reach for this versus canvas_list_course_users or canvas_get_course_grades. No exclusions or prerequisites are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.