Skip to main content
Glama

get_courses

Read-onlyIdempotent

Lists all courses for a LearnWorlds school, sorted newest first with paginated results. Use it to retrieve the full course catalog, filter by access or categories, and build reports.

Instructions

🟢 READ-ONLY · GET /v2/courses

Get all courses. Returns a list of all courses of the school. The courses are in sorted order, with the most recently created course appearing first, and the list is paginated, with a limit of 50 courses 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 Courses tools: create_course, create_course_section, get_contents_course, get_course, get_course_grades.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoFilter by the page number. In case page number is higher than the maximum one, the results of last page will be returned
accessNoFilter by course access. This can be an array of strings if you want to query with multiple access values or just a string. Possible values are: paid, free, coming_soon, private, draft, enrollment_closed
categoriesNoFilter by course categories. For several categories, a comma separated string can be provided.

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

The description goes well beyond the readOnlyHint/idempotentHint annotations by disclosing server-side auth injection, throttling under LearnWorlds' rate cap, retry behavior on 429/5xx, sorted results, and a 50-per-page limit. It also explains how non-2xx responses surface as tool errors.

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?

Although longer than minimal, the description is cleanly sectioned into behavior, parameters, returns, and usage. Every sentence adds operational value, and the most important read-only scoping is front-loaded.

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

Completeness5/5

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

With no output schema, the description compensates by explaining the return format, HTTP status behavior, error payload mapping, and pagination. Combined with the annotations and fully documented parameters, an agent has enough context to invoke this tool 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?

Schema coverage is 100%, so the baseline is 3, and the schema already documents page, access, and categories. The description adds practical pagination guidance—'walk them with page'—which clarifies how the page parameter should be used iteratively.

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 'Get all courses' and clearly specifies the verb, resource, and scope: a read-only GET /v2/courses returning all courses of the school. It also clarifies pagination and ordering, distinguishing this bulk-list operation from the single-record get_course sibling.

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?

Explicit 'Use when' guidance is provided: safe to call for lookups and reporting, not for mutations, with a pointer to the matching write tool. It also names related Courses tools and identifies the non-2xx error cases, giving an agent clear situational context.

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