naftiko: 1.0.0-alpha2 info: label: The Odds API — Historical description: 'The Odds API — Historical. 2 operations. Lead operation: Get Historical Sport Events. Self-contained Naftiko capability covering one The Odds Api business surface.' tags: - The Odds Api - Historical created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: THE_ODDS_API_API_KEY: THE_ODDS_API_API_KEY capability: consumes: - type: http namespace: the-odds-historical baseUri: https://api.the-odds-api.com description: The Odds API — Historical business capability. Self-contained, no shared references. resources: - name: v4-historical-sports-sport-events path: /v4/historical/sports/{sport}/events operations: - name: gethistoricalevents method: GET description: Get Historical Sport Events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sport in: path type: string description: Sport key from /v4/sports. required: true - name: apiKey in: query type: string description: Your API key. required: true - name: date in: query type: string description: ISO 8601 timestamp for the historical query. required: true - name: eventIds in: query type: string description: Comma-separated event IDs to filter. - name: commenceTimeFrom in: query type: string description: Filter to events commencing after this datetime. - name: commenceTimeTo in: query type: string description: Filter to events commencing before this datetime. - name: v4-historical-sports-sport-odds path: /v4/historical/sports/{sport}/odds operations: - name: gethistoricalodds method: GET description: Get Historical Sport Odds outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sport in: path type: string description: Sport key from /v4/sports. required: true - name: apiKey in: query type: string description: Your API key. required: true - name: date in: query type: string description: ISO 8601 timestamp for the historical snapshot (e.g., 2023-09-16T12:00:00Z). required: true - name: regions in: query type: string description: Comma-separated regions for bookmakers. required: true - name: markets in: query type: string description: Comma-separated betting markets. - name: oddsFormat in: query type: string description: 'Odds format: decimal or american.' - name: bookmakers in: query type: string description: Comma-separated bookmaker IDs. - name: eventIds in: query type: string description: Comma-separated event IDs to filter. authentication: type: apikey key: apiKey value: '{{env.THE_ODDS_API_API_KEY}}' placement: query exposes: - type: rest namespace: the-odds-historical-rest port: 8080 description: REST adapter for The Odds API — Historical. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v4/historical/sports/{sport}/events name: v4-historical-sports-sport-events description: REST surface for v4-historical-sports-sport-events. operations: - method: GET name: gethistoricalevents description: Get Historical Sport Events call: the-odds-historical.gethistoricalevents with: sport: rest.sport apiKey: rest.apiKey date: rest.date eventIds: rest.eventIds commenceTimeFrom: rest.commenceTimeFrom commenceTimeTo: rest.commenceTimeTo outputParameters: - type: object mapping: $. - path: /v1/v4/historical/sports/{sport}/odds name: v4-historical-sports-sport-odds description: REST surface for v4-historical-sports-sport-odds. operations: - method: GET name: gethistoricalodds description: Get Historical Sport Odds call: the-odds-historical.gethistoricalodds with: sport: rest.sport apiKey: rest.apiKey date: rest.date regions: rest.regions markets: rest.markets oddsFormat: rest.oddsFormat bookmakers: rest.bookmakers eventIds: rest.eventIds outputParameters: - type: object mapping: $. - type: mcp namespace: the-odds-historical-mcp port: 9090 transport: http description: MCP adapter for The Odds API — Historical. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-historical-sport-events description: Get Historical Sport Events hints: readOnly: true destructive: false idempotent: true call: the-odds-historical.gethistoricalevents with: sport: tools.sport apiKey: tools.apiKey date: tools.date eventIds: tools.eventIds commenceTimeFrom: tools.commenceTimeFrom commenceTimeTo: tools.commenceTimeTo outputParameters: - type: object mapping: $. - name: get-historical-sport-odds description: Get Historical Sport Odds hints: readOnly: true destructive: false idempotent: true call: the-odds-historical.gethistoricalodds with: sport: tools.sport apiKey: tools.apiKey date: tools.date regions: tools.regions markets: tools.markets oddsFormat: tools.oddsFormat bookmakers: tools.bookmakers eventIds: tools.eventIds outputParameters: - type: object mapping: $.