Skip to main content
Glama

Propose one new lesson for a course

prepare_personal_lesson
Idempotent

Proposes ONE new lesson for one of the person's own personal courses, from material they give, and changes nothing in the course: the answer is a proposal for the person to approve or decline. It takes the courseRef (list_courses) and its revision (get_personal_course), and a personal draft started with forLesson: true that carries only this lesson's material, with every file ready (prepare_course_file and complete_course_file, or add_course_text as the fallback). That draft is never planned or created: a draft with a plan is refused (draft_has_plan). A request that could match more than one of the person's courses is theirs to settle: the first match is not necessarily the course they mean. title, outcome and instruction come from the person's own request, in the course's language; instruction is what this lesson should cover, at most 120 characters (longer is refused, not cut). A different lesson from the SAME material after a declined proposal is a new proposal on the same draft with the same sourceIds (a new title, outcome and instruction, and a new requestId); a new draft is for new material only. append_personal_lesson adds it after the person's yes to this proposal. privacyNote (when makesCoursePrivate is true) states something the person decides on before approving: adding their own material makes the whole course private for good. filesNote, textOnlyNote and heldNote, when present, are plain words for the person about the files and who can see the lesson.

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": {
      "requestId": "<requestId>",
      "courseRef": "<courseRef>",
      "expectedRevision": "<expectedRevision>",
      "draftId": "<draftId>",
      "sourceIds": "<sourceIds>",
      "title": "<title>",
      "outcome": "<outcome>",
      "instruction": "<instruction>"
    },
    "name": "prepare_personal_lesson"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesThe new lesson's title, from the person's request.
draftIdYesThe personal draft that holds only this lesson's material (start_document_course), never planned.
outcomeYesOne sentence: what the person will be able to do or understand after the lesson.
courseRefYesThe courseRef from create_document_course or list_courses ('personal:…').
requestIdYesA random UUID, not derived from names, dates or any other content, that identifies one intended action. A retry of that same action uses the same UUID with identical arguments and returns that action's result; each new action has a new UUID. A UUID already used with different arguments is refused (request_conflict); one used for an earlier action returns that earlier result.
sourceIdsYes1 to 10 ready files of that draft, as get_document_course_status lists them.
instructionYesWhat this lesson should cover, in the person's words: at most 120 characters (longer is refused, not cut). Without specifics from the person, a short neutral one such as 'Teach the main ideas of this material'; it is the person's request, not wording from the material.
expectedRevisionYesrevision from get_personal_course.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is partly covered. The description goes further by disclosing refusal behaviors (draft_has_plan, over-length instruction refused rather than truncated), the requestId/replay semantics, and the irreversible privacy consequence when makesCoursePrivate is true. That is meaningful context beyond the annotations, though the annotations still carry the core mutation/idempotency story.

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?

The non-effect is front-loaded in the first sentence and each following sentence adds a distinct rule rather than repeating. It is dense and sentence-clause-heavy, with several parenthetical tool references packed together, which costs a little readability but no sentence is 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 an 8-required-parameter mutation tool with an output schema, the description covers prerequisites, the exact draft state required, refusal conditions, ambiguity handling, retry semantics and the post-approval path. Return values need not be explained because an output schema exists.

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 schema already documents every field; the baseline would be 3. The description still adds real meaning: title, outcome and instruction must be the person's own words in the course's language, instruction is a coverage statement capped at 120 characters, and sourceIds must be the ready files of that specific draft.

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 ('Proposes ONE new lesson') plus the exact scope ('one of the person's own personal courses, from material they give') and the key non-effect ('changes nothing in the course: the answer is a proposal'). This cleanly separates it from append_personal_lesson, which the description later names as the committing step.

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?

Gives explicit preconditions (courseRef from list_courses, revision from get_personal_course, a draft started with forLesson: true that is never planned), an explicit refusal case (draft_has_plan), and an explicit conflict-resolution rule when a request could match multiple courses. It also spells out the follow-up path after a declined proposal versus new material, and names the sibling that applies the lesson after approval.

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