maxpreps_school_proximal
Get MaxPreps schools near a school. Returns the MaxPreps schools near one school, using that school as the proximity origin, 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 maxResults and startFrom; optional name, distance, ZIP, season and state-scope filters.
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": {
"schoolId": "<schoolId>"
},
"name": "maxpreps_school_proximal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| byState | No | Optional search-by-state flag. | |
| zipCode | No | Optional five-digit US ZIP code to narrow the radius. | |
| schoolId | Yes | Required school id used as the proximity origin. | |
| sortOrder | No | Optional sort order. Values: Distance, Name. Defaults to the upstream's distance ordering. | |
| startFrom | No | Optional zero-based offset for offset pagination. Defaults to 0. | |
| maxResults | No | Optional page size from 1 to 200. Defaults to 50. | |
| searchText | No | Optional school-name filter inside the radius. | |
| allSeasonId | No | Optional all-season id from maxpreps-sports to scope the returned teams. | |
| maxDistance | No | Optional maximum distance in metres from the origin school. | |
| publishedOnly | No | Optional published-only flag. | |
| sportSeasonId | No | Optional sport-season id to scope the returned teams. | |
| 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). |