maxpreps_school_search
Search MaxPreps schools by name to retrieve school records, locations, colors, mascots, enrollment, and team sportSeasonIds, enabling school and team discovery.
Instructions
Search MaxPreps schools by name. Searches MaxPreps schools by name and returns school records with identity, location, colours, mascot, enrollment and the sport-season ids of the school's teams. Offset pagination with maxResults and startFrom; sortOrder Name sorts alphabetically, Distance requires schoolId and returns rows nearest to that school. This is the primary discovery surface for schoolId and team sportSeasonId values.
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": "maxpreps_school_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | School-name search text; * browses the whole directory example(lincoln) | |
| zipCode | No | Optional five-digit US ZIP code example(90210) | |
| schoolId | No | School id used as the distance origin; required when sortOrder is Distance example(7bdc339f-7cbf-4728-b0c8-ed898929cf68) | |
| sortOrder | No | Sort order: Distance or Name; Distance requires schoolId | |
| startFrom | No | Zero-based offset; defaults to 0 example(0) | |
| maxResults | No | Page size from 1 to 200; defaults to 50 example(25) | |
| allSeasonId | No | Optional all-season id from maxpreps-sports to scope returned teams example(22e2b335-334e-4d4d-9f67-a0f716bb1ccd) | |
| publishedOnly | No | Only published schools | |
| historicalOnly | No | Only historically published schools | |
| includeDeleted | No | Include deleted schools |