Skip to main content
Glama

search_course_materials

Find course materials across syllabi, pages, assignments, announcements, modules, and cached PDFs using keyword, semantic, or hybrid search; results cite file IDs and page numbers.

Instructions

Search syllabi, pages, assignment instructions, announcements, module items, file names and the text inside cached PDFs; hits cite file_id and page_number. mode=hybrid (default) fuses keyword matches (every term present) with semantic matches by meaning, so 'how electrons bond in molecules' finds molecular-orbital lectures; keyword or semantic alone are available. Each hit says how it matched; semantic hits carry a confidence (high/medium/low), and queries made only of words the model does not know return no semantic hits. Identical text in several files is one hit listing the others in also_in.

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": {
      "query": "<query>"
    },
    "name": "search_course_materials"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNohybrid
limitNo
queryYes
courseNoCourse id, code (e.g. 'CHEM 343', 'CS 252') or part of its name
include_otherNoAlso include non-credit shells (trainings, advising)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the full behavioral burden and does substantial work: it explains hybrid fusion, that each hit reports how it matched, that semantic hits carry a high/medium/low confidence, that unknown-word queries yield no semantic hits, and that identical text across files is collapsed into one hit with also_in. It does not disclose read-only status explicitly, nor auth requirements or result-size/pagination behavior, which are the remaining gaps.

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?

The opening clause front-loads what is searched and where results point (file_id, page_number), which is the right ordering. It is a dense single block rather than a structured list, and the matching-mode explanation runs long, but nearly every sentence supplies distinct behavioral 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?

For a five-parameter tool with no annotations and no output schema, the definition covers the searchable corpus, the return shape (file_id, page_number, confidence, also_in), and matching semantics thoroughly. Missing pieces are limit's effect on result volume and the course/include_other filters, which are partially covered by the schema itself.

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 40%, so the description must compensate and it does so for the two most consequential parameters: mode (hybrid default, fusion semantics, standalone keyword/semantic) and query (term-conjunction for keyword, unknown-word behavior for semantic). It adds nothing about limit, course, or include_other, though course and include_other already carry schema 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 names the verb (search) and the resource precisely, then enumerates the indexed surfaces: syllabi, pages, assignment instructions, announcements, module items, file names, and cached PDF text. That scope distinguishes it from siblings like get_syllabus or list_course_files, which retrieve a single surface rather than searching across all of 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?

It gives useful query-shaping guidance (phrase by meaning for semantic hits, every term present for keyword) and notes that keyword or semantic modes are available as alternatives to hybrid. However, it never states when to reach for this tool over a targeted sibling such as get_page or get_recent_announcements, nor does it set exclusions, so the when-to-use decision is only implied.

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