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.

Update a leaderboard

update_leaderboard
Destructive

Change the name, type, score order or score mode of a leaderboard; at least one is required. scoreMode cannot change once the leaderboard has a score: a different value is then refused with 409, the same value changes nothing. The tag cannot change, and deleting 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>",
      "leaderboardId": "<leaderboardId>"
    },
    "name": "update_leaderboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoHuman-readable name of the leaderboard, as the console shows it
typeNoWhat a score is: `numeric` for points, `time` for a duration. The ranking direction is `scoreOrder`.
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.
scoreOrderNo`desc` ranks the highest score first, `asc` the lowest — e.g. the fastest time.
applicationIdYesGame id from list_applications
leaderboardIdYesThe leaderboard’s tag — its `id` in list_leaderboards

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.",
      +  "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. Changed4 schema fields changed
    • changedInput schema / properties / leaderboardId / description
      Previous value: -"The leaderboard tag"New value: +"The leaderboard’s tag — its `id` in list_leaderboards"
    • 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."
    • 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
Behavior4/5

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

Beyond the annotations it discloses concrete runtime behavior: a conflicting scoreMode is refused with a 409, an unchanged value is a no-op, and the leaderboard tag is immutable. What it omits matters for a destructiveHint=true tool: it never says what happens to existing scores if 'type' flips between numeric and time after scores exist, even though it carefully explains the equivalent restriction for scoreMode.

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

Conciseness5/5

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

Three sentences, front-loaded with the editable fields, then the hard constraint (scoreMode lock plus 409), then the immutability and no-delete rules. Every clause carries either a capability, a precondition, or a failure mode; nothing is padding.

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 six-parameter mutation tool with no output schema, the definition covers the precondition, the conflict response, and two immutability rules, which is most of what an agent needs. The remaining gap is the 'type' change path after scores exist, which is unaddressed despite being the most likely source of data loss in a destructive operation.

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

Parameters5/5

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

Schema coverage is already 100%, yet the description still adds meaning: it tells the agent that leaderboardId is the immutable tag rather than an editable field, and that at least one of the four optional fields must be supplied. That resolves the main ambiguity an agent would face with a 2-required/4-optional schema.

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?

The description opens with a specific verb and resource ('Change the name, type, score order or score mode of a leaderboard') and enumerates exactly the four mutable fields, which maps one-to-one onto the optional schema properties. It is unambiguously an update operation, so an agent can distinguish it from create_leaderboard or list_leaderboards without opening any schema.

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?

It states a real precondition ('at least one is required') and closes off dead ends by declaring 'The tag cannot change, and deleting is not available', which steers the agent away from attempting a delete or an id rename. It does not explicitly name a sibling for the creation or deletion cases, so the routing guidance is clear but not complete.

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