Amazon DeepRacer · Capability

Amazon DeepRacer API — Leaderboards

Amazon DeepRacer API — Leaderboards. 3 operations. Lead operation: List Leaderboards. Self-contained Naftiko capability covering one Amazon Deepracer business surface.

Run with Naftiko Amazon DeepracerLeaderboards

What You Can Do

GET
Listleaderboards — List Leaderboards
/v1/20201101/leaderboards
GET
Getleaderboard — Get Leaderboard
/v1/20201101/leaderboards/{arn}
GET
Listleaderboardsubmissions — List Leaderboard Submissions
/v1/20201101/leaderboards/{arn}/rankings

MCP Tools

list-leaderboards

List Leaderboards

read-only idempotent
get-leaderboard

Get Leaderboard

read-only idempotent
list-leaderboard-submissions

List Leaderboard Submissions

read-only idempotent

Capability Spec

amazon-deepracer-leaderboards.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon DeepRacer API — Leaderboards
  description: 'Amazon DeepRacer API — Leaderboards. 3 operations. Lead operation: List Leaderboards. Self-contained Naftiko
    capability covering one Amazon Deepracer business surface.'
  tags:
  - Amazon Deepracer
  - Leaderboards
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_DEEPRACER_API_KEY: AMAZON_DEEPRACER_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-deepracer-leaderboards
    baseUri: https://deepracer.amazonaws.com
    description: Amazon DeepRacer API — Leaderboards business capability. Self-contained, no shared references.
    resources:
    - name: 20201101-leaderboards
      path: /20201101/leaderboards
      operations:
      - name: listleaderboards
        method: GET
        description: List Leaderboards
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: nextToken
          in: query
          type: string
          description: Pagination token from a previous list response.
        - name: maxResults
          in: query
          type: integer
          description: Maximum number of leaderboards to return.
        - name: status
          in: query
          type: string
          description: Filter leaderboards by status (ACTIVE, EXPIRED).
    - name: 20201101-leaderboards-arn
      path: /20201101/leaderboards/{arn}
      operations:
      - name: getleaderboard
        method: GET
        description: Get Leaderboard
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: arn
          in: path
          type: string
          description: The ARN of the leaderboard.
          required: true
    - name: 20201101-leaderboards-arn-rankings
      path: /20201101/leaderboards/{arn}/rankings
      operations:
      - name: listleaderboardsubmissions
        method: GET
        description: List Leaderboard Submissions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: arn
          in: path
          type: string
          description: The ARN of the leaderboard.
          required: true
        - name: nextToken
          in: query
          type: string
          description: Pagination token from a previous list response.
        - name: maxResults
          in: query
          type: integer
          description: Maximum number of submissions to return.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.AMAZON_DEEPRACER_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: amazon-deepracer-leaderboards-rest
    port: 8080
    description: REST adapter for Amazon DeepRacer API — Leaderboards. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/20201101/leaderboards
      name: 20201101-leaderboards
      description: REST surface for 20201101-leaderboards.
      operations:
      - method: GET
        name: listleaderboards
        description: List Leaderboards
        call: amazon-deepracer-leaderboards.listleaderboards
        with:
          nextToken: rest.nextToken
          maxResults: rest.maxResults
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/20201101/leaderboards/{arn}
      name: 20201101-leaderboards-arn
      description: REST surface for 20201101-leaderboards-arn.
      operations:
      - method: GET
        name: getleaderboard
        description: Get Leaderboard
        call: amazon-deepracer-leaderboards.getleaderboard
        with:
          arn: rest.arn
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/20201101/leaderboards/{arn}/rankings
      name: 20201101-leaderboards-arn-rankings
      description: REST surface for 20201101-leaderboards-arn-rankings.
      operations:
      - method: GET
        name: listleaderboardsubmissions
        description: List Leaderboard Submissions
        call: amazon-deepracer-leaderboards.listleaderboardsubmissions
        with:
          arn: rest.arn
          nextToken: rest.nextToken
          maxResults: rest.maxResults
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-deepracer-leaderboards-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon DeepRacer API — Leaderboards. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-leaderboards
      description: List Leaderboards
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-deepracer-leaderboards.listleaderboards
      with:
        nextToken: tools.nextToken
        maxResults: tools.maxResults
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: get-leaderboard
      description: Get Leaderboard
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-deepracer-leaderboards.getleaderboard
      with:
        arn: tools.arn
      outputParameters:
      - type: object
        mapping: $.
    - name: list-leaderboard-submissions
      description: List Leaderboard Submissions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-deepracer-leaderboards.listleaderboardsubmissions
      with:
        arn: tools.arn
        nextToken: tools.nextToken
        maxResults: tools.maxResults
      outputParameters:
      - type: object
        mapping: $.