Skip to main content
Glama
grammy-mcp
by louietyj

setGameScore

Destructive

Update a user's score in a Telegram game message; use force to allow lower scores for fixing mistakes or banning cheaters.

Instructions

Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.

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": {
      "chat_id": "<chat_id>",
      "message_id": "<message_id>",
      "user_id": "<user_id>",
      "score": "<score>"
    },
    "name": "setGameScore"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoPass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters.
scoreYesNew score, must be non-negative
chat_idYesUnique identifier for the target chat
user_idYesUser identifier
message_idYesIdentifier of the sent message
disable_edit_messageNoPass True if the game message should not be automatically edited to include the current scoreboard

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the mutation profile is covered. The description adds real value beyond them by disclosing the conditional return type (Message vs True) and the specific failure mode when the new score is not greater and force is False. It omits the side effect implied by disable_edit_message, which keeps it from a 5.

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?

Three tight sentences with the primary action front-loaded and return/error behavior following logically. No filler, though the inline-message clause is embedded in a way that makes it read as return-value detail rather than tool-selection guidance.

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?

There is no output schema, but the description explicitly covers both possible return values, so an agent knows what to expect. With all six parameters schema-documented and annotations covering the safety profile, the remaining gap is only the missing pointer to the inline sibling.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter including force and disable_edit_message is already documented in the schema. The description only reinforces the force/error interaction, adding little syntax or format detail beyond what the schema provides, which is the expected baseline.

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

Purpose4/5

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

States a specific verb and resource: 'set the score of the specified user in a game message'. It also implicitly distinguishes itself from the inline variant by describing what happens 'if the message is not an inline message', though it never names setGameScoreInline as the alternative.

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

Usage Guidelines3/5

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

The error condition ties usage to the force parameter, which tells the agent when a plain call will fail. However, there is no explicit guidance on when to pick this tool versus setGameScoreInline or getGameHighScores, so the agent must infer the split from the return-value sentence.

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

Deploy Server

Other Tools