Skip to main content
Glama

remove_game

Remove a game from the Lutris database to clean up your library without deleting game files. Use this tool to manage your game collection by removing entries you no longer need.

Instructions

Remove a game from the Lutris database (does not delete files)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesGame ID to remove
confirmYesMust be true to confirm deletion

Implementation Reference

  • The implementation of the 'remove_game' tool. It validates the 'confirm' parameter, checks if the game exists, and calls 'deleteGame' to remove it from the database.
    server.tool(
      "remove_game",
      "Remove a game from the Lutris database (does not delete files)",
      {
        id: z.coerce.number().describe("Game ID to remove"),
        confirm: z.boolean().describe("Must be true to confirm deletion"),
      },
      async (params) => {
        try {
          if (!params.confirm) {
            return {
              content: [
                { type: "text", text: "Set confirm to true to delete the game." },
              ],
              isError: true,
            };
          }
    
          const game = getGameById(params.id);
          if (!game) {
            return {
              content: [{ type: "text", text: `Game with id ${params.id} not found.` }],
              isError: true,
            };
          }
    
          deleteGame(params.id);
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify(
                  { message: `Removed "${game.name}" (id: ${game.id}) from library.` },
                  null,
                  2
                ),
              },
            ],
          };
        } catch (error) {
          return handleError(error);
        }
      }
    );
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool removes from the database but not files, which is useful context. However, it lacks details on permissions, reversibility, or response behavior, leaving gaps for a mutation tool.

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 a single, efficient sentence that front-loads the core action and clarifies a key limitation. There is no wasted text, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description is minimal but covers the basic purpose and a critical behavioral note (no file deletion). However, it lacks details on prerequisites, effects, or error handling, making it incomplete for safe agent use.

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%, so the schema already documents both parameters ('id' and 'confirm'). The description doesn't add any parameter-specific details beyond what the schema provides, such as format or constraints, meeting the baseline for high coverage.

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?

The description clearly states the action ('Remove') and resource ('game from the Lutris database'), and distinguishes it from file deletion. However, it doesn't explicitly differentiate from sibling tools like 'unassign_category' or 'update_game' which might also modify game records, so it doesn't reach the highest score.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like 'unassign_category' or 'update_game' for modifying game records. The description mentions it doesn't delete files, but this is more about behavioral transparency than usage context.

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/Praeses0/lutris-mcp'

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