Toornament · Capability

Toornament API — Rankings

Toornament API — Rankings. 1 operations. Lead operation: List Ranking Items. Self-contained Naftiko capability covering one Toornament business surface.

Run with Naftiko ToornamentRankings

What You Can Do

GET
Listrankingitems — List Ranking Items
/v1/tournaments/{tournament-id}/stages/{stage-id}/ranking-items

MCP Tools

list-ranking-items

List Ranking Items

read-only idempotent

Capability Spec

toornament-rankings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Toornament API — Rankings
  description: 'Toornament API — Rankings. 1 operations. Lead operation: List Ranking Items. Self-contained Naftiko capability
    covering one Toornament business surface.'
  tags:
  - Toornament
  - Rankings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TOORNAMENT_API_KEY: TOORNAMENT_API_KEY
capability:
  consumes:
  - type: http
    namespace: toornament-rankings
    baseUri: https://api.toornament.com/organizer/v2
    description: Toornament API — Rankings business capability. Self-contained, no shared references.
    resources:
    - name: tournaments-tournament_id-stages-stage_id-ranking-items
      path: /tournaments/{tournament_id}/stages/{stage_id}/ranking-items
      operations:
      - name: listrankingitems
        method: GET
        description: List Ranking Items
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tournament_id
          in: path
          type: string
          required: true
        - name: stage_id
          in: path
          type: string
          required: true
        - name: X-Api-Key
          in: header
          type: string
          required: true
        - name: Authorization
          in: header
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.TOORNAMENT_API_KEY}}'
  exposes:
  - type: rest
    namespace: toornament-rankings-rest
    port: 8080
    description: REST adapter for Toornament API — Rankings. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/tournaments/{tournament-id}/stages/{stage-id}/ranking-items
      name: tournaments-tournament-id-stages-stage-id-ranking-items
      description: REST surface for tournaments-tournament_id-stages-stage_id-ranking-items.
      operations:
      - method: GET
        name: listrankingitems
        description: List Ranking Items
        call: toornament-rankings.listrankingitems
        with:
          tournament_id: rest.tournament_id
          stage_id: rest.stage_id
          X-Api-Key: rest.X-Api-Key
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: toornament-rankings-mcp
    port: 9090
    transport: http
    description: MCP adapter for Toornament API — Rankings. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-ranking-items
      description: List Ranking Items
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: toornament-rankings.listrankingitems
      with:
        tournament_id: tools.tournament_id
        stage_id: tools.stage_id
        X-Api-Key: tools.X-Api-Key
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.