Skip to main content
Glama

Playlist Builder Run

playlist_build_run

The Playlist Builder, run by the box: it fills the checklist template's rows from the raw data, posts them to the working courseshelf.db and reads them back; playlist assembly, a separate start, builds, publishes and reads back the playlists CheckMyProgress reads. Publishing the data is not the Builder's. Answered only to main KSAserver's own key: the build requests hold learners' emails. action start, with scope (requests, state, pool or school), ids (the state's two letters, the pool's name, or UNITIDs; none for requests), steps (the step names to switch on; the design's defaults when none), rows (template slot ids; all 45 when none) and dry_run (default true), makes the run and runs it in the background, one at a time: measure, discover, web-search, account, patterns, post (into the working courseshelf.db, each change with its undo record) and verify (every posted value read back from it), then report and harvest-plan. A dry run writes nothing but the run's records and its report: every step that writes says what it would do. A failed step stops its school, with its why; the others go on. On a writing playlist assembly run each published and read-back request's learners are emailed that their playlist is ready; an unfinished request stays open with why. action start with scope road2 and version (the confirmed production publish number): playlist assembly (Road 2), after the data is published apart from the Builder. What to assemble: from_run (a completed Builder run: the checklists it changed and verified, less those its correction removed), and/or checklists (checklist IDs from that version, changed or not; named checklists are the ones run), or from_build_run (a reviewed assembly run whose same working copies are promoted). How far (how_far): gate (the completeness check), build (working copies for review) or promote (the default: through promotion to the playlist store and the readback as CheckMyProgress reads it). ai (default false) records that AI slot assistance was asked, with ai_scope: all (every selected checklist) or listed (ai_checklists; an empty list makes no call); its runner is main KSAserver's, started from the Manage page, which works the copies before promotion within the Services card's limits. The box is confirmed to serve the version before any build. steps or rows given empty name nothing, and no run starts; omitted, they take the defaults. action status answers the run going (its lanes and log) and the run log, newest first; with run, that run's line. action stop stops the run after the step it is on. action requests answers the build requests, the learner's email masked, with optional filters state, school, status (building, published, open), learner, from and to. action harvest answers the proven patterns across the runs with their stage; send_to_harvest, with row and pattern, writes the Harvest register entry as a draft for the Harvest builder.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "playlist_build_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
aiNostart, scope road2: AI slot assistance asked (default false); main's runner works the copies before promotion
toNo
idsNostart: the state, the pool's name or the UNITIDs
rowNosend_to_harvest: the slot id
runNostatus or report: one run's number
fromNo
rowsNostart: the template rows switched on, by slot id
scopeNostart: the scope; road2 builds the playlists of a completed run
stateNo
stepsNostart: the steps switched on
actionNostart, status (the default), stop, requests, report (with run, and optionally school: an ended run's stage grid, or that school's views and its not-printed and capture-gap records; read only), harvest, send_to_harvest, or ai_record (with run and results: AI slot assistance's results or failure, kept with that run)
schoolNo
statusNo
dry_runNostart: true (the default) writes nothing but the run's records
how_farNostart, scope road2: the completeness check, working copies for review, or through promotion and readback (the default)
learnerNo
patternNosend_to_harvest: the pattern's key
resultsNoai_record: AI slot assistance's results or failure for run
versionNostart, scope road2: the production publish number confirmed to hold that run's changes
ai_scopeNostart, scope road2, with ai: all selected checklists, or the checklists listed in ai_checklists
from_runNostart, scope road2: the completed Builder run whose Verify records name the changed checklists
requestsNostart, scope road2: the selected build requests, each {request_id, order_id, checklist_id, unitid}: only their checklists are assembled; each request and rebuild order is done only when the playlist read back is the one promoted, and its learners are then emailed; given empty, nothing starts
checklistsNostart, scope road2: checklist IDs from the confirmed version, run alone; given empty, nothing starts
started_byNostart: who started it, as the Runs log names them
ai_checklistsNostart, scope road2, with ai_scope listed: the checklists AI slot assistance works; empty makes no call
from_build_runNostart, scope road2: the reviewed assembly run whose same working copies are promoted

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"start, status (the default), stop, requests, harvest, send_to_harvest, or ai_record (with run and results: AI slot assistance's results or failure, kept with that run)"New value: +"start, status (the default), stop, requests, report (with run, and optionally school: an ended run's stage grid, or that school's views and its not-printed and capture-gap records; read only), harvest, send_to_harvest, or ai_record (with run and results: AI slot assistance's results or failure, kept with that run)"
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "start",
      -  "status",
      -  "stop",
      -  "requests",
      -  "harvest",
      -  "send_to_harvest",
      -  "ai_record"
      -]New value: +[
      +  "start",
      +  "status",
      +  "stop",
      +  "requests",
      +  "report",
      +  "harvest",
      +  "send_to_harvest",
      +  "ai_record"
      +]
    • changedInput schema / properties / run / description
      Previous value: -"status: one run's number"New value: +"status or report: one run's number"
  2. Changed14 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"start, status (the default), stop, requests, harvest or send_to_harvest"New value: +"start, status (the default), stop, requests, harvest, send_to_harvest, or ai_record (with run and results: AI slot assistance's results or failure, kept with that run)"
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "start",
      -  "status",
      -  "stop",
      -  "requests",
      -  "harvest",
      -  "send_to_harvest"
      -]New value: +[
      +  "start",
      +  "status",
      +  "stop",
      +  "requests",
      +  "harvest",
      +  "send_to_harvest",
      +  "ai_record"
      +]
    • addedInput schema / properties / ai
      Added value: +{
      +  "description": "start, scope road2: AI slot assistance asked (default false); main's runner works the copies before promotion",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / ai_checklists
      Added value: +{
      +  "description": "start, scope road2, with ai_scope listed: the checklists AI slot assistance works; empty makes no call",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / ai_scope
      Added value: +{
      +  "description": "start, scope road2, with ai: all selected checklists, or the checklists listed in ai_checklists",
      +  "enum": [
      +    "all",
      +    "listed"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / checklists
      Added value: +{
      +  "description": "start, scope road2: checklist IDs from the confirmed version, run alone; given empty, nothing starts",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / from_build_run
      Added value: +{
      +  "description": "start, scope road2: the reviewed assembly run whose same working copies are promoted",
      +  "type": "string"
      +}
    • addedInput schema / properties / from_run
      Added value: +{
      +  "description": "start, scope road2: the completed Builder run whose Verify records name the changed checklists",
      +  "type": "string"
      +}
    • addedInput schema / properties / how_far
      Added value: +{
      +  "description": "start, scope road2: the completeness check, working copies for review, or through promotion and readback (the default)",
      +  "enum": [
      +    "gate",
      +    "build",
      +    "promote"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / requests
      Added value: +{
      +  "description": "start, scope road2: the selected build requests, each {request_id, order_id, checklist_id, unitid}: only their checklists are assembled; each request and rebuild order is done only when the playlist read back is the one promoted, and its learners are then emailed; given empty, nothing starts",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / results
      Added value: +{
      +  "description": "ai_record: AI slot assistance's results or failure for run",
      +  "type": "object"
      +}
    • changedInput schema / properties / scope / description
      Previous value: -"start: the scope"New value: +"start: the scope; road2 builds the playlists of a completed run"
    • changedInput schema / properties / scope / enum
      Previous value: -[
      -  "requests",
      -  "state",
      -  "pool",
      -  "school"
      -]New value: +[
      +  "requests",
      +  "state",
      +  "pool",
      +  "school",
      +  "road2"
      +]
    • addedInput schema / properties / version
      Added value: +{
      +  "description": "start, scope road2: the production publish number confirmed to hold that run's changes",
      +  "type": "string"
      +}
  3. Added

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnly=false and destructive=false, but the description goes well beyond them: each write carries an undo record, a verify step reads every posted value back, runs execute in the background one at a time, a failed step stops its school while others continue, learners are emailed on a writing assembly run, and the tool answers only to main KSAserver's key because build requests hold learner emails. That auth constraint and side-effect disclosure is exactly the kind of context annotations cannot carry. It stops short of 5 only because the concurrency and side-effect details are buried in prose rather than stated cleanly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sprawling block of semicolon-chained clauses where the action names (start, status, stop, requests, report, harvest, send_to_harvest, ai_record) are announced mid-sentence rather than front-loaded or grouped by action. Nothing is padded with marketing, but the lack of structure makes the reader re-parse sentences repeatedly to extract one parameter's meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 26-parameter, eight-action tool with no output schema, the description does cover the major behaviors and most action outcomes (status answers lanes and log newest first; requests masks email and lists filters; send_to_harvest writes a Harvest draft). Yet the report and ai_record actions are described only glancingly, and without an output schema the return shape of a start or a harvest is still left to inference.

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?

With 26 parameters at 77% schema coverage the description still adds real meaning: it ties scope values to their id shapes (state's two letters, pool name, UNITIDs, none for requests), explains that rows defaults to all 45 template slots, that how_far defaults to promote, that ai_scope listed with an empty ai_checklists makes no call, and it supplies meaning for the otherwise undocumented to/from/state/school/status/learner filter parameters. Coverage is not perfect (e.g., started_by and run handling are thin), so 4 rather than 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description does identify a specific resource and verb set: it fills the checklist template's rows from raw data, posts them to the working courseshelf.db and reads them back, and (scope road2) assembles and publishes playlists. However, the two modes are woven into one run-on paragraph with the phrase 'playlist assembly, a separate start' inside a single tool, so the agent must decode which capability it is invoking rather than seeing a clean statement of purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Some when-to-use guidance is present: scope road2 runs 'after the data is published apart from the Builder', dry_run is the default and writes nothing but run records, and empty steps/rows name nothing so no run starts. What is missing is any routing against named siblings (playlist_run, playlist_index_run, playlist_build_requests) or an explicit statement of when a status/requests/report call is preferred over a start.

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.