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. There is no period to set: Bridge SaaS keeps all-time, daily, weekly and monthly standings of every leaderboard from the same scores, reset at 00:00 UTC (weeks on Monday, months on the 1st). A game reads a daily, weekly or monthly standing with a Playgama Bridge SDK newer than 2.4.4; with 2.4.4 or older it reads the all-time standing only. 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. | |
| scoreMode | No | How a player’s scores count: `best` keeps the best score they submitted; `sum` adds every submitted score to their total, so the game submits what the player just earned (e.g. 120 for +120 XP), not the new total. Daily, weekly and monthly standings follow the mode: the best score of the period, or the points earned in it. Cannot change once the leaderboard has a score. Default best. | |
| 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 |