Sound Transit · Capability

Sound Transit OneBusAway API — Agencies

Sound Transit OneBusAway API — Agencies. 2 operations. Lead operation: List Agencies With Coverage. Self-contained Naftiko capability covering one Sound Transit business surface.

Run with Naftiko Sound TransitAgencies

What You Can Do

GET
Listagencieswithcoverage — List Agencies With Coverage
/v1/agencies-with-coverage-json
GET
Getagency — Get Agency
/v1/agency/id-json

MCP Tools

list-agencies-coverage

List Agencies With Coverage

read-only idempotent
get-agency

Get Agency

read-only idempotent

Capability Spec

onebusaway-agencies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sound Transit OneBusAway API — Agencies
  description: 'Sound Transit OneBusAway API — Agencies. 2 operations. Lead operation: List Agencies With Coverage. Self-contained
    Naftiko capability covering one Sound Transit business surface.'
  tags:
  - Sound Transit
  - Agencies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SOUND_TRANSIT_API_KEY: SOUND_TRANSIT_API_KEY
capability:
  consumes:
  - type: http
    namespace: onebusaway-agencies
    baseUri: https://api.pugetsound.onebusaway.org/api/where
    description: Sound Transit OneBusAway API — Agencies business capability. Self-contained, no shared references.
    resources:
    - name: agencies-with-coverage.json
      path: /agencies-with-coverage.json
      operations:
      - name: listagencieswithcoverage
        method: GET
        description: List Agencies With Coverage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: agency-id}.json
      path: /agency/{id}.json
      operations:
      - name: getagency
        method: GET
        description: Get Agency
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: Unique agency identifier
          required: true
  exposes:
  - type: rest
    namespace: onebusaway-agencies-rest
    port: 8080
    description: REST adapter for Sound Transit OneBusAway API — Agencies. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/agencies-with-coverage-json
      name: agencies-with-coverage-json
      description: REST surface for agencies-with-coverage.json.
      operations:
      - method: GET
        name: listagencieswithcoverage
        description: List Agencies With Coverage
        call: onebusaway-agencies.listagencieswithcoverage
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/agency/id-json
      name: agency-id-json
      description: REST surface for agency-id}.json.
      operations:
      - method: GET
        name: getagency
        description: Get Agency
        call: onebusaway-agencies.getagency
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: onebusaway-agencies-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sound Transit OneBusAway API — Agencies. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-agencies-coverage
      description: List Agencies With Coverage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: onebusaway-agencies.listagencieswithcoverage
      outputParameters:
      - type: object
        mapping: $.
    - name: get-agency
      description: Get Agency
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: onebusaway-agencies.getagency
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.