Playlist Policy Save
playlist_policy_saveSave one school's policy after the server checks it. Every source is a capture_file held for the school, one playlist_policy_open named or one playlist_find_pages found (the cabinet path, without the page: its section name carries), and a quote of 300 characters or fewer copied verbatim from that capture's cleaned text; the quote check is exact, with no fuzzy matching. The server also checks that every course code is one of the learning units in the school's catalog, every award_title appears in the award_types section, and every min_credits is a positive number. Where a policy built from the school's pages is in use, every designation and award rule it holds must be kept, by its name or award_title, unless its own page no longer shows it (its source quote is no longer in that capture); a policy that drops one its page still shows is refused. A designation's quote must contain its name or its abbreviation, and every course in its courses list must be supported, in one of two ways. One: its code and the designation's abbreviation or name appear together in one quote, the source's or one in the designation's optional evidence list. Two: Where a school lists a designation's courses under one heading, quote the heading as the designation's source and the course rows as evidence from the same page. A row counts where it sits under that heading and before the next heading, and one evidence quote may show several rows. Where a school defines a designation by subject and level instead of a list of courses, give subjects: each rule is a subject prefix, an optional minimum course number, and its own source, whose quote shows them. It never alters the policy. It returns policy_id, status, and every error in plain words: a policy with errors is saved as rejected, so correct it and save again.
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": {
"unitid": "<unitid>",
"built_by": "<built_by>",
"policy": "<policy>"
},
"name": "playlist_policy_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | Yes | ||
| unitid | Yes | The school, by its IPEDS UNITID | |
| built_by | Yes | Who built this policy: a short string naming the agent and model. Stored with the saved policy. A save without it is rejected. | |
| accept_warnings | No | 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. |