Skip to main content
Glama

add_game

Add a new game to the Lutris Linux gaming library by specifying name, runner, and optional details like platform, directory, and executable path.

Instructions

Add a new game to the Lutris library

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesGame name
runnerYesRunner (e.g. linux, wine, steam)
platformNoPlatform
directoryNoInstall directory
executableNoExecutable path
yearNoRelease year
serviceNoService (e.g. steam)
service_idNoService ID
slugNoCustom slug (auto-generated if omitted)
installedNoMark as installed

Implementation Reference

  • The 'add_game' tool implementation, including schema definition and handler logic.
    server.tool(
      "add_game",
      "Add a new game to the Lutris library",
      {
        name: z.string().describe("Game name"),
        runner: z.string().describe("Runner (e.g. linux, wine, steam)"),
        platform: z.string().optional().describe("Platform"),
        directory: z.string().optional().describe("Install directory"),
        executable: z.string().optional().describe("Executable path"),
        year: z.coerce.number().optional().describe("Release year"),
        service: z.string().optional().describe("Service (e.g. steam)"),
        service_id: z.string().optional().describe("Service ID"),
        slug: z.string().optional().describe("Custom slug (auto-generated if omitted)"),
        installed: z.boolean().default(false).describe("Mark as installed"),
      },
      async (params) => {
        try {
          const gameData: Record<string, unknown> = {
            name: params.name,
            runner: params.runner,
            slug: params.slug || generateSlug(params.name),
            installed: params.installed ? 1 : 0,
          };
    
          if (params.platform) gameData.platform = params.platform;
          if (params.directory) gameData.directory = params.directory;
          if (params.executable) gameData.executable = params.executable;
          if (params.year) gameData.year = params.year;
          if (params.service) gameData.service = params.service;
          if (params.service_id) gameData.service_id = params.service_id;
    
          const game = insertGame(gameData);
          return {
            content: [
              {
                type: "text",
                text: JSON.stringify({ message: "Game added successfully", game }, null, 2),
              },
            ],
          };
        } catch (error) {
          return handleError(error);
        }
      }
    );
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It states this is an 'Add' operation, implying mutation/write behavior, but doesn't disclose any other traits: no information about permissions required, whether it's idempotent, what happens on duplicate entries, error conditions, or what the response contains. For a mutation tool with zero annotation coverage, this is a significant gap.

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 states the core purpose without any fluff or redundancy. It's appropriately sized and front-loaded, with every word earning its place. No structural issues or unnecessary elaboration.

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

Completeness2/5

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

Given this is a mutation tool with 10 parameters, no annotations, and no output schema, the description is incomplete. It doesn't address behavioral aspects (permissions, side effects), usage context, or what the tool returns. The agent lacks sufficient information to use this tool effectively beyond basic parameter passing.

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 all 10 parameters thoroughly. The description adds no parameter-specific information beyond what's in the schema (e.g., it doesn't explain relationships between parameters like 'runner' and 'service', or clarify what 'slug' is used for). Baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Add a new game') and target resource ('to the Lutris library'), which is specific and unambiguous. It distinguishes from siblings like 'update_game' or 'remove_game' by indicating creation rather than modification or deletion. However, it doesn't explicitly differentiate from 'search_service_games' which might also involve adding games indirectly.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., whether the game must be installed first), when to use 'update_game' instead for existing games, or how it relates to 'search_service_games' for discovering games. The agent must infer usage from the tool name alone.

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