Skip to main content
Glama

list_eligible_electives

Read-onlyIdempotent

Find and rank courses that fill a requirement group slot by prerequisite readiness, schedule/online availability, and other requirements each course also covers.

Instructions

Courses that can fill one requirement group's slot (e.g. 'senior_electives', 'ge_4ud', 'sfss_esca'), with the Bulletin description, so you can pick by the student's goal.

Each option has readiness at by_term (default: the plan's first term, or the next term): 'ready' (prereqs met),
'check' (met except what GatorPath can't verify: GPA, permission, unparsed text: see cannot_check), or 'blocked'
(blocked_by, plus ready_by: the first plan term it opens up, when a plan is given). Pass the build_plan output as
`plan` and the slot's term as by_term, so planned courses count (a later by_term with no plan uses build_plan's
baseline and says so). Options are ranked ready-first, then by
also_covers: other open requirements the same course would satisfy (GE, SF State Studies and American Institutions
may overlap with each other and the major, p.2352; one course can do triple duty, e.g. 4UD + Environmental
Sustainability + Global Perspectives). Re-run check_plan after filling slots. A group with
`approval` (courses an advisor consents to, no Bulletin list) returns that text, no options, and see_advisor.

full: true for the rest of the list, when the student asks for it: every option they can take (ready or check), no
limit, without descriptions. When by_term's Class Search schedule is out (schedule_out), each has on_schedule: true
(a section that term; these come first), false, or "unknown" (its subject wasn't scraped). crosslisted: the same
class under other codes (one option, not two). Without full, `more` names (code: title) the ones past `limit`
that are ready or open up later in the plan, so a course that fits the goal isn't missed for ranking low.

online: true keeps only the options that can be taken online at by_term, and `online` on each says how that's known:
a fully online section when by_term's schedule is out (hybrid doesn't count), before that only how it last ran that
season, so an empty list for a later term means not known yet, not none.

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

Input Schema

NameRequiredDescriptionDefault
fullNo
planNo
limitNo
queryNo
onlineNo
by_termNo
profileYes
group_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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"
      +}
    • addedInput schema / properties / online
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "default": "",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/closed-world, but the description discloses far more: readiness tri-state semantics, ranking order (ready-first then also_covers), schedule_out handling, `more` naming truncated ready options, crosslist collapsing, approval-group behavior returning advisor text plus see_advisor, and the online 'unknown vs none' caveat. That is exactly the behavioral context annotations cannot carry.

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?

Front-loaded with the purpose and organized roughly one paragraph per parameter mode; no filler sentences. Some sentences are heavily nested (readiness defaults, the online 'known vs unknown' clause), which slows parsing but every clause carries information.

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?

No output schema exists, so the description must describe return values and does so thoroughly (options, readiness/ready_by/blocked_by, also_covers, more, on_schedule, crosslisted, online). Only the `query` filter and `profile` shape remain unexplained for a complex 8-parameter tool.

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 must carry all parameter meaning, and it does for `full`, `plan`, `by_term`, `online`, `group_id` (via the slot concept) and `limit` (via `more` past `limit`). `query` and the large `profile` object are never explained, leaving a real 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?

Opens with a specific verb+resource: courses that can fill one requirement group's slot, with concrete group_id examples ('senior_electives', 'ge_4ud', 'sfss_esca') and the stated return payload (Bulletin description). It never explicitly contrasts itself with siblings like get_program_requirements or search_courses, so an agent must infer the boundary.

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?

Gives concrete usage conditions for the non-obvious modes: pass build_plan output as `plan` and the slot's term as `by_term`; `full: true` when the student asks for the rest of the list; `online: true` to restrict to online options; re-run check_plan after filling slots. Missing is any statement of when to call this instead of a sibling tool.

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