Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Playgama MCP - Publish & Manage HTML5 Games. If you published it, claim ownership there.

Create a leaderboard

create_leaderboard
Destructive

Add 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

NameRequiredDescriptionDefault
idYesThe tag the game passes to the Playgama Bridge SDK, e.g. top_players. Unique within the game
nameYesHuman-readable name of the leaderboard, as the console shows it
typeYesWhat a score is: `numeric` for points, `time` for a duration. The ranking direction is `scoreOrder`.
decimalsNoNumber 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.
scoreModeNoHow 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.
scoreOrderNo`desc` ranks the highest score first, `asc` the lowest — e.g. the fastest time. Default desc.
applicationIdYesGame id from list_applications

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / scoreMode
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "best",
      +    "sum"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / applicationId / description
      Previous value: -"Application (game) id, as returned by list_applications"New value: +"Game id from list_applications"
  3. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Human-readable name of the leaderboard, as the cabinet shows it"New value: +"Human-readable name of the leaderboard, as the console shows it"
  4. Changed7 schema fields changed
    • addedInput schema / properties / decimals / description
      Added value: +"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."
    • changedInput schema / properties / decimals / maximum
      Previous value: -9007199254740991New value: +32767
    • changedInput schema / properties / decimals / minimum
      Previous value: --9007199254740991New value: +0
    • changedInput schema / properties / id / description
      Previous value: -"Leaderboard tag, e.g. top_players"New value: +"The tag the game passes to the Playgama Bridge SDK, e.g. top_players. Unique within the game"
    • addedInput schema / properties / name / description
      Added value: +"Human-readable name of the leaderboard, as the cabinet shows it"
    • addedInput schema / properties / scoreOrder / description
      Added value: +"`desc` ranks the highest score first, `asc` the lowest — e.g. the fastest time. Default desc."
    • addedInput schema / properties / type / description
      Added value: +"What a score is: `numeric` for points, `time` for a duration. The ranking direction is `scoreOrder`."
  5. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare the write/non-idempotent profile, and the description adds substantial context beyond them: the id tag is immutable after creation, scoreMode cannot change once a leaderboard holds a score, and all-time/daily/weekly/monthly standings are derived from the same scores with resets at 00:00 UTC. This is exactly the kind of irreversibility disclosure an agent needs before a mutating call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action, then constraints, then the SDK compatibility caveat — a sensible order. Some sentences (the reset-schedule and SDK-version passages) are dense, but each carries operational information rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with no output schema and only standard annotations, the description covers immutability, derived standings, and client compatibility well. It does not say what the call returns on success (e.g. the created leaderboard object) or note any auth/ownership requirement on applicationId, which is the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still earns credit by explaining that the tag is not changeable later and by clarifying that there is no period parameter because period standings are derived server-side. It adds semantic framing rather than restating schema text, though it does not touch decimals, scoreOrder, or scoreMode directly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Add a leaderboard to a game') and immediately scopes it by ruling out what it does not do: no period to configure, no deletion path. The 'id' is framed as a Bridge SDK tag, which distinguishes this creation surface from list_leaderboards and update_leaderboard without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit pre-flight step ('Check list_leaderboards for tags already taken') and a clear when-not ('Deleting a leaderboard is not available'), plus a version gate explaining which SDK versions can read non-all-time standings. It does not explicitly route an agent to update_leaderboard for later modification, so the create-vs-update boundary is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources