Skip to main content
Glama

check_plan

Read-onlyIdempotent

Validates a term-by-term degree plan against official Bulletin rules, flagging unmet prerequisites, duplicate courses, unit caps, and uncovered requirements before you present it.

Instructions

Validate a term-by-term plan. Call this before presenting any plan, fix every error, and re-check until valid. courses gives each planned course's title, units and source_page for the plan's table: no get_course per course. Errors (with Bulletin text/pages): prereq not met by that term, course already passed or planned twice, unknown course, units over the term's cap (term max_units, else 15; with the student's max_units_per_term, which guides the first plan, a later edit above it is a warning in over_preference, not an error: the 15-unit advisor flag and the university's 19-unit maximum still apply). requirement or 120/upper-division units not covered. Warnings: unverifiable prereqs (GPA not given, permission), loads above the normal 15 (p.2393; "as on the Bulletin roadmap" with no advisor when the term's roadmap semester prints that load), unfilled slots. profile.f1: true for an F-1 visa student: a spring/fall term under 12 units is an error (the plan's last term: a warning and the international office), and so is a skipped spring/fall term (pp.2390, 2393). profile.permissions: courses the student says an instructor or department already gave them permission for: those prereq branches count, with a warning to bring it to registration. profile.overload_approved: terms whose overload the student says their advisor approved: no advisor handoff for that load (the term's cap still applies).

plan: {semesters: [{term: '2027-fall', courses: ['CSC 413', {slot: 'senior_electives', units: 3}]}]}. Pass
build_plan's semesters back as returned: their max_units and roadmap {units, source} keep the roadmap's loads. A slot is an
unfilled pick for a requirement group (group ids from get_program_requirements), or {slot: 'elective', units: 3,
upper_division?: true} for free units. Terms are YYYY-spring/summer/fall, or YYYY-winter for Winter Session (January,
between fall and spring, at most 4 units), after the profile's completed terms.

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": {
      "profile": "<profile>",
      "plan": "<plan>"
    },
    "name": "check_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYes
profileYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • addedInput schema / $defs / Profile / properties / dpr_seen
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / $defs / Profile / properties / dpr_unit_offsets
      Added value: +{
      +  "additionalProperties": {
      +    "type": "number"
      +  },
      +  "type": "object"
      +}
    • addedInput schema / $defs / Semester / properties / max_units
      Added value: +{
      +  "type": "number"
      +}
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, and closed-world behavior. The description adds substantial behavioral context beyond that: error categories, warning categories, F-1 visa rules, permissions handling, overload approvals, and term-unit caps.

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

Conciseness4/5

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

The description is front-loaded with the imperative and purpose, then detailed rules. Its length is justified by the validation complexity, but dense parentheticals and semicolons make it harder to scan than a more structured presentation would be.

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?

Given the complex nested inputs and no output schema, the description covers the major validation behaviors and input semantics. It still does not specify the exact return shape and leaves several profile fields to inference, so it is strong but not completely exhaustive.

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 0% schema description coverage, the description compensates well by explaining plan.semesters structure, course entries versus slot objects, slot semantics, term formats, and key profile fields like f1, permissions, overload_approved, and max_units_per_term. It still leaves many profile fields unexplained, so it is not fully exhaustive.

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?

States a specific verb and resource: validate a term-by-term plan. It explicitly says when to call it and references build_plan semesters and get_program_requirements, making it clearly distinct from siblings like get_course.

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

Usage Guidelines5/5

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

Gives explicit when-to-use guidance: call before presenting any plan, fix every error, and re-check until valid. It also names relevant alternatives and constraints, such as passing build_plan's semesters back as returned and not calling get_course per course.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.