Stats Perform · Capability

Stats Perform STATS API — Events

Stats Perform STATS API — Events. 4 operations. Lead operation: Get Event Box Score. Self-contained Naftiko capability covering one Stats Perform business surface.

Run with Naftiko Stats PerformEvents

What You Can Do

GET
Geteventboxscore — Get Event Box Score
/v1/stats/{sport}/{leaguepath}/box/{eventid}
GET
Geteventplaybyplay — Get Event Play-by-Play
/v1/stats/{sport}/{leaguepath}/playbyplay/{eventid}
GET
Listscores — List Scores
/v1/stats/{sport}/{leaguepath}/scores
GET
Geteventscore — Get Event Score
/v1/stats/{sport}/{leaguepath}/scores/{eventid}

MCP Tools

get-event-box-score

Get Event Box Score

read-only idempotent
get-event-play-play

Get Event Play-by-Play

read-only idempotent
list-scores

List Scores

read-only idempotent
get-event-score

Get Event Score

read-only idempotent

Capability Spec

stats-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stats Perform STATS API — Events
  description: 'Stats Perform STATS API — Events. 4 operations. Lead operation: Get Event Box Score. Self-contained Naftiko
    capability covering one Stats Perform business surface.'
  tags:
  - Stats Perform
  - Events
  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-events
    baseUri: https://api.stats.com/v1
    description: Stats Perform STATS API — Events business capability. Self-contained, no shared references.
    resources:
    - name: stats-sport-leaguePath-box-eventId
      path: /stats/{sport}/{leaguePath}/box/{eventId}
      operations:
      - name: geteventboxscore
        method: GET
        description: Get Event Box Score
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: stats-sport-leaguePath-playbyplay-eventId
      path: /stats/{sport}/{leaguePath}/playbyplay/{eventId}
      operations:
      - name: geteventplaybyplay
        method: GET
        description: Get Event Play-by-Play
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: stats-sport-leaguePath-scores
      path: /stats/{sport}/{leaguePath}/scores/
      operations:
      - name: listscores
        method: GET
        description: List Scores
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: date
          in: query
          type: string
          description: Date for which to retrieve scores (YYYYMMDD format).
    - name: stats-sport-leaguePath-scores-eventId
      path: /stats/{sport}/{leaguePath}/scores/{eventId}
      operations:
      - name: geteventscore
        method: GET
        description: Get Event Score
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: api_key
      value: '{{env.STATS_PERFORM_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: stats-events-rest
    port: 8080
    description: REST adapter for Stats Perform STATS API — Events. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/stats/{sport}/{leaguepath}/box/{eventid}
      name: stats-sport-leaguepath-box-eventid
      description: REST surface for stats-sport-leaguePath-box-eventId.
      operations:
      - method: GET
        name: geteventboxscore
        description: Get Event Box Score
        call: stats-events.geteventboxscore
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stats/{sport}/{leaguepath}/playbyplay/{eventid}
      name: stats-sport-leaguepath-playbyplay-eventid
      description: REST surface for stats-sport-leaguePath-playbyplay-eventId.
      operations:
      - method: GET
        name: geteventplaybyplay
        description: Get Event Play-by-Play
        call: stats-events.geteventplaybyplay
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stats/{sport}/{leaguepath}/scores
      name: stats-sport-leaguepath-scores
      description: REST surface for stats-sport-leaguePath-scores.
      operations:
      - method: GET
        name: listscores
        description: List Scores
        call: stats-events.listscores
        with:
          date: rest.date
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stats/{sport}/{leaguepath}/scores/{eventid}
      name: stats-sport-leaguepath-scores-eventid
      description: REST surface for stats-sport-leaguePath-scores-eventId.
      operations:
      - method: GET
        name: geteventscore
        description: Get Event Score
        call: stats-events.geteventscore
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stats-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stats Perform STATS API — Events. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-event-box-score
      description: Get Event Box Score
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stats-events.geteventboxscore
      outputParameters:
      - type: object
        mapping: $.
    - name: get-event-play-play
      description: Get Event Play-by-Play
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stats-events.geteventplaybyplay
      outputParameters:
      - type: object
        mapping: $.
    - name: list-scores
      description: List Scores
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stats-events.listscores
      with:
        date: tools.date
      outputParameters:
      - type: object
        mapping: $.
    - name: get-event-score
      description: Get Event Score
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stats-events.geteventscore
      outputParameters:
      - type: object
        mapping: $.