MCP Tools
The All Aboard MCP server gives the model six tools. The model decides which ones to call for the task at hand.
list_documentation
Lists all documentation sections and pages, each with a link and the page's first sentence. It returns the site's llms.txt. The model calls this first, to see what is available before it fetches a page.
Parameters: None
Example output (abridged):
# All Aboard API Documentation
> Tools for selling train tickets and rail passes across Europe via GraphQL API, embeds, and dashboard.
## Getting Started
- [Overview](https://allaboard.eu/docs/index.md): Search and book train tickets and Interrail passes in your apps and AI assistants, from train and bus operators across Europe.
- [Quick Start](https://allaboard.eu/docs/intro/quick-start.md): A ticket booking through the API takes seven operations.
...read_documentation
Fetches one or more documentation pages by slug and returns them as Markdown. Call list_documentation first to find the slugs, then fetch only the pages you need.
A slug is the page's path after /docs/, without .md. The Overview is index, and section index pages end in /index:
| Slug | Page |
|---|---|
"index" |
Overview |
"intro/getting-started" |
API Basics |
"tickets/index" |
Finding Journeys |
"tickets/book-tickets" |
Booking Tickets |
"payments/index" |
Payment Methods |
"ref/errors" |
Error Codes |
Pass several slugs to fetch several pages in one call.
Parameters:
| Parameter | Type | Description |
|---|---|---|
slugs |
string |
One or more page slugs, comma-separated (e.g. "tickets/index,tickets/book-tickets") |
explore_schema
Browses the live GraphQL schema. Returns operation signatures with argument types and return types, or a list of available types.
Parameters:
| Parameter | Type | Description |
|---|---|---|
category |
queries | mutations | subscriptions | types |
Which category to list |
filter |
string (optional) |
Case-insensitive name filter |
Example (list all queries containing "journey"):
explore_schema({ category: "queries", filter: "journey" })Example output (abridged):
Found 8 queries:
- **journeys**(origin: LocationInput!, destination: LocationInput!, date: Date!, filter: JourneyFilterInput, via: [ViaInput!]): [Journey!]!
Get all possible journeys between origin and destination on given date
See: https://allaboard.eu/docs/tickets
- **journeyOffer**(journeyId: ID!, passengers: [PassengerPlaceholderInput!]!, currency: String = "EUR"): JourneyOffer!
This will check live availablity with the train operators and return the given
journey with priced offers. Call this when the user has requested prices.
See: https://allaboard.eu/docs/tickets/journey-offer
...get_type
Returns full details of a specific GraphQL type: all fields with their argument types and return types, enum values, input fields, interfaces implemented, and possible types for unions/interfaces.
Parameters:
| Parameter | Type | Description |
|---|---|---|
name |
string |
Exact name of the type (e.g. Journey, Booking, PassBundle) |
Example:
get_type({ name: "Booking" })If the type is not found, the tool returns suggestions for similarly named types.
execute_query
Executes a read-only GraphQL query against the All Aboard API and returns the JSON response. This tool is for query operations only. Mutations go through execute_mutation.
You authenticate with OAuth 2.1 when you connect the MCP server, so the tool takes no API key. If it returns an authentication error, reconnect your MCP client to https://mcp.allaboard.eu/mcp to sign in again.
Parameters:
| Parameter | Type | Description |
|---|---|---|
query |
string |
GraphQL query string to execute |
variables |
object (optional) |
Variables for the operation |
operationName |
string (optional) |
Name of the operation to execute when the document contains multiple named operations |
sessionId |
string (optional) |
Session ID override. If omitted, one that stays the same for as long as you are signed in is used |
Example:
query FindJourneys {
journeys(
origin: { uid: "Sb0ISveC" }
destination: { uid: "p6fERure" }
date: "2026-12-23"
) {
id
itinerary {
__typename
... on SegmentCollection {
segments {
departureAt
arrivalAt
duration
}
}
... on Stopover {
duration
}
}
}
}If the response has GraphQL errors, the tool returns them together with the full response body.
execute_mutation
Executes a GraphQL mutation against the All Aboard API. This tool is for operations that create, update or delete data, such as booking tickets or creating orders. Read-only queries go through execute_query.
Authentication works in the same way as for execute_query.
Parameters:
| Parameter | Type | Description |
|---|---|---|
query |
string |
GraphQL mutation string to execute |
variables |
object (optional) |
Variables for the operation |
operationName |
string (optional) |
Name of the operation to execute when the document contains multiple named operations |
sessionId |
string (optional) |
Session ID override. If omitted, one that stays the same for as long as you are signed in is used |
Example:
mutation CreateBooking($offerIds: [ID!]!) {
createBooking(offerIds: $offerIds) {
id
expiresAt
totalPrice {
amount
currency
}
}
}GraphQL errors are returned in the same way as for execute_query.
Orders and payments made through this tool are marked. createOrder and createPayment get aa_mcp_source: true added to their metadata, next to anything you put there yourself, so you can tell them apart from orders made by your own integration.
There is no tool for subscriptions. explore_schema lists them, but streaming operations such as journeyOffer are run as queries with execute_query.