naftiko: 1.0.0-alpha2 info: label: CTA Bus Tracker API — Predictions description: 'CTA Bus Tracker API — Predictions. 1 operations. Lead operation: Get Predictions. Self-contained Naftiko capability covering one Chicago Transit Authority business surface.' tags: - Chicago Transit Authority - Predictions 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-predictions baseUri: http://www.ctabustracker.com/bustime/api/v2 description: CTA Bus Tracker API — Predictions business capability. Self-contained, no shared references. resources: - name: getpredictions path: /getpredictions operations: - name: getpredictions method: GET description: Get Predictions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: stpid in: query type: string description: Comma-separated stop IDs. - name: rt in: query type: string description: Comma-separated route designators. - name: vid in: query type: string description: Comma-separated vehicle IDs. - name: top in: query type: integer authentication: type: apikey key: key value: '{{env.CHICAGO_TRANSIT_AUTHORITY_API_KEY}}' placement: query exposes: - type: rest namespace: cta-bus-tracker-predictions-rest port: 8080 description: REST adapter for CTA Bus Tracker API — Predictions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/getpredictions name: getpredictions description: REST surface for getpredictions. operations: - method: GET name: getpredictions description: Get Predictions call: cta-bus-tracker-predictions.getpredictions with: stpid: rest.stpid rt: rest.rt vid: rest.vid top: rest.top outputParameters: - type: object mapping: $. - type: mcp namespace: cta-bus-tracker-predictions-mcp port: 9090 transport: http description: MCP adapter for CTA Bus Tracker API — Predictions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-predictions description: Get Predictions hints: readOnly: true destructive: false idempotent: true call: cta-bus-tracker-predictions.getpredictions with: stpid: tools.stpid rt: tools.rt vid: tools.vid top: tools.top outputParameters: - type: object mapping: $.