maxpreps_school_zip_search
Find MaxPreps schools near a five-digit US ZIP code with school details, sports team IDs, and filters for name, city, or distance.
Instructions
List MaxPreps schools near a ZIP code. Returns the MaxPreps schools around one five-digit US ZIP code with the same school record shape as maxpreps-school-search: identity, location, colours, mascot, enrollment and each school's sport-season ids. Offset pagination with startFrom; optional name, city and distance filters. Use it when a caller starts from a location rather than a school name.
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": {
"zipCode": "<zipCode>"
},
"name": "maxpreps_school_zip_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zipCode | Yes | Five-digit US ZIP code example(90210) | |
| startFrom | No | Zero-based offset; defaults to 0 example(0) | |
| searchCity | No | Optional city filter example(Beverly Hills) | |
| searchText | No | Optional school-name filter example(lincoln) | |
| allSeasonId | No | Optional all-season id from maxpreps-sports example(22e2b335-334e-4d4d-9f67-a0f716bb1ccd) | |
| maxDistance | No | Optional maximum distance in metres example(40000) | |
| publishedOnly | No | Only published schools | |
| searchByState | No | Search by state instead of radius | |
| sportSeasonId | No | Optional sport-season id to scope returned teams example(2286cd80-c46d-4739-8dd1-92a67ca8daa7) | |
| historicalOnly | No | Only historically published schools | |
| includeDeleted | No | Include deleted schools |