Skip to main content
Glama

GoldCoach

Playlist Policy Save

playlist_policy_save

Save 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

NameRequiredDescriptionDefault
policyYes
unitidYesThe school, by its IPEDS UNITID
built_byYesWho built this policy: a short string naming the agent and model. Stored with the saved policy. A save without it is rejected.
accept_warningsNoOptional, 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare the write and safety profile. The description goes well beyond that with the full validation contract: exact quote matching with no fuzzy fallback, catalog and award_types cross-checks, refusal when a retained designation or award rule is dropped, and the rejected-but-saved outcome. The accept_warnings semantics (quotes cut at a word boundary, unfound quotes dropped, marks kept in warnings, trust state partial or inferred) are behavior an agent could not get from the annotations. The line "It never alters the policy" sits slightly uneasily next to readOnlyHint=false, although it appears to mean the tool doesn't rewrite the school's published policy rather than that the call is read-only.

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

Conciseness3/5

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

The purpose is stated up front and the closing sentence cleanly states the return values. But the middle is a dense run-on that chains validation rules with semicolons and parentheticals, and some material, such as the 300-character quote limit, is repeated in every source object in the schema. The information is useful, but an agent may have to reread it.

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

Completeness4/5

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

This is a nested four-parameter mutation whose rules could not be guessed from the schema. The description covers sources, awards, designations, subject rules, warnings, and the return payload (policy_id, status, errors), which is enough despite the absence of an output schema. Minor gaps remain: which courses a subject rule actually captures, and what a designation's credits field is checked against.

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 75%, so the schema already carries much of the parameter documentation, including the repeated source-object description. The description still adds real meaning beyond the schema: how a designation's quote must contain its name or abbreviation, the two ways a course can be supported, the heading-plus-rows evidence pattern, the subjects rules for designations defined by level, and that inferred_min_credits must never be sent. It largely compensates for the remaining coverage gap.

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

Purpose4/5

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

The opening sentence pairs a specific verb and resource with scope: "Save one school's policy after the server checks it." That separates it from read-side siblings like playlist_policy_open and playlist_policy_standing. It never names a sibling explicitly, so an agent must still infer that playlist_policy_diagnose is the check-only path.

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?

Usage is only implied. "A policy with errors is saved as rejected, so correct it and save again" tells the agent how to recover from a rejected save, and accept_warnings documents a conditional path. Nothing states when to choose this tool over playlist_policy_diagnose, playlist_policy_infer, or playlist_save, so the agent must work that out from the names alone.

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.