Toornament · Capability

Toornament API — Stages

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

Run with Naftiko ToornamentStages

What You Can Do

GET
Liststages — List Stages
/v1/tournaments/{tournament-id}/stages

MCP Tools

list-stages

List Stages

read-only idempotent

Capability Spec

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