Toornament · Capability
Toornament API — Participants
Toornament API — Participants. 3 operations. Lead operation: List Participants. Self-contained Naftiko capability covering one Toornament business surface.
What You Can Do
GET
Listparticipants
— List Participants
/v1/tournaments/{tournament-id}/participants
POST
Createparticipant
— Create Participant
/v1/tournaments/{tournament-id}/participants
GET
Getparticipant
— Get Participant
/v1/tournaments/{tournament-id}/participants/{id}
MCP Tools
list-participants
List Participants
read-only
idempotent
create-participant
Create Participant
get-participant
Get Participant
read-only
idempotent
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Toornament API — Participants
description: 'Toornament API — Participants. 3 operations. Lead operation: List Participants. Self-contained Naftiko capability
covering one Toornament business surface.'
tags:
- Toornament
- Participants
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
TOORNAMENT_API_KEY: TOORNAMENT_API_KEY
capability:
consumes:
- type: http
namespace: toornament-participants
baseUri: https://api.toornament.com/organizer/v2
description: Toornament API — Participants business capability. Self-contained, no shared references.
resources:
- name: tournaments-tournament_id-participants
path: /tournaments/{tournament_id}/participants
operations:
- name: listparticipants
method: GET
description: List Participants
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: tournament_id
in: path
type: string
description: The tournament identifier.
required: true
- name: X-Api-Key
in: header
type: string
required: true
- name: Authorization
in: header
type: string
required: true
- name: Range
in: header
type: string
- name: createparticipant
method: POST
description: Create Participant
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
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: tournaments-tournament_id-participants-id
path: /tournaments/{tournament_id}/participants/{id}
operations:
- name: getparticipant
method: GET
description: Get Participant
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: tournament_id
in: path
type: string
required: true
- name: 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-participants-rest
port: 8080
description: REST adapter for Toornament API — Participants. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/tournaments/{tournament-id}/participants
name: tournaments-tournament-id-participants
description: REST surface for tournaments-tournament_id-participants.
operations:
- method: GET
name: listparticipants
description: List Participants
call: toornament-participants.listparticipants
with:
tournament_id: rest.tournament_id
X-Api-Key: rest.X-Api-Key
Authorization: rest.Authorization
Range: rest.Range
outputParameters:
- type: object
mapping: $.
- method: POST
name: createparticipant
description: Create Participant
call: toornament-participants.createparticipant
with:
tournament_id: rest.tournament_id
X-Api-Key: rest.X-Api-Key
Authorization: rest.Authorization
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/tournaments/{tournament-id}/participants/{id}
name: tournaments-tournament-id-participants-id
description: REST surface for tournaments-tournament_id-participants-id.
operations:
- method: GET
name: getparticipant
description: Get Participant
call: toornament-participants.getparticipant
with:
tournament_id: rest.tournament_id
id: rest.id
X-Api-Key: rest.X-Api-Key
Authorization: rest.Authorization
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: toornament-participants-mcp
port: 9090
transport: http
description: MCP adapter for Toornament API — Participants. One tool per consumed operation, routed inline through this
capability's consumes block.
tools:
- name: list-participants
description: List Participants
hints:
readOnly: true
destructive: false
idempotent: true
call: toornament-participants.listparticipants
with:
tournament_id: tools.tournament_id
X-Api-Key: tools.X-Api-Key
Authorization: tools.Authorization
Range: tools.Range
outputParameters:
- type: object
mapping: $.
- name: create-participant
description: Create Participant
hints:
readOnly: false
destructive: false
idempotent: false
call: toornament-participants.createparticipant
with:
tournament_id: tools.tournament_id
X-Api-Key: tools.X-Api-Key
Authorization: tools.Authorization
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: get-participant
description: Get Participant
hints:
readOnly: true
destructive: false
idempotent: true
call: toornament-participants.getparticipant
with:
tournament_id: tools.tournament_id
id: tools.id
X-Api-Key: tools.X-Api-Key
Authorization: tools.Authorization
outputParameters:
- type: object
mapping: $.