Skip to main content
Glama

Playlist Save

playlist_save

Save one checklist's playlist after the server checks it. lines is the ordered list of the playlist's lines. The server checks that line_ids are unique and order runs 1, 2, 3 without gaps; that the credits of every line except option_list and note add up to the published credits (within the range, where a range is published); that every slot's fills_from names an option_list and every option_list is named by a slot; that every course code is one of the school's learning units; that every area designation is in the school policy; that choose has n no greater than its courses; that every quote appears verbatim in the capture its source names, which may be the requirements section, a linked section, or any other capture held for the checklist's school; and that every course code of the checklist's requirement items that the school holds appears in a line or in a note line that names it (a footnote, a permission note or a tag in parentheses outside the items is not counted); and that every checklist item naming a learning unit with published credits is on a course, one_of, choose or option_list line or accepted by an area line, never only a note; that the playlist carries the last requirement group the checklist holds (a playlist that ends before it is never saved); that options the page prints as a choice or as "or" alternatives are not each a required course line, and no course is on two course lines; that every course code a line carries is printed in the requirements, on a linked page or in the line's quote; that a note line carries no course codes; and that a restricted line carries its rule. Where the credits do not add up, the error names the lines that carry no requirement item, or the groups printed with credits that no line carries. It never alters what the lines say; it adds accepts to each area line and min_courses where the text names a number of courses. It returns playlist_id, status, and every error in plain words, each naming its line: lines with errors are saved as rejected, so correct them and save again. A build that passes replaces the playlist in use only when there is none, when the catalog page has changed, or when the one in use is unverified or rejected. Otherwise it is kept as a candidate: the answer gives candidate_id and the playlist in use, the candidate is never used for anyone's progress, and playlist_compare compares the two.

Input Schema

NameRequiredDescriptionDefault
linesNo
built_byYesWho built this playlist: a short string naming the agent and model. Stored with the saved playlist. A save without it is rejected.
checklist_idYesThe checklist, by its checklist_id
accept_warningsNoOptional, false where left out: true saves the result with its warnings. A value's shape, a line's kind and its line_id still refuse the save, and so do a playlist that ends before the last requirement group, options made each a required line or a course on two course lines, a quote not found verbatim or a capture not held, a course code on a note line, and a code the page does not print. A quote over 300 characters is cut at a word boundary with "…" (marked quote trimmed); every other check marks what it concerns not established. Each mark is kept in that item's warnings, and the result is saved with trust state partial, or inferred where it rests on an inferred policy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / accept_warnings / groups / description
      Previous value: -"The playlist in the checklist's shape: the checklist's groups, as stored_rows.shape holds them, each with group_id. A group the checklist holds is copied as it is except for the fields given; each given field that differs from the checklist needs the page's words in fills (fills.<field>: a quote from the checklist's own capture, or {capture_file, quote}). A group the checklist lacks (an id starting PG_) is added, with its quote in fills.row. items: the group's items, the same way (item_id; an item set under another group is moved); an item's alternatives and nodes, where given, are that item's whole list. nodes: the group's rules, its whole list: each a requirement node with requirement_kind (one of: consent, placement, level, exclusion, elective, open_elective, gpa, total, cap, min_grade, repeat_limit, overlap, residency, honor, substitution, exception, all, choose, credits, catalog_rights, designation, transfer_cap, prior_learning_cap), measure_quantity, measure_unit, measure_comparator (at_least or at_most), measure_scope, condition_text, and printed_text, the page's own words. A group is never its own ancestor, and chooses no more than the items and groups under it."New value: +"The playlist in the checklist's shape: the checklist's groups, as stored_rows.shape holds them, each with group_id. A group the checklist holds is copied as it is except for the fields given; each given field that differs from the checklist needs the page's words in fills (fills.<field>: a quote from the checklist's own capture, or {capture_file, quote}). A group the checklist lacks (an id starting PG_) is added, with its quote in fills.row. items: the group's items, the same way (item_id; an item set under another group is moved); an item's alternatives and nodes, where given, are that item's whole list. nodes: the group's rules, its whole list: each a requirement node with requirement_kind (one of: consent, placement, level, exclusion, elective, open_elective, gpa, total, cap, min_grade, repeat_limit, overlap, residency, honor, substitution, exception, all, choose, credits, catalog_rights, designation, transfer_cap, prior_learning_cap, full_time_load), measure_quantity, measure_unit, measure_comparator (at_least or at_most), measure_scope, condition_text, and printed_text, the page's own words. A group is never its own ancestor, and chooses no more than the items and groups under it."
  2. Changed1 schema field changed
    • changedInput schema / properties / accept_warnings / groups / description
      Previous value: -"The playlist in the checklist's shape: the checklist's groups, as stored_rows.shape holds them, each with group_id. A group the checklist holds is copied as it is except for the fields given; each given field that differs from the checklist needs the page's words in fills (fills.<field>: a quote from the checklist's own capture, or {capture_file, quote}). A group the checklist lacks (an id starting PG_) is added, with its quote in fills.row. items: the group's items, the same way (item_id; an item set under another group is moved); an item's alternatives and nodes, where given, are that item's whole list. nodes: the group's rules, its whole list: each a requirement node with requirement_kind (one of: consent, placement, level, exclusion, elective, open_elective, gpa, total, cap, min_grade, repeat_limit, overlap, residency, honor, substitution, exception), measure_quantity, measure_unit, measure_comparator (at_least or at_most), measure_scope, condition_text, and printed_text, the page's own words. A group is never its own ancestor, and chooses no more than the items and groups under it."New value: +"The playlist in the checklist's shape: the checklist's groups, as stored_rows.shape holds them, each with group_id. A group the checklist holds is copied as it is except for the fields given; each given field that differs from the checklist needs the page's words in fills (fills.<field>: a quote from the checklist's own capture, or {capture_file, quote}). A group the checklist lacks (an id starting PG_) is added, with its quote in fills.row. items: the group's items, the same way (item_id; an item set under another group is moved); an item's alternatives and nodes, where given, are that item's whole list. nodes: the group's rules, its whole list: each a requirement node with requirement_kind (one of: consent, placement, level, exclusion, elective, open_elective, gpa, total, cap, min_grade, repeat_limit, overlap, residency, honor, substitution, exception, all, choose, credits, catalog_rights, designation, transfer_cap, prior_learning_cap), measure_quantity, measure_unit, measure_comparator (at_least or at_most), measure_scope, condition_text, and printed_text, the page's own words. A group is never its own ancestor, and chooses no more than the items and groups under it."
  3. Changed8 schema fields changed
    • addedInput schema / properties / accept_warnings / dropped / items / properties
      Added value: +{
      +  "row_id": {
      +    "description": "The row's id as stored_rows.shape gives it: a group's group_id, an item's item_id, a note's position",
      +    "type": "string"
      +  },
      +  "table": {
      +    "enum": [
      +      "requirement_group",
      +      "requirement_item",
      +      "requirement_alternative",
      +      "requirement_item_node",
      +      "requirement_group_node",
      +      "checklist_note",
      +      "checklist_note_node"
      +    ],
      +    "type": "string"
      +  },
      +  "why": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / accept_warnings / dropped / items / required
      Added value: +[
      +  "table",
      +  "row_id",
      +  "why"
      +]
    • addedInput schema / properties / accept_warnings / flagged / items / properties
      Added value: +{
      +  "field": {
      +    "type": "string"
      +  },
      +  "row_id": {
      +    "type": "string"
      +  },
      +  "table": {
      +    "enum": [
      +      "requirement_group",
      +      "requirement_item",
      +      "requirement_alternative",
      +      "requirement_item_node",
      +      "requirement_group_node",
      +      "checklist_note",
      +      "checklist_note_node"
      +    ],
      +    "type": "string"
      +  },
      +  "why": {
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / accept_warnings / flagged / items / required
      Added value: +[
      +  "table",
      +  "row_id",
      +  "field",
      +  "why"
      +]
    • addedInput schema / properties / accept_warnings / groups / items / properties
      Added value: +{
      +  "fills": {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "properties": {
      +            "capture_file": {
      +              "type": "string"
      +            },
      +            "quote": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "capture_file",
      +            "quote"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "description": "The page's words for each field given that differs from the checklist, keyed by that field's name (for example credits_published, parent_group_id, required_choice_count), and row for a row the checklist lacks: each value a quote from the checklist's own capture as a string, or {capture_file, quote}. An object, never a list.",
      +    "type": "object"
      +  },
      +  "group_id": {
      +    "type": "string"
      +  },
      +  "items": {
      +    "items": {
      +      "properties": {
      +        "fills": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "properties": {
      +                  "capture_file": {
      +                    "type": "string"
      +                  },
      +                  "quote": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "capture_file",
      +                  "quote"
      +                ],
      +                "type": "object"
      +              }
      +            ]
      +          },
      +          "description": "The page's words for each field given that differs from the checklist, keyed by that field's name (for example credits_published, parent_group_id, required_choice_count), and row for a row the checklist lacks: each value a quote from the checklist's own capture as a string, or {capture_file, quote}. An object, never a list.",
      +          "type": "object"
      +        },
      +        "item_id": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "item_id"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "nodes": {
      +    "items": {
      +      "type": "object"
      +    },
      +    "type": "array"
      +  }
      +}
    • addedInput schema / properties / accept_warnings / groups / items / required
      Added value: +[
      +  "group_id"
      +]
    • changedInput schema / properties / accept_warnings / notes / description
      Previous value: -"The checklist's notes the playlist changes or adds: position, note_text, note_mark, fills, and nodes (the rules the note prints, as for a group). A note the checklist lacks is added with its quote in fills.row."New value: +"The checklist's notes the playlist changes or adds: position, note_text, note_mark, fills, and nodes (the rules the note prints, as for a group). A note the checklist holds is named by its position. A note the checklist lacks is added with its quote in fills.row; left without a position, it takes the next one."
    • addedInput schema / properties / accept_warnings / notes / items / properties
      Added value: +{
      +  "fills": {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "properties": {
      +            "capture_file": {
      +              "type": "string"
      +            },
      +            "quote": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "capture_file",
      +            "quote"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "description": "The page's words for each field given that differs from the checklist, keyed by that field's name (for example credits_published, parent_group_id, required_choice_count), and row for a row the checklist lacks: each value a quote from the checklist's own capture as a string, or {capture_file, quote}. An object, never a list.",
      +    "type": "object"
      +  },
      +  "nodes": {
      +    "items": {
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "note_mark": {
      +    "type": "string"
      +  },
      +  "note_text": {
      +    "type": "string"
      +  },
      +  "position": {
      +    "type": "integer"
      +  }
      +}
  4. Changed5 schema fields changed
    • addedInput schema / properties / accept_warnings / dropped
      Added value: +{
      +  "description": "Checklist rows the playlist leaves out, each {table, row_id, why}: page furniture such as a planner, a year heading or a bare \"and\". A course the page requires is never dropped; a group is dropped only once nothing sits under it.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / accept_warnings / flagged
      Added value: +{
      +  "description": "Values the page does not support, left blank, or printed but not reading as a requirement, kept as printed: each {table, row_id, field, why}. Never worked out by adding or subtracting.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / accept_warnings / groups
      Added value: +{
      +  "description": "The playlist in the checklist's shape: the checklist's groups, as stored_rows.shape holds them, each with group_id. A group the checklist holds is copied as it is except for the fields given; each given field that differs from the checklist needs the page's words in fills (fills.<field>: a quote from the checklist's own capture, or {capture_file, quote}). A group the checklist lacks (an id starting PG_) is added, with its quote in fills.row. items: the group's items, the same way (item_id; an item set under another group is moved); an item's alternatives and nodes, where given, are that item's whole list. nodes: the group's rules, its whole list: each a requirement node with requirement_kind (one of: consent, placement, level, exclusion, elective, open_elective, gpa, total, cap, min_grade, repeat_limit, overlap, residency, honor, substitution, exception), measure_quantity, measure_unit, measure_comparator (at_least or at_most), measure_scope, condition_text, and printed_text, the page's own words. A group is never its own ancestor, and chooses no more than the items and groups under it.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / accept_warnings / notes
      Added value: +{
      +  "description": "The checklist's notes the playlist changes or adds: position, note_text, note_mark, fills, and nodes (the rules the note prints, as for a group). A note the checklist lacks is added with its quote in fills.row.",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "checklist_id",
      -  "built_by",
      -  "lines"
      -]New value: +[
      +  "checklist_id",
      +  "built_by",
      +  "groups"
      +]
  5. Changed4 schema fields changed
    • changedInput schema / properties / accept_warnings / description
      Previous value: -"Optional, false where left out: true saves the result with its warnings. Only a value's shape, a line's kind and its line_id still refuse the save. A quote over 300 characters is cut at a word boundary with \"…\" (marked quote trimmed); a quote not found verbatim, or a capture not held, is dropped (marked unquoted); every other check marks what it concerns not established. Each mark is kept in that item's warnings, and the result is saved with trust state partial, or inferred where it rests on an inferred policy."New value: +"Optional, false where left out: true saves the result with its warnings. A value's shape, a line's kind and its line_id still refuse the save, and so do a playlist that ends before the last requirement group, options made each a required line or a course on two course lines, a quote not found verbatim or a capture not held, a course code on a note line, and a code the page does not print. A quote over 300 characters is cut at a word boundary with \"…\" (marked quote trimmed); every other check marks what it concerns not established. Each mark is kept in that item's warnings, and the result is saved with trust state partial, or inferred where it rests on an inferred policy."
    • changedInput schema / properties / lines / items / properties / kind / description
      Previous value: -"course: one required course. one_of: one course from a short list printed on the line. choose: n courses or credits from courses printed together. slot: filled from an option list elsewhere on the page. option_list: a list that feeds slots and never adds to the total by itself. area: any course carrying a designation from the school policy. open: any course that earns credit. note: a printed condition that is not itself credit. A checklist item that names a learning unit and carries published credits is never a note: it is a course or one_of line, and a printed condition on it (such as being waived by another course) is a note beside it."New value: +"course: one required course. one_of: one course from a short list printed on the line. choose: n courses or credits from courses printed together; a list the page says to choose from (\"Select two of the following\") is one choose line, never each option a course line. slot: filled from an option list elsewhere on the page. option_list: a list that feeds slots and never adds to the total by itself. area: any course carrying a designation from the school policy. open: any course that earns credit. note: a printed condition that is not itself credit; it carries no course codes. restricted: a named elective the page restricts by a printed rule, such as \"Business Elective\" or \"Major Elective Course numbered 2000-3999\"; it carries credits and the rule as printed in rule, and no course codes. A checklist item that names a learning unit and carries published credits is never a note: it is a course or one_of line, and a printed condition on it (such as being waived by another course) is a note beside it."
    • changedInput schema / properties / lines / items / properties / kind / enum
      Previous value: -[
      -  "course",
      -  "one_of",
      -  "choose",
      -  "slot",
      -  "option_list",
      -  "area",
      -  "open",
      -  "note"
      -]New value: +[
      +  "course",
      +  "one_of",
      +  "choose",
      +  "slot",
      +  "option_list",
      +  "area",
      +  "open",
      +  "note",
      +  "restricted"
      +]
    • addedInput schema / properties / lines / items / properties / rule
      Added value: +{
      +  "description": "restricted only: the elective's rule as the page prints it, such as \"Major Elective Course numbered 2000-3999\"",
      +  "type": "string"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / accept_warnings
      Added value: +{
      +  "description": "Optional, false where left out: true saves the result with its warnings. Only a value's shape, a line's kind and its line_id still refuse the save. A quote over 300 characters is cut at a word boundary with \"…\" (marked quote trimmed); a quote not found verbatim, or a capture not held, is dropped (marked unquoted); every other check marks what it concerns not established. Each mark is kept in that item's warnings, and the result is saved with trust state partial, or inferred where it rests on an inferred policy.",
      +  "type": "boolean"
      +}
  7. Changed2 schema fields changed
    • changedInput schema / properties / lines / items / properties / kind / description
      Previous value: -"course: one required course. one_of: one course from a short list printed on the line. choose: n courses or credits from courses printed together. slot: filled from an option list elsewhere on the page. option_list: a list that feeds slots and never adds to the total by itself. area: any course carrying a designation from the school policy. open: any course that earns credit. note: a printed condition that is not itself credit."New value: +"course: one required course. one_of: one course from a short list printed on the line. choose: n courses or credits from courses printed together. slot: filled from an option list elsewhere on the page. option_list: a list that feeds slots and never adds to the total by itself. area: any course carrying a designation from the school policy. open: any course that earns credit. note: a printed condition that is not itself credit. A checklist item that names a learning unit and carries published credits is never a note: it is a course or one_of line, and a printed condition on it (such as being waived by another course) is a note beside it."
    • addedInput schema / properties / lines / items / properties / waived_by
      Added value: +{
      +  "description": "Optional, on a line that carries credit: the condition the page prints under which the line is not required, such as a course passed at a minimum grade. A run marks the line met by waiver, with 0 credits, when a held course that lands as one of these courses meets min_grade; the waiving course is shown apart and still fills its own line. Where the held grade is not a letter grade (a P, a score), the line is uncertain, reason \"waiver grade not a letter grade\", naming the course and grade; where no grade is held for it, reason \"waiver grade not held\", named the same way.",
      +  "properties": {
      +    "courses": {
      +      "description": "The course codes that waive the line, each one of the school's learning units",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "min_grade": {
      +      "description": "The lowest letter grade the page prints for the waiver, exactly as printed (such as C-); null where it prints none. Where given, the source quote shows it.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "description": "Where the school prints the waiver: a capture and a verbatim passage of 300 characters or fewer from its cleaned text",
      +      "properties": {
      +        "capture_file": {
      +          "type": "string"
      +        },
      +        "quote": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "capture_file",
      +        "quote"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "courses",
      +    "min_grade",
      +    "source"
      +  ],
      +  "type": "object"
      +}
  8. Changed3 schema fields changed
    • changedInput schema / properties / lines / items / properties / designation / description
      Previous value: -"area only: the designation exactly as in the school policy"New value: +"area only: the designation exactly as in the school policy. The save stores on the line, as accepts, the course list the policy holds for the designation; only those courses, or a course of a subject the policy defines the designation by, fill it"
    • addedInput schema / properties / lines / items / properties / major_elective
      Added value: +{
      +  "description": "true on the program's major elective line: it is filled after the area lines and before the open electives",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / lines / items / properties / min_courses
      Added value: +{
      +  "description": "area, slot and open only: the number of courses the line asks for, where it asks for courses rather than credits. Where it is not given, the save stores it from the line's text when the text names courses, no credits, and one number",
      +  "type": "integer"
      +}
  9. Changed1 schema field changed
    • changedInput schema / properties / lines / items / properties / source / description
      Previous value: -"Where the school published it: the capture, named as the manifest names it, and a verbatim passage of 300 characters or fewer from that capture's cleaned text"New value: +"Where the school published it: the capture, named as the manifest or playlist_find_pages names it, and a verbatim passage of 300 characters or fewer from that capture's cleaned text"
  10. Changed2 schema fields changed
    • addedInput schema / properties / built_by
      Added value: +{
      +  "description": "Who built this playlist: a short string naming the agent and model. Stored with the saved playlist. A save without it is rejected.",
      +  "examples": [
      +    "claude-opus chat",
      +    "openai gpt build-agent"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "checklist_id",
      -  "lines"
      -]New value: +[
      +  "checklist_id",
      +  "built_by",
      +  "lines"
      +]
  11. Added

TDQS

A4.4/5.0
Behavior5/5

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

The description goes far beyond the annotations by disclosing the full validation contract, rejected-line behavior, exactly when a passing build replaces the playlist in use, and when it is kept as a candidate that is never used for progress. This is consistent with readOnlyHint=false, destructiveHint=false, and idempotentHint=false. It also explains that the save never alters line text but adds accepts and min_courses.

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 purpose is front-loaded, but the validation section is an extremely dense run-on chain of semicolon-separated checks that is hard to scan. Several clauses are close duplicates, such as the repeated course-code and quote checks, and the description would benefit substantially from grouping or bullets. It is comprehensive but poorly structured.

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 complex, non-read-only save tool with no output schema, the description is unusually complete: it covers validation, error behavior, return fields, rejected saves, replacement rules, candidate handling, and the role of playlist_compare. An agent has enough information to know what will happen on success and failure.

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 75% schema description coverage, the baseline is 3, but the description adds meaningful meaning for the largest parameter: lines must satisfy unique line_ids, consecutive order, credit totals, quote checks, and course-code rules. It also states that built_by is stored with the playlist and that a save without it is rejected. It does not add much beyond the schema for checklist_id, groups, or accept_warnings, so it falls 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?

The description uses a specific verb and resource: 'Save one checklist's playlist after the server checks it.' It scopes the operation to a single checklist and clearly names playlist_compare as the follow-up for candidate comparison. It is not tautological; an agent can tell what is being saved and what validation surrounds the save.

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?

Usage is strongly implied: save after the server checks, correct rejected lines and save again, and use playlist_compare when a build is kept as a candidate. It gives clear context for when saving is appropriate and what happens on validation failure, but it does not explicitly exclude other playlist tools such as build or review tools.

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.