> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# bart

> BART Transit

**Server path:** `/bart` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                            | Description                                      |
| --------------------------------------------------------------- | ------------------------------------------------ |
| [`bart_get_fare`](#bart_get_fare)                               | Get fare between two BART stations               |
| [`bart_get_realtime_departures`](#bart_get_realtime_departures) | Get real-time estimated departures for a station |
| [`bart_get_route_info`](#bart_get_route_info)                   | Get detailed information for a route             |
| [`bart_get_service_advisories`](#bart_get_service_advisories)   | Get current BART service advisories              |
| [`bart_get_station_info`](#bart_get_station_info)               | Get detailed information for a station           |
| [`bart_list_routes`](#bart_list_routes)                         | List all BART routes                             |
| [`bart_list_stations`](#bart_list_stations)                     | List all BART stations                           |
| [`bart_plan_trip`](#bart_plan_trip)                             | Plan a trip between two BART stations            |

***

## bart\_get\_fare

Get fare between two BART stations

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                                               |
| --------- | ------ | -------- | ------- | ----------------------------------------------------------------------------------------- |
| `orig`    | string | Yes      | —       | Origin station abbreviation code (e.g. EMBR). Use list\_stations to get valid codes.      |
| `dest`    | string | Yes      | —       | Destination station abbreviation code (e.g. DALY). Use list\_stations to get valid codes. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "orig": {
        "type": "string",
        "description": "Origin station abbreviation code (e.g. EMBR). Use list_stations to get valid codes."
      },
      "dest": {
        "type": "string",
        "description": "Destination station abbreviation code (e.g. DALY). Use list_stations to get valid codes."
      }
    },
    "required": [
      "PCID",
      "orig",
      "dest"
    ]
  }
  ```
</Expandable>

***

## bart\_get\_realtime\_departures

Get real-time estimated departures for a station

**Parameters:**

| Parameter | Type    | Required | Default | Description                                                                                                                                               |
| --------- | ------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `orig`    | string  | Yes      | —       | Station abbreviation code (e.g. EMBR for Embarcadero, MONT for Montgomery, 12TH for 12th St Oakland). Use list\_stations to get valid abbreviation codes. |
| `dir`     | string  | No       | —       | Filter by direction: n (northbound) or s (southbound)                                                                                                     |
| `plat`    | integer | No       | —       | Filter by platform number (1-4)                                                                                                                           |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "orig": {
        "type": "string",
        "description": "Station abbreviation code (e.g. EMBR for Embarcadero, MONT for Montgomery, 12TH for 12th St Oakland). Use list_stations to get valid abbreviation codes."
      },
      "dir": {
        "type": "string",
        "description": "Filter by direction: n (northbound) or s (southbound)",
        "enum": [
          "n",
          "s"
        ]
      },
      "plat": {
        "type": "integer",
        "description": "Filter by platform number (1-4)"
      }
    },
    "required": [
      "PCID",
      "orig"
    ]
  }
  ```
</Expandable>

***

## bart\_get\_route\_info

Get detailed information for a route

**Parameters:**

| Parameter | Type    | Required | Default | Description                                                               |
| --------- | ------- | -------- | ------- | ------------------------------------------------------------------------- |
| `route`   | integer | Yes      | —       | Route number (e.g. 1, 2, 3). Use list\_routes to get valid route numbers. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "route": {
        "type": "integer",
        "description": "Route number (e.g. 1, 2, 3). Use list_routes to get valid route numbers."
      }
    },
    "required": [
      "PCID",
      "route"
    ]
  }
  ```
</Expandable>

***

## bart\_get\_service\_advisories

Get current BART service advisories

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## bart\_get\_station\_info

Get detailed information for a station

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                                                                |
| --------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------------- |
| `orig`    | string | Yes      | —       | Station abbreviation code (e.g. EMBR for Embarcadero). Use list\_stations to get valid abbreviation codes. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "orig": {
        "type": "string",
        "description": "Station abbreviation code (e.g. EMBR for Embarcadero). Use list_stations to get valid abbreviation codes."
      }
    },
    "required": [
      "PCID",
      "orig"
    ]
  }
  ```
</Expandable>

***

## bart\_list\_routes

List all BART routes

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## bart\_list\_stations

List all BART stations

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## bart\_plan\_trip

Plan a trip between two BART stations

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                                                                |
| --------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------------- |
| `cmd`     | string | Yes      | —       | Command type: "depart" to find next departing trains, "arrive" to find trains arriving by a specific time  |
| `orig`    | string | Yes      | —       | Origin station abbreviation code (e.g. EMBR). Use list\_stations to get valid codes.                       |
| `dest`    | string | Yes      | —       | Destination station abbreviation code (e.g. DALY). Use list\_stations to get valid codes.                  |
| `date`    | string | No       | —       | Date for the trip (MM/DD/YYYY format, or "now" for today). Defaults to today.                              |
| `time`    | string | No       | —       | Time for the trip (h:mm+am/pm format, e.g. "5:30pm", or "now" for current time). Defaults to current time. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "cmd": {
        "type": "string",
        "description": "Command type: \"depart\" to find next departing trains, \"arrive\" to find trains arriving by a specific time",
        "enum": [
          "depart",
          "arrive"
        ]
      },
      "orig": {
        "type": "string",
        "description": "Origin station abbreviation code (e.g. EMBR). Use list_stations to get valid codes."
      },
      "dest": {
        "type": "string",
        "description": "Destination station abbreviation code (e.g. DALY). Use list_stations to get valid codes."
      },
      "date": {
        "type": "string",
        "description": "Date for the trip (MM/DD/YYYY format, or \"now\" for today). Defaults to today."
      },
      "time": {
        "type": "string",
        "description": "Time for the trip (h:mm+am/pm format, e.g. \"5:30pm\", or \"now\" for current time). Defaults to current time."
      }
    },
    "required": [
      "PCID",
      "cmd",
      "orig",
      "dest"
    ]
  }
  ```
</Expandable>
