Skip to main content
Glama

compare_programs

Read-onlyIdempotent

Compare your current program with a target major to see units done and needed, course overlap, extra terms, and projected graduation impact.

Instructions

What if the student changes major to target (a program id from list_programs)? Returns current and target: major units done / in progress / needed, and build_plan's terms and est_graduation_term at the profile's load; the target's major groups (what counts, what's left); courses: count_in_both, only_current (still count toward the 120 and GE), only_target; and extra_terms (target minus current). The new major is the Bulletin in effect when they change (quoted in warnings); GE and graduation requirements stay their catalog year's. Show the see_advisor items: the official check is the Student Center What-If report and the target department.

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

Input Schema

NameRequiredDescriptionDefault
targetYes
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

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered structurally. The description adds real value on catalog-year semantics (new major uses the in-effect Bulletin while GE and graduation requirements stay at the student's catalog year) and warns that `warnings` carries the Bulletin quote and that see_advisor items are advisory. It does not describe cost, latency, or whether the comparison reflects in-progress coursework beyond the profile's current load, so a mid-range score reflects solid but incomplete disclosure.

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?

Information is front-loaded with the hypothetical scenario before the return shape, and the dense clause chain (units, plan terms, groups, course overlap, extra terms) is compressed without filler. However, the enumerations of returned keys ('count_in_both, only_current, only_target') make it a heavy single paragraph, and a numbered or bulleted break between scenario, return shape, and caveats would help an agent scan it. It is appropriately concise for the tool's complexity.

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?

For a two-parameter read-only comparison with no output schema, the description carries the burden well by naming the key return fields (current/target unit counts, course overlap buckets, extra_terms), stating the catalog-year rule, and flagging that see_advisor items are not official. The one gap is that it never clarifies what 'the profile's load' means in terms of the profile's max_units_per_term or include_summer flags, which affects the est_graduation_term result an agent would report.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description compensates for only one of the two parameters: it explains that `target` is a program id from list_programs. The `profile` parameter is referenced only obliquely ('at the profile's load'), with none of its many nested fields (catalog_year, completed, max_units_per_term) explained, leaving an agent to infer that it is the same load_profile object used by build_plan. The baseline for a 0%-coverage schema is 3 when the description partially compensates, which fits, but two parameters at zero coverage warrant a lower score.

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?

Opens with a specific hypothetical verb and resource: 'What if the student changes major to `target`'. It names the sibling used to obtain the argument (list_programs) and the sibling whose output it reuses (build_plan), so an agent can separate this from get_program_requirements or build_plan without opening a schema.

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?

The 'what if' framing gives a clear use condition, and the description names list_programs as the source of a valid `target` value and the Student Center What-If report plus the target department as the authoritative alternative for official checks. It stops short of stating when NOT to use it (e.g., for a student who has already changed majors, use audit_progress), so it falls short of full routing guidance.

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