OpenF1 · Capability

OpenF1 API — Pit

OpenF1 API — Pit. 1 operations. Lead operation: List pit-lane events. Self-contained Naftiko capability covering one Openf1 business surface.

Run with Naftiko Openf1Pit

What You Can Do

GET
Listpitstops — List pit-lane events
/v1/pit

MCP Tools

list-pit-lane-events

List pit-lane events

read-only idempotent

Capability Spec

openf1-pit.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenF1 API — Pit
  description: 'OpenF1 API — Pit. 1 operations. Lead operation: List pit-lane events. Self-contained Naftiko capability covering
    one Openf1 business surface.'
  tags:
  - Openf1
  - Pit
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENF1_API_KEY: OPENF1_API_KEY
capability:
  consumes:
  - type: http
    namespace: openf1-pit
    baseUri: https://api.openf1.org/v1
    description: OpenF1 API — Pit business capability. Self-contained, no shared references.
    resources:
    - name: pit
      path: /pit
      operations:
      - name: listpitstops
        method: GET
        description: List pit-lane events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: session_key
          in: query
          type: integer
        - name: driver_number
          in: query
          type: integer
  exposes:
  - type: rest
    namespace: openf1-pit-rest
    port: 8080
    description: REST adapter for OpenF1 API — Pit. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/pit
      name: pit
      description: REST surface for pit.
      operations:
      - method: GET
        name: listpitstops
        description: List pit-lane events
        call: openf1-pit.listpitstops
        with:
          session_key: rest.session_key
          driver_number: rest.driver_number
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openf1-pit-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenF1 API — Pit. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-pit-lane-events
      description: List pit-lane events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openf1-pit.listpitstops
      with:
        session_key: tools.session_key
        driver_number: tools.driver_number
      outputParameters:
      - type: object
        mapping: $.