Skip to main content
Glama

delete_game

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."),
    };

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