find_station
Search for train stations in a Spanish city and retrieve their IDs and names for Renfe journey planning.
Instructions
Search for train stations in a city and return matching options.
Useful for checking what stations are available in a city before searching for journeys.
Args: city_name: City name to search for (e.g., "Madrid", "Barcelona", "Valencia") api_key: API key for authentication (optional if configured via environment)
Returns: A formatted string showing all matching stations with their IDs and full names.
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": {
"city_name": "<city_name>"
},
"name": "find_station"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city_name | Yes | ||
| api_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |