Skip to main content
Glama

build_plan

Read-onlyIdempotent

Builds a deterministic term-by-term graduation plan from completed coursework and prerequisite chains, reserving slots for electives and flagging what to fill before verification.

Instructions

Deterministic baseline plan to graduation, laid out on the Bulletin roadmap: each term starts from its roadmap semester (what's done is skipped, what isn't ready carries over), then the remaining required courses by prereq chain (critical path first, corequisites together), then slots for what's open (GE areas, senior electives, free electives) to reach the 120 and upper-division totals. Already run through check_plan: see check.

Fill each slot with list_eligible_electives + the student's goal, then call check_plan again before presenting.
Unit loads follow the roadmap (D24): each spring/fall term's cap is the printed units of the roadmap semester the
student's units have reached (16, 15, 16, … for a BS CS QR 1/2 freshman; the last semester's past its end; never
under 12 for f1), shown as each semester's max_units and roadmap. max_units_per_term is the student's own pace and
overrides it for this plan (check_plan only warns when a later edit goes above it). Also include_summer, include_winter (Winter Session terms
between fall and spring: up to 4 units of GE, American Institutions or free electives) and f1 (F-1 visa: spring/fall
terms filled toward 12 units, pp.2390, 2393). Returns needs_input
(qr_pathway, start_term) instead of guessing. Each semester has `why`: per course, what it's needed before, the
chain it starts, and whether delaying it pushes back graduation. `pace` says what sets the length: the longest
prereq chain vs the units per term (load: roadmap / max_units_per_term); normal_load is the lighter option at the
normal 15 (terms, graduation term) when the roadmap goes above it; fold_last_term when a light last term fits into
one earlier term (a term sooner at one heavier load). profile.graduate_by (D25) fits the loads to that goal: when the
roadmap's loads end later, every term goes to the roadmap's heaviest semester, then one unit more at a time up to
19, until the plan ends by then (load: graduate_by, pace.fit with the units and a note; above the roadmap's
heaviest is an overload: advisor). pace says whether the term is reachable and, if not, why_not.
For "3, 4 or 5 years", call it at different max_units_per_term / include_summer / include_winter.

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>"
    },
    "name": "build_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
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/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/closed-world; the description goes well beyond them by disclosing the planning algorithm (roadmap semester first, skip done, carry over not-ready, prereq chain critical-path-first, corequisites together, then open slots), the unit-cap rules tied to roadmap semesters, the f1 and Winter Session handling, the graduate_by load-fitting behavior with its 19-unit ceiling and overload-advisor flag, and the needs_input fallback instead of guessing. This is unusually rich behavioral context that an agent could not infer from the annotations or schema.

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 first sentence is front-loaded and useful, but the rest is a sprawling, parenthesis-heavy run-on that mixes input semantics, output field explanations, and internal citations (D24, D25, pp.2390, 2393) into a single undifferentiated block. Because there is no output schema, much of the return-value detail is justified, but the phrasing is dense enough that an agent must parse it repeatedly to extract the actionable rules. Structure, not content volume, is the failure here.

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?

With no output schema, the description does the work of explaining the returned shape: semesters with max_units, per-course `why` (prerequisite needs, chain starts, delay impact), `pace` with load and normal_load, fold_last_term, and needs_input. For a complex planning tool this covers what an agent needs in order to interpret and present results. The remaining gap is the unexplained minority of profile fields and the absence of any statement about determinism guarantees across repeated calls.

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 description coverage is 0% on a single nested profile object with roughly thirty fields, so the description must carry the load. It does explain the non-obvious knobs well: max_units_per_term as the student's own pace overriding roadmap caps (and that check_plan only warns on later edits), include_summer/include_winter semantics with the 4-unit Winter limit, f1's 12-unit floor, and graduate_by's fitting behavior. It leaves many other fields (adt, ge_certified, dpr_unit_offsets, overload_approved, chosen_electives) to name inference, so it compensates substantially but not completely.

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 names a specific artifact (a deterministic baseline term-by-term plan to graduation) and its source (the Bulletin roadmap), which is far more than a restatement of the name. It also implicitly separates itself from siblings by naming check_plan and list_eligible_electives as different steps in the same workflow. The purpose is clear, though the density of surrounding clauses makes it harder to extract than it should be.

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?

It gives a concrete workflow: fill slots via list_eligible_electives plus the student's goal, then re-run check_plan before presenting, and it tells the agent to call it repeatedly with different max_units_per_term/include_summer/include_winter to model 3/4/5-year paths. What it lacks is an explicit when-not-to-use statement or a clean statement of what check_plan alone does by contrast, so the routing is implied rather than fully specified.

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