Skip to main content
Glama

Add a lesson to a course

add_lesson

Add a lesson to one of the seller's courses: a title, the lesson text and, optionally, a video link. It goes at the end of the module you name (an id from list_courses), at the end of a new module if you pass newModule, or at the end of the last module. The text is simple Markdown: # and ## headings, paragraphs, - and 1. lists, bold, italic, links and images; a video link on a line of its own plays in place. Write the lesson from what the seller gave you; never invent facts, links or results. It applies straight away, on a LIVE course too (status applied; the seller can roll it back on their Approvals page).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "course": "<course>",
      "title": "<title>"
    },
    "name": "add_lesson"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe lesson text, in the Markdown described above.
titleYesThe lesson's title.
courseYesThe course's id or slug, from list_courses.
moduleNoThe module's id, from list_courses. Leave out to use the last module.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
videoUrlNoOptional video link: YouTube, Vimeo, Loom, Wistia, Tella, ScreenPal, Bunny Stream or Vidyard.
newModuleNoStart a new module with this title and put the lesson in it, instead of module.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only say not-read-only and not-destructive), the description states the write is immediate, that it applies to LIVE courses, that the resulting status is `applied`, and that the seller can roll it back on their Approvals page — exactly the reversibility and side-effect context annotations cannot convey. It also pins down rendering behavior (Markdown subset, standalone video link plays in place).

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 action and payload, then placement, then content format, then side effects — a sensible order. The Markdown enumeration is long but load-bearing since the schema points at it; the paragraph is dense and could be split for scanability.

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?

Seven parameters, no output schema, and the description covers placement, content syntax, accounts, video behavior, and post-write state (`status applied`) plus the recovery path. Nothing an agent needs to call this correctly on a live course is missing.

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 adds real meaning: the precedence between `module` and `newModule` and the default-to-last-module behavior, plus the full Markdown grammar that the `body` schema explicitly defers to ("in the Markdown described above"). Only the video host list and `account` details are left entirely to the schema.

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?

Opens with a specific verb and resource ("Add a lesson to one of the seller's courses") and immediately enumerates the payload: title, lesson text, optional video link. It also disambiguates the placement logic, so an agent knows this is a create-and-place operation rather than a generic content write.

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?

The three-way placement rule (named module → newModule → last module) and the scoping note on `account` ("Only to work in a client's account") give clear conditions for how to call it. It stops short of naming an alternative tool for editing an existing lesson or any exclusion, which keeps it out of 5 territory.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.