Skip to main content
Glama

delete_game

Destructive

Permanently delete a game project from The Game Crafter's platform. This action removes all associated data and cannot be undone.

Instructions

Permanently delete a game project. This action cannot be undone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
game_idYesThe game ID to delete. This action is permanent and cannot be undone.

Implementation Reference

  • The handler function that executes the delete_game tool logic by calling the client.
    export function handleDeleteGame(client: TgcClient) {
      return async (args: { game_id: string }): Promise<CallToolResult> => {
        await client.deleteGame(args.game_id);
        return {
          content: [
            {
              type: "text",
              text: `Game ${args.game_id} deleted permanently.`,
            },
  • src/index.ts:154-159 (registration)
    The registration of the delete_game tool within the MCP server setup.
    server.registerTool("delete_game", {
      description:
        "Permanently delete a game project. This action cannot be undone.",
      inputSchema: schemas.deleteGameInput,
      annotations: { readOnlyHint: false, destructiveHint: true },
    }, withErrorHandling(handleDeleteGame(client)));
  • The input schema definition for the delete_game tool, validating the game_id.
    export const deleteGameInput = {
      game_id: safeId.describe("The game ID to delete. This action is permanent and cannot be undone."),
    };
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, indicating a destructive write operation. The description adds valuable context by emphasizing permanence ('permanently delete', 'cannot be undone'), which reinforces the destructive nature beyond what annotations provide. It doesn't mention authentication needs or rate limits, but with annotations covering safety profile, this is acceptable.

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?

The description is extremely concise with two sentences that are front-loaded and waste-free. The first sentence states the core action, and the second provides critical behavioral context. Every word earns its place, making it easy to parse quickly.

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?

Given the tool's complexity (destructive operation with 1 parameter) and rich annotations (destructiveHint=true), the description is mostly complete. It covers the irreversible nature, which is crucial. However, with no output schema, it doesn't describe return values (e.g., success confirmation or error messages), leaving a minor gap in completeness.

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 description coverage is 100%, with the parameter 'game_id' fully documented in the schema. The description doesn't add any parameter-specific information beyond what's in the schema, such as format examples or constraints. Baseline 3 is appropriate when the schema handles parameter documentation effectively.

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 clearly states the specific action ('permanently delete') and target resource ('a game project'), distinguishing it from sibling tools like 'create_game', 'update_game', and 'get_game_details'. It provides a precise verb+resource combination that leaves no ambiguity about the tool's function.

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 description implies usage context through the warning 'This action cannot be undone', suggesting it should be used cautiously. However, it doesn't explicitly state when to use this tool versus alternatives like 'update_game' for modifications or provide prerequisites (e.g., authentication status). The guidance is present but not comprehensive.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alex-gon/thegamecrafter-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server