maxpreps_school_search
Get 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 | Required school-name search text, for example lincoln. Use * to browse the whole directory. | |
| zipCode | No | Optional five-digit US ZIP code to narrow the search. | |
| schoolId | No | Optional school id used as the distance origin; required when sortOrder is Distance. | |
| sortOrder | No | Optional sort order. Values: Distance, Name. Distance requires schoolId and returns rows nearest to that school; Name sorts alphabetically. Defaults to Name. | |
| startFrom | No | Optional zero-based offset for offset pagination. Defaults to 0. | |
| maxResults | No | Optional page size from 1 to 200. Defaults to 50. | |
| allSeasonId | No | Optional all-season id from maxpreps-sports to scope the returned teams to one season. | |
| publishedOnly | No | Optional published-only flag. | |
| historicalOnly | No | Optional historical-only flag. | |
| includeDeleted | No | Optional include-deleted flag. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |