Skip to main content
Glama

get_sections

Read-onlyIdempotent

Find course sections for a term and organize clash-free schedules with class numbers, meeting times, instructors, seats, and attributes so students can verify a plan before registering.

Instructions

Class Search sections of courses in one term (e.g. '2027-spring'), to show after a plan for its first term once that term's schedule is out: class number (class_nbr, what Student Center asks for), meetings (days, time, where), mode, instructor, seats_open, waitlist_open, enrolled, and attributes (permission numbers, GE tags; Class Search shows no capacity). rate_my_professors: {instructor: a Rate My Professors search} per named instructor, links for the student to open (anonymous student opinion, not SF State's). not_offered: no section that term (move it in the plan, then check_plan). unknown: GatorPath has no schedule for that subject and term (not out yet, or a subject it didn't scrape): check Class Search. A snapshot from scraped_at: seats, rooms and instructors change, so the student confirms in Class Search before registering.

Time clashes are checked here, not by you: `schedule` {code: [class_nbr, …]} is one set of sections with no time
clashes, the fewest full sections first (a lecture with its lab or activity is one pick), and each section says
in_schedule, or clashes_with: the scheduled sections of other courses it overlaps ([]: it fits instead). `sets`:
how many clash-free sets there are. When none fits, schedule is null and always_clash names the course pairs that
never fit together: one moves to another term (then check_plan). online: the courses the student wants online: the
schedule uses their fully online sections when they have one. keep: class numbers the student chose; those sections
stay (a lecture with its lab) and the rest fit around them. pinned_blocking says whether releasing chosen
sections finds a clash-free set; all_counted is false when the bounded search could not establish impossibility.

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": {
      "term": "<term>",
      "codes": "<codes>"
    },
    "name": "get_sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
keepNo
termYes
codesYes
onlineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • addedInput schema / properties / keep
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / online
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already mark this read-only, idempotent and closed-world, but the description goes well beyond them: it discloses staleness (a snapshot from scraped_at, seats/rooms/instructors change), the not_offered/unknown status semantics, that time-clash resolution happens server-side rather than by the agent, and the meaning of pinned_blocking and all_counted as bounds on the search. This is unusually rich disclosure of behavior the agent could not derive from the annotations.

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 front-loaded, but the body is dense, run-on and mixes return-field documentation, status semantics and scheduling algorithm caveats in undifferentiated paragraphs. Most sentences carry real information (there is no output schema to offload them to), yet the lack of structure makes it harder to scan than it needs to 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?

With no output schema and a genuinely complex computation (clash-free set selection, anchoring, online preference, bounded-search caveats), the description covers most of what an agent needs to interpret results and route follow-ups to check_plan or Class Search. The main gap is the undefined codes input and the somewhat opaque notion of 'sets'.

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% across four parameters, so the description must compensate. It does define keep (chosen class numbers that stay, lecture plus lab) and online (courses the student wants online), and gives a term format example, but it never states what codes accepts, leaving the most important required parameter undocumented in both schema and description.

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 clause gives a specific verb and resource: 'Class Search sections of courses in one term', with a concrete term example. It is distinguishable from siblings like check_plan or get_course, though the purpose statement is quickly buried under return-field and scheduling details rather than being crisply separated from them.

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 implied rather than stated: it is for showing a plan's first-term schedule 'once that term's schedule is out', and check_plan is named as the follow-up when a course isn't offered. There is no explicit statement of when to call this instead of get_course or search_courses, so the agent must infer the boundary.

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