Search trails
search_trailsFind U.S. rail-trails, canal towpaths and greenways by name, state, surface, kind and length. Returns each trail's page URL and slug (for get_trail). With no query, lists the longest trails that match the filters.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_trails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | rail: on a former railway; trolley: an old streetcar or interurban line; canal_towpath: beside a canal; greenway: a car-free path not on a railbed. | |
| limit | No | How many trails to return (1-50). | |
| query | No | Words from the trail's name, for example "Great Allegheny Passage" or "Virginia Creeper". Small typos are tolerated. | |
| state | No | Two-letter state code (PA) or state name. Matches every trail that enters the state. | |
| surface | No | Trail surface. crushed_stone is packed stone dust, good for most bikes. | |
| max_miles | No | Longest length, in miles. | |
| min_miles | No | Shortest length, in miles. |