Skip to main content
Glama

get_users_per_course

Read-onlyIdempotent

Fetch all users enrolled in a course, newest first. Page through results to access large enrollments for reporting and read-only lookups.

Instructions

๐ŸŸข READ-ONLY ยท GET /v2/courses/{id}/users

Get all users per course. Retrieves all the users enrolled in the course specified by the provided course id. The users are in sorted order, with the most recently created user appearing first, and the list is paginated, with a default limit of 20 users per page.

Behavior: read-only lookup against the live school; creates, changes and deletes nothing. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx. Parameters: results are paged โ€” walk them with page and size each page with items_per_page. Returns: HTTP <status> followed by the LearnWorlds JSON response body. A non-2xx reply surfaces as a tool error with that status and the API error payload โ€” 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input. Use when: safe to call speculatively for lookups and reporting. Not for changing anything โ€” use the matching ๐ŸŸก write tool. Related Courses tools: create_course_section, get_contents_course, get_course, get_course_grades, update_course.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCourse id
pageNoFilter by the page number. In case page number is higher than the maximum one, the results of last page will be returned
items_per_pageNoFilter by the items per page number

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description adds rich context: auth is injected server-side and never by the model, calls are throttled to respect a 30-per-10s cap and retried on 429/5xx, results are sorted with newest first, and default pagination is 20. This fully discloses operational behavior and side effects (none).

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

Conciseness5/5

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

The description is long but every section earns its place: method summary, behavior, parameters, returns/errors, and usage guidance. It is front-loaded with a one-line summary and uses clear section labels, making it scannable and efficient despite its length.

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

Completeness4/5

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

There is no output schema, so the description must carry the burden of explaining returns. It does state that it returns the LearnWorlds JSON response body and describes error semantics (401, 403, 404, 422). It does not detail the structure of the user objects in the response, which is a minor gap for a list endpoint, but overall the description is comprehensive for an agent to invoke it safely and correctly.

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

Parameters4/5

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

With 100% schema coverage, the baseline is 3. The description adds value by explaining the pagination interaction ('walk them with page and size each page with items_per_page') and noting the default page size of 20, which is not evident from the schema alone. It doesn't deeply explore the API's response fields, but for parameters it is above baseline.

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

Purpose5/5

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

The description opens with an explicit method and resource ('GET /v2/courses/{id}/users') and a clear statement: 'Retrieves all the users enrolled in the course specified by the provided course id.' This is a specific verb+resource pair that is unambiguous and distinct from sibling list tools like get_users or get_user_progress_per_course.

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

Usage Guidelines5/5

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

The 'Use when' section explicitly states when to call it ('safe to call speculatively for lookups and reporting') and gives a clear exclusion: 'Not for changing anything โ€” use the matching ๐ŸŸก write tool.' It also lists related Courses tools, helping the agent select among siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ohneben/Learnworlds-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server