Skip to main content
Glama

import_game

Import a chess game from PGN into Lichess for review, analysis, or account management.

Instructions

Import a game from PGN

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pgn": "<pgn>"
    },
    "name": "import_game"
  }
}

Input Schema

NameRequiredDescriptionDefault
pgnYesPGN of the game

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the write-but-non-destructive profile is covered. The description adds nothing beyond that: it does not say what happens to the imported game, whether duplicates are rejected, or what the caller receives back after a successful import.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single five-word sentence with zero padding and the key information front-loaded. It is efficient, though the terseness leaves no room for the operational context an agent would benefit from.

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?

For a mutation tool with no output schema and no annotations covering side effects, the description should at minimum indicate the post-import result or any constraints. As written it covers only the input format, which the schema already states.

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 a single required 'pgn' field, so the schema already carries the parameter meaning. The description's 'from PGN' merely restates the field name and adds no format or validation detail.

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?

States a specific verb ('Import') and resource ('a game') plus the input format (PGN), so the action is unambiguous. It does not differentiate from siblings such as export_game or get_imported_games, leaving the agent to infer the direction of the operation from the verb alone.

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?

There is no when-to-use guidance, no prerequisite (e.g. authentication or a valid PGN), and no mention of alternatives. The agent must guess the context in which importing is appropriate versus retrieving already-imported games.

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