Playlist Schools
playlist_schoolsOne row for each school the playlist store holds a policy, an index run, a playlist or a build request for, ordered by state, then school name. Answered only to main KSAserver's own key; any other caller is refused. Takes no argument, or unitid for one school's row alone. Each row gives unitid, and name and state as the publish this host serves holds them (null where it holds no such school); index, the school's latest academic policy index run as playlist_index_status reads it (status none, running, done or failed; current; publish_version; finished_at; error; policy_pages; left_out); pages_to_read, the count of the page list kept with the policy in use, null where none is kept; last_build, the school's newest build request of either kind by the time it was asked (request_id, rebuild_policy, checklist_id, status, requested_at, error, published_only, timed_out, policy_fallback, attempt_errors, not_read, the counts of policy_warnings and playlist_warnings, policy_pages_read and policy_characters_read), never its learners, null where none is held; policy_in_use, the newest policy that is a draft, not rejected and passed its checks (trust_state, source, created_at), null where none; playlists, the count of the school's checklists with a playlist in use; open_orders, the count of its rebuild orders open or taken; and open_tasks, the count of its slot tasks open or taken on each checklist's copy in use (a run's work copy is not counted). With unitid, the row also gives playlist_rows: one row for each of the school's checklists with a playlist or a playlist build request, each with checklist_id; award_title and program_name as the publish holds them (null where it holds none); playlist, the playlist in use by the same rule as playlists (playlist_id, policy_id, program_id, trust_state, created_at, warning_count and warnings, its validation's warnings as saved), null where none; last_build, the checklist's newest build request with the same fields as the school's last_build, and also started_at, saved_trust, playlist_warnings, steps (the run's steps, each name, started_at, ms and ending), released, reason, rebuild_order, rebuild_playlist, retry_flagged, slot_calls_used and copy_id, null where none; and slot_tasks, the slot tasks of the checklist's template-built copy in use (count, and by_state: each slot state's count, a task with no state counted as open), null where none is in use. A value the store does not hold is null. Read-only: nothing is built or kept, and no model is called.
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_schools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unitid | No | Optional: one school, by its IPEDS UNITID; its row alone, with playlist_rows |