Skip to main content
Glama

create_course_section

Add a new section to an existing course by supplying the course ID and section details. The course contents are returned with the new section included, confirming the structure after the update.

Instructions

๐ŸŸก WRITE ยท creates data ยท POST /v2/courses/{id}/sections

Creates a new course section in the course, specified by the course id. The endpoint response is the course contents including the newly created section.

Behavior: creates a record or triggers an action in the live school. Not idempotent: a repeated call can duplicate the effect. 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: the whole JSON payload goes in the single body argument, forwarded verbatim (the spec leaves body optional, but this endpoint expects one). 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: only when the user asked to create this. Check with a ๐ŸŸข read tool that the target exists and the record is not already there. Related Courses tools: get_contents_course, get_course, get_course_grades, get_users_per_course, update_course.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesCourse Id
bodyNoRequest body (application/json).

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses non-idempotency and duplicate-effect risk, server-side auth injection, throttling under LearnWorlds' 30-per-10s cap with retry on 429/5xx, and exact non-2xx error mappings. This is substantial added behavioral context and is consistent with the 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 organized into labeled sections โ€” Behavior, Parameters, Returns, Use when โ€” and front-loads the write indicator and endpoint. No sentence is filler; the length is justified by the auth, retry, and error details.

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?

Given no output schema, it describes the response format and error surfaces clearly. The only notable gap is that the body payload structure for a course section is not described, which would help an agent construct or validate the payload when the user does not supply one.

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?

Though schema coverage is 100%, the description adds meaningful nuance: 'body' is expected even though the spec leaves it optional, and the entire JSON payload should be forwarded verbatim in that single argument. This compensates for the schema's deliberately hidden body reference.

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 a clear verb and resource โ€” 'Creates a new course section in the course, specified by the course id' โ€” and reinforces it with the endpoint path. This is unambiguous against sibling tools like create_course because the target resource is specifically a course section, not a 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?

It provides an explicit usage rule: 'Use when: only when the user asked to create this,' and advises checking with a read tool that the course exists and the section is not already present. It names related Courses tools but could more strongly contrast with update_course or create_course for non-create intents.

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