Skip to main content
Glama

Search the course catalogue

search_courses
Read-onlyIdempotent

Find courses in UCI's full catalog using free-text queries or filters for department, GE category, units, and level.

Instructions

Search the UCI course catalogue (all courses that exist, not term-specific offerings). Use a free-text query for fuzzy search ('machine learning', 'CS 161'), or the structured filters to browse (e.g. all GE-2 lower-division courses worth 4 units). To see which sections actually run in a given quarter and whether seats are open, use find_sections instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (default 25, max 100).
queryNoFree-text search over course titles, numbers and descriptions.
maxUnitsNoMaximum units.
minUnitsNoMinimum units.
departmentNoDepartment code or name, e.g. "COMPSCI", "CS", "Computer Science".
geCategoryNoGE category the course must satisfy.
courseLevelNoCourse level.
courseNumberNoExact course number, e.g. "161", "45C".
titleContainsNoSubstring that must appear in the course title.
descriptionContainsNoSubstring that must appear in the course description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering the safety profile. The description adds behavioral context beyond that: it clarifies the search covers the full catalogue rather than term-specific offerings, and gives example queries. It does not contradict annotations and adds useful scope information, though it omits details about return format or pagination.

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

Conciseness5/5

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

The description is two sentences with zero filler. It front-loads the primary purpose, then immediately gives usage guidance and the alternative tool. Every sentence earns its place, and the structure is logical and efficient.

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 tool with 10 parameters, the description is complete in explaining the core behavior, usage modes, and the main alternative. It does not describe the return structure, but given the absence of an output schema and the read-only, idempotent nature, this is a minor gap. The description covers the essential context an agent needs to select and invoke it correctly.

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 coverage is 100%, so each parameter is documented. The description adds value by providing concrete usage examples ('machine learning', 'CS 161') and illustrating combined filters ('all GE-2 lower-division courses worth 4 units'), which clarify how to combine parameters beyond their individual definitions. This goes beyond the schema's isolated descriptions.

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?

The description states a specific verb 'search' and a clear resource 'UCI course catalogue', and explicitly clarifies the scope ('all courses that exist, not term-specific offerings'). It also distinguishes itself from find_sections, making its purpose unambiguous and differentiated from a key sibling.

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?

The description provides explicit usage guidance: it explains two usage modes (free-text query vs. structured filters) and gives a concrete alternative with a condition ('To see which sections actually run... use find_sections instead'). This leaves no ambiguity about when to select this tool over others.

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