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
| Name | Required | Description | Default |
|---|---|---|---|
| game_id | Yes | The game ID to delete. This action is permanent and cannot be undone. |
Implementation Reference
- src/tools/games.ts:80-88 (handler)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))); - src/schemas/tool-inputs.ts:144-146 (schema)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."), };