naftiko: 1.0.0-alpha2 info: label: TheSportsDB API — Seasons description: 'TheSportsDB API — Seasons. 3 operations. Lead operation: Get Season Events. Self-contained Naftiko capability covering one Thesportsdb business surface.' tags: - Thesportsdb - Seasons created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: THESPORTSDB_API_KEY: THESPORTSDB_API_KEY capability: consumes: - type: http namespace: thesportsdb-seasons baseUri: https://www.thesportsdb.com/api/v1/json/3 description: TheSportsDB API — Seasons business capability. Self-contained, no shared references. resources: - name: eventsseason.php path: /eventsseason.php operations: - name: getseasonevents method: GET description: Get Season Events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: query type: integer description: League ID. required: true - name: s in: query type: string description: Season year (e.g., 2026-2027). - name: lookuptable.php path: /lookuptable.php operations: - name: lookuptable method: GET description: Lookup Table outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: l in: query type: integer description: League ID. required: true - name: s in: query type: string description: Season (e.g., 2026-2027). - name: search_all_seasons.php path: /search_all_seasons.php operations: - name: listallseasons method: GET description: List All Seasons outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: query type: integer description: League ID. required: true exposes: - type: rest namespace: thesportsdb-seasons-rest port: 8080 description: REST adapter for TheSportsDB API — Seasons. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/eventsseason-php name: eventsseason-php description: REST surface for eventsseason.php. operations: - method: GET name: getseasonevents description: Get Season Events call: thesportsdb-seasons.getseasonevents with: id: rest.id s: rest.s outputParameters: - type: object mapping: $. - path: /v1/lookuptable-php name: lookuptable-php description: REST surface for lookuptable.php. operations: - method: GET name: lookuptable description: Lookup Table call: thesportsdb-seasons.lookuptable with: l: rest.l s: rest.s outputParameters: - type: object mapping: $. - path: /v1/search-all-seasons-php name: search-all-seasons-php description: REST surface for search_all_seasons.php. operations: - method: GET name: listallseasons description: List All Seasons call: thesportsdb-seasons.listallseasons with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: thesportsdb-seasons-mcp port: 9090 transport: http description: MCP adapter for TheSportsDB API — Seasons. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-season-events description: Get Season Events hints: readOnly: true destructive: false idempotent: true call: thesportsdb-seasons.getseasonevents with: id: tools.id s: tools.s outputParameters: - type: object mapping: $. - name: lookup-table description: Lookup Table hints: readOnly: true destructive: false idempotent: true call: thesportsdb-seasons.lookuptable with: l: tools.l s: tools.s outputParameters: - type: object mapping: $. - name: list-all-seasons description: List All Seasons hints: readOnly: true destructive: false idempotent: true call: thesportsdb-seasons.listallseasons with: id: tools.id outputParameters: - type: object mapping: $.