Skip to main content
Glama

Cubite LMS: Learning Management System

Replace course content

course_content_set
Destructive

Replace a course's lessons by saving a complete new content version, which enrolled learners see immediately; settings such as price or visibility are changed with course_update instead. Earlier versions stay readable with course_content_get, so a bad write can be rolled back. This is not a patch: send the whole course every time, as blocks (EditorJS) or markdown (prose only), with H2 headers as section titles and H3 headers as unit titles. Keep each existing block's id from course_content_get: learners' answers, submissions and completion records are tied to block ids, so a block saved without its id (and every block written as markdown) no longer shows its learners' history. Get block shapes from block_type_list; its courseAssessments blocks (quiz, assignment, form, poll and similar) are valid ONLY in course content. To change only a quiz's pass mark or attempt limit, use quiz_settings_update, which leaves the rest of the course untouched. Every call adds a version, even an identical one; returns the new version number and block count, the course page or how to publish a hidden course, and warnings about blocks that will not render as meant.

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": {
      "id": "<id>"
    },
    "name": "course_content_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCourse id (required).
blocksNoThe complete lesson list as EditorJS blocks [{id?, type, data}], in order (must not be empty). Include each existing block's id to keep its learner records; blocks without one get a new id. Wins over markdown if both are sent.
authorIdNoUser recorded as this version's author; must belong to this site. Defaults to the connection's owning user.
markdownNoThe whole course as Markdown (headings, paragraphs, lists, checklists, quotes, tables, code), converted to blocks with new ids; it cannot express graded blocks. Use this OR blocks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / authorId / description
      Previous value: -"User recorded as this version's author; must belong to this site. Defaults to the site's first admin."New value: +"User recorded as this version's author; must belong to this site. Defaults to the connection's owning user."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only flag destructiveHint/readOnlyHint=false; the description adds consequences the annotations cannot: learners see the change immediately, prior versions remain readable so a bad write is reversible, every call mints a version even if identical, and the call returns version number, block count, a page/publish hint and render warnings. It also discloses the subtle data-loss behavior that omitting a block id severs learner history.

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?

A single dense, front-loaded paragraph with no filler; the core constraint ('send the whole course every time') appears early and alternatives follow. The sentences are long and clause-heavy, which slightly hurts scanability, but nearly every clause carries unique operational information.

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 destructive full-replace mutation with four parameters and no output schema, the description covers the full picture: what gets replaced, what survives, what is returned, and where block structures come from. Nothing an agent needs in order to call this safely 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 genuine meaning beyond the schema: H2 as section titles and H3 as unit titles, what the id actually protects (answers, submissions, completion records), and that courseAssessments blocks are valid only in course content. It does not clarify authorId behavior beyond the schema text, keeping it just short of a 5.

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 — 'Replace a course's lessons by saving a complete new content version' — and immediately scopes it away from course_update (price/visibility), course_content_get (reading old versions) and quiz_settings_update (partial quiz edits). An agent can pick between siblings without opening any schema.

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 routing: settings go to course_update, reading/rollback goes to course_content_get, quiz knob-tweaks go to quiz_settings_update, block shapes come from block_type_list. It also states the crucial negative guidance — 'This is not a patch: send the whole course every time' — which prevents the most likely misuse.

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.

Resources