Create a leaderboard
create_leaderboardAdd a leaderboard to a game. id is its Bridge SDK tag: unique within the game and not changeable later. Check list_leaderboards for tags already taken. Deleting a leaderboard is not available.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"applicationId": "<applicationId>",
"id": "<id>",
"name": "<name>",
"type": "<type>"
},
"name": "create_leaderboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The tag the game passes to the Playgama Bridge SDK, e.g. top_players. Unique within the game | |
| name | Yes | Human-readable name of the leaderboard, as the console shows it | |
| type | Yes | What a score is: `numeric` for points, `time` for a duration. The ranking direction is `scoreOrder`. | |
| decimals | No | Number of decimal places for scores, 0 to 32767. Default 0. Scores are stored as whole numbers — a fractional score the game submits is rounded — so this does not make fractional scores possible. | |
| scoreOrder | No | `desc` ranks the highest score first, `asc` the lowest — e.g. the fastest time. Default desc. | |
| applicationId | Yes | Game id from list_applications |