Skip to main content
Glama

get_contents_course

Read-onlyIdempotent

Retrieve a course's full structure, including sections and learning activities, by providing its ID. Use it to audit contents or build reports without altering anything.

Instructions

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

Get contents of a course. Returns the contents of the course specified by the provided course id. Includes sections and learning activities.

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. 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_course, get_course_grades, get_users_per_course, update_course.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCourse title Id

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, but the description adds substantial context beyond them: auth is injected server-side and never by the model, calls are throttled to LearnWorlds' 30-per-10s cap with retries on 429/5xx, and the exact return/error format is specified (HTTP status + JSON body, with 401/403/404/422 semantics). No contradiction with annotations.

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 front-loaded with a READ-ONLY ยท GET badge and a one-sentence summary, then organized into Behavior, Returns, and Use-when sections. Every sentence earns its place: auth, rate limits, error codes, and routing to the write tool appear exactly once with no repetition or filler.

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?

For a simple one-parameter tool with no output schema, the description is complete: it covers the parameter, safety profile, auth handling, throttling, return shape, error surface, and sibling routing. The absence of an output schema is adequately compensated by the explicit return-format and error-code explanation.

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 coverage is 100%, so the baseline of 3 applies with the schema doing the heavy lifting. The description's endpoint path /v2/courses/{id}/contents confirms the id identifies the course to read, but adds no format or syntax details beyond the schema's 'Course title Id'.

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+resource+scope in the opening sentence: 'Get contents of a course... specified by the provided course id. Includes sections and learning activities.' Distinguishes from siblings by naming related Courses tools (create_course_section, get_course, get_course_grades, get_users_per_course, update_course) and pointing to the matching write tool.

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?

Includes an explicit 'Use when:' section: 'safe to call speculatively for lookups and reporting. Not for changing anything โ€” use the matching ๐ŸŸก write tool.' This provides both affirmative context and an exclusion with a named alternative, fully exceeding the requirement.

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