naftiko: 1.0.0-alpha2 info: label: Stats Perform STATS API — Statistics description: 'Stats Perform STATS API — Statistics. 2 operations. Lead operation: Get Player Statistics. Self-contained Naftiko capability covering one Stats Perform business surface.' tags: - Stats Perform - Statistics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STATS_PERFORM_API_KEY: STATS_PERFORM_API_KEY capability: consumes: - type: http namespace: stats-statistics baseUri: https://api.stats.com/v1 description: Stats Perform STATS API — Statistics business capability. Self-contained, no shared references. resources: - name: stats-sport-leaguePath-players-playerId-stats path: /stats/{sport}/{leaguePath}/players/{playerId}/stats operations: - name: getplayerstats method: GET description: Get Player Statistics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: playerId in: path type: string description: The unique player identifier. required: true - name: stats-sport-leaguePath-teams-teamId-stats path: /stats/{sport}/{leaguePath}/teams/{teamId}/stats operations: - name: getteamstats method: GET description: Get Team Statistics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teamId in: path type: string description: The unique team identifier. required: true authentication: type: apikey key: api_key value: '{{env.STATS_PERFORM_API_KEY}}' placement: query exposes: - type: rest namespace: stats-statistics-rest port: 8080 description: REST adapter for Stats Perform STATS API — Statistics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/stats/{sport}/{leaguepath}/players/{playerid}/stats name: stats-sport-leaguepath-players-playerid-stats description: REST surface for stats-sport-leaguePath-players-playerId-stats. operations: - method: GET name: getplayerstats description: Get Player Statistics call: stats-statistics.getplayerstats with: playerId: rest.playerId outputParameters: - type: object mapping: $. - path: /v1/stats/{sport}/{leaguepath}/teams/{teamid}/stats name: stats-sport-leaguepath-teams-teamid-stats description: REST surface for stats-sport-leaguePath-teams-teamId-stats. operations: - method: GET name: getteamstats description: Get Team Statistics call: stats-statistics.getteamstats with: teamId: rest.teamId outputParameters: - type: object mapping: $. - type: mcp namespace: stats-statistics-mcp port: 9090 transport: http description: MCP adapter for Stats Perform STATS API — Statistics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-player-statistics description: Get Player Statistics hints: readOnly: true destructive: false idempotent: true call: stats-statistics.getplayerstats with: playerId: tools.playerId outputParameters: - type: object mapping: $. - name: get-team-statistics description: Get Team Statistics hints: readOnly: true destructive: false idempotent: true call: stats-statistics.getteamstats with: teamId: tools.teamId outputParameters: - type: object mapping: $.