SportsDataIO · Capability
MLB API — MLB v3 Play-by-Play
MLB API — MLB v3 Play-by-Play. 3 operations. Lead operation: Play By Play [Live & Final]. Self-contained Naftiko capability covering one Sportsdataio business surface.
What You Can Do
GET
Mlbv3pbpplaybyplaylivefinal
— Play By Play [Live & Final]
/v1/v3/mlb/pbp/{format}/playbyplay/{gameid}
GET
Mlbv3pbpplaybyplaydelta
— Play By Play Delta
/v1/v3/mlb/pbp/{format}/playbyplaydelta/{date}/{minutes}
GET
Mlbv3pbpplaybyplayfinal
— Play By Play [Final]
/v1/v3/mlb/pbp/{format}/playbyplayfinal/{gameid}
MCP Tools
play-play-live-final
Play By Play [Live & Final]
read-only
idempotent
play-play-delta
Play By Play Delta
read-only
idempotent
play-play-final
Play By Play [Final]
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: MLB API — MLB v3 Play-by-Play
description: 'MLB API — MLB v3 Play-by-Play. 3 operations. Lead operation: Play By Play [Live & Final]. Self-contained Naftiko
capability covering one Sportsdataio business surface.'
tags:
- Sportsdataio
- MLB v3 Play-by-Play
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
SPORTSDATAIO_API_KEY: SPORTSDATAIO_API_KEY
capability:
consumes:
- type: http
namespace: mlb-mlb-v3-play-by-play
baseUri: https://api.sportsdata.io
description: MLB API — MLB v3 Play-by-Play business capability. Self-contained, no shared references.
resources:
- name: v3-mlb-pbp-format-PlayByPlay-gameid
path: /v3/mlb/pbp/{format}/PlayByPlay/{gameid}
operations:
- name: mlbv3pbpplaybyplaylivefinal
method: GET
description: Play By Play [Live & Final]
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: format
in: path
type: string
description: Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.
required: true
- name: gameid
in: path
type: string
description: The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are <code>14620</code>
or <code>16905</code>
required: true
- name: v3-mlb-pbp-format-PlayByPlayDelta-date-minutes
path: /v3/mlb/pbp/{format}/PlayByPlayDelta/{date}/{minutes}
operations:
- name: mlbv3pbpplaybyplaydelta
method: GET
description: Play By Play Delta
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: format
in: path
type: string
description: Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.
required: true
- name: date
in: path
type: string
description: The date of the game(s).
required: true
- name: minutes
in: path
type: string
description: 'Only returns plays that have changed in the last X minutes. You specify how many minutes in time
to go back. Valid entries are:'
required: true
- name: v3-mlb-pbp-format-PlayByPlayFinal-gameid
path: /v3/mlb/pbp/{format}/PlayByPlayFinal/{gameid}
operations:
- name: mlbv3pbpplaybyplayfinal
method: GET
description: Play By Play [Final]
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: format
in: path
type: string
description: Desired response format. Valid entries are <code>JSON</code> or <code>XML</code>.
required: true
- name: gameid
in: path
type: string
description: The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are <code>14620</code>
or <code>16905</code>
required: true
authentication:
type: apikey
key: Ocp-Apim-Subscription-Key
value: '{{env.SPORTSDATAIO_API_KEY}}'
placement: header
exposes:
- type: rest
namespace: mlb-mlb-v3-play-by-play-rest
port: 8080
description: REST adapter for MLB API — MLB v3 Play-by-Play. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/v3/mlb/pbp/{format}/playbyplay/{gameid}
name: v3-mlb-pbp-format-playbyplay-gameid
description: REST surface for v3-mlb-pbp-format-PlayByPlay-gameid.
operations:
- method: GET
name: mlbv3pbpplaybyplaylivefinal
description: Play By Play [Live & Final]
call: mlb-mlb-v3-play-by-play.mlbv3pbpplaybyplaylivefinal
with:
format: rest.format
gameid: rest.gameid
outputParameters:
- type: object
mapping: $.
- path: /v1/v3/mlb/pbp/{format}/playbyplaydelta/{date}/{minutes}
name: v3-mlb-pbp-format-playbyplaydelta-date-minutes
description: REST surface for v3-mlb-pbp-format-PlayByPlayDelta-date-minutes.
operations:
- method: GET
name: mlbv3pbpplaybyplaydelta
description: Play By Play Delta
call: mlb-mlb-v3-play-by-play.mlbv3pbpplaybyplaydelta
with:
format: rest.format
date: rest.date
minutes: rest.minutes
outputParameters:
- type: object
mapping: $.
- path: /v1/v3/mlb/pbp/{format}/playbyplayfinal/{gameid}
name: v3-mlb-pbp-format-playbyplayfinal-gameid
description: REST surface for v3-mlb-pbp-format-PlayByPlayFinal-gameid.
operations:
- method: GET
name: mlbv3pbpplaybyplayfinal
description: Play By Play [Final]
call: mlb-mlb-v3-play-by-play.mlbv3pbpplaybyplayfinal
with:
format: rest.format
gameid: rest.gameid
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: mlb-mlb-v3-play-by-play-mcp
port: 9090
transport: http
description: MCP adapter for MLB API — MLB v3 Play-by-Play. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: play-play-live-final
description: Play By Play [Live & Final]
hints:
readOnly: true
destructive: false
idempotent: true
call: mlb-mlb-v3-play-by-play.mlbv3pbpplaybyplaylivefinal
with:
format: tools.format
gameid: tools.gameid
outputParameters:
- type: object
mapping: $.
- name: play-play-delta
description: Play By Play Delta
hints:
readOnly: true
destructive: false
idempotent: true
call: mlb-mlb-v3-play-by-play.mlbv3pbpplaybyplaydelta
with:
format: tools.format
date: tools.date
minutes: tools.minutes
outputParameters:
- type: object
mapping: $.
- name: play-play-final
description: Play By Play [Final]
hints:
readOnly: true
destructive: false
idempotent: true
call: mlb-mlb-v3-play-by-play.mlbv3pbpplaybyplayfinal
with:
format: tools.format
gameid: tools.gameid
outputParameters:
- type: object
mapping: $.