Check whether you can take a course
check_prerequisitesCheck if you meet a course's prerequisites by comparing them against your completed courses, showing satisfied and missing requirements plus enrollment restrictions.
Instructions
Evaluate a course's prerequisite tree against the courses a student has already completed, showing exactly which requirements are met and which are missing. Also reports enrollment restrictions (major-only, etc.), which the API cannot verify automatically.
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": {
"courseId": "<courseId>"
},
"name": "check_prerequisites"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apScores | No | AP/exam scores keyed by exam name, e.g. {"AP CALCULUS BC": 5}. | |
| courseId | Yes | The course you want to take, e.g. "COMPSCI 161". | |
| completed | No | Courses already completed. Optionally append a grade after a colon, e.g. ["I&C SCI 46:B+", "MATH 2B:A-", "I&C SCI 6B"]. Without a grade, a minimum-grade requirement is reported as unverified. |