CTA Bus Tracker API — System

CTA Bus Tracker API — System. 1 operations. Lead operation: Get System Time. Self-contained Naftiko capability covering one Chicago Transit Authority business surface.

Run with Naftiko Chicago Transit AuthoritySystem

What You Can Do

GET
Gettime — Get System Time
/v1/gettime

MCP Tools

get-system-time

Get System Time

read-only idempotent

Capability Spec

cta-bus-tracker-system.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CTA Bus Tracker API — System
  description: 'CTA Bus Tracker API — System. 1 operations. Lead operation: Get System Time. Self-contained Naftiko capability
    covering one Chicago Transit Authority business surface.'
  tags:
  - Chicago Transit Authority
  - System
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CHICAGO_TRANSIT_AUTHORITY_API_KEY: CHICAGO_TRANSIT_AUTHORITY_API_KEY
capability:
  consumes:
  - type: http
    namespace: cta-bus-tracker-system
    baseUri: http://www.ctabustracker.com/bustime/api/v2
    description: CTA Bus Tracker API — System business capability. Self-contained, no shared references.
    resources:
    - name: gettime
      path: /gettime
      operations:
      - name: gettime
        method: GET
        description: Get System Time
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: key
      value: '{{env.CHICAGO_TRANSIT_AUTHORITY_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: cta-bus-tracker-system-rest
    port: 8080
    description: REST adapter for CTA Bus Tracker API — System. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/gettime
      name: gettime
      description: REST surface for gettime.
      operations:
      - method: GET
        name: gettime
        description: Get System Time
        call: cta-bus-tracker-system.gettime
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cta-bus-tracker-system-mcp
    port: 9090
    transport: http
    description: MCP adapter for CTA Bus Tracker API — System. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-system-time
      description: Get System Time
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cta-bus-tracker-system.gettime
      outputParameters:
      - type: object
        mapping: $.