Skip to main content
Glama

get_courses_enrollments_user

Read-onlyIdempotent

Fetch a user's course enrollments from a LearnWorlds school. Use pagination to see all records; read-only, changes nothing.

Instructions

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

Get courses (enrollments) of user. Returns a list with all course enrollment data of the specified user. The list is paginated, with a limit of 50 course enrollments 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. 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 Users tools: enroll_user_product, get_products_user, get_seat_offerings_that_user_is_member, get_user, get_user_groups_that_user_is_member.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUser Id or email (encoded string)
pageNoFilter by the page number. In case page number is higher than the maximum one, the results of last page will be returned

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: auth is injected server-side and 'never by the model', calls are throttled under LearnWorlds' 30-per-10s cap and retried on 429/5xx, and non-2xx replies surface with status plus 401/403/404/422 meanings. None of this contradicts readOnlyHint, idempotentHint, openWorldHint, or destructiveHint=false.

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?

Front-loaded with the READ-ONLY marker, endpoint, and core behavior, then organized into labeled Behavior/Parameters/Returns/Use-when sections. Each section earns its place; the only mild redundancy is 'creates, changes and deletes nothing' mirroring the annotations, which works as a safety cue rather than waste.

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?

Very complete for a 2-parameter read-only tool with no output schema: it covers return shape, error payloads, auth, rate limits, retries, and usage routing. The remaining gaps are minor โ€” no field-level enumeration of what 'course enrollment data' contains, and no explicit disambiguation from get_users_per_course.

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?

Schema coverage is 100% so the baseline is 3, but the description contributes operational param guidance the schema lacks: the 50-enrollments-per-page limit and the instruction to walk results with `page`. This tells the agent how many paged calls may be required, which is genuinely additive.

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?

States a specific verb and resource โ€” 'Get courses (enrollments) of user' โ€” with explicit user scoping and the HTTP endpoint GET /v2/users/{id}/courses. The pagination detail (50 per page) further pins down the return shape. This is unambiguous against siblings like get_courses or the inverse get_users_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 Guidelines4/5

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

Explicitly gives when-to-use ('safe to call speculatively for lookups and reporting') and when-not ('Not for changing anything โ€” use the matching ๐ŸŸก write tool'). It names related Users tools but without selection conditions among them, so an agent must still infer which specific lookup fits a given need.

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