Home · Agents · Blueprints · Chess coach agent

AI agent that prepares a chess coach before a lesson

The job

A good lesson starts with knowing where the student is strong this month. Given usernames on Chess.com and Lichess, this agent gathers ratings by time control and recent activity, and suggests which kind of game to review first, leaving the teaching to the coach.

Run it the evening before each lesson and keep the results to see progress.

Tool calls, in order

1. POST /v1/gaming/chess/player

Per time control records show current and best rating with wins, losses and draws.

What to read in the answer. A large gap between current and best rating in one time control is a place to look. Check the last game date so old ratings do not drive the plan. Best game links are ready lesson material.

curl -X POST https://api.foxapis.com/v1/gaming/chess/player \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"username":"hikaru"}'
A real answer (saved 2026-11-22)
{
 "username": "hikaru",
 "title": "GM",
 "bullet": {
  "current_rating": 3394,
  "best_rating": 3570,
  "best_game_url": "https://www.chess.com/game/live/5710095242",
  "wins": 17389,
  "losses": 2576,
  "draws": 1202,
  "total_games": 21167,
  "last_game_date": "2026-11-21"
 },
 "blitz": {
  "current_rating": 3449,
  "best_rating": 3503,
  "best_game_url": "https://www.chess.com/game/live/184580310677",
  "wins": 36268,
  "losses": 5575,
  "draws": 4398,
  "total_games": 46241,
  "last_game_date": "2026-11-21"
 },
 "rapid": {
  "current_rating": 2838,
  "best_rating": 2927,
  "best_game_url": "https://www.chess.com/game/live/141332265952",
  "wins": 205,
  "losses": 69,
  "draws": 220,
  "total_games": 494,
  "last_game_date": "2026-08-15"
 },
 "tactics_rating": 2730,
 "last_online": "2026-11-21"
}

2. POST /v1/gaming/lichess/player

Many students play on both sites, with different habits on each.

What to read in the answer. A provisional rating means too few recent games to trust it, and a rating of 2500 with no games is a starting value, not a result. The progress figure shows recent direction.

curl -X POST https://api.foxapis.com/v1/gaming/lichess/player \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"username":"DrNykterstein"}'
A real answer (saved 2026-11-22)
{
 "username": "DrNykterstein",
 "title": "GM",
 "bullet": {
  "rating": 3263,
  "games": 9585,
  "progress": 23,
  "provisional": false
 },
 "blitz": {
  "rating": 3194,
  "games": 609,
  "progress": 70,
  "provisional": true
 },
 "rapid": {
  "rating": 2500,
  "games": 0,
  "progress": 0,
  "provisional": true
 },
 "total_games": 10455,
 "play_time_hours": 325.1,
 "last_seen_date": "2026-11-15"
}

Instruction to paste into your agent

You prepare a chess coach for a lesson. Fetch both profiles. For each site list bullet, blitz and rapid ratings with games played, marking provisional ones. Name one time control to review, with the reason from the numbers, and link a best game if one is returned. Compare with last week's figures when you have them. Do not diagnose playing style.

Rules the agent should follow

What the agent hands back

A brief with each site's ratings by time control and games played, provisional ones marked, one suggested time control to review with the numbers behind it, and a best game link where the answer has one.

What a person still does

The coach opens recent games, finds the actual patterns in openings, time use and endgames, asks the student what they want to improve, and plans the lesson. The numbers only decide where to look first.

Limits

Cost of one run

Total for one pass, taking one record or lookup from each call above, in credits: 10. Repeating a call costs it again. What a credit costs · Get a free key

MCP setup

The live MCP server offers chess_player, lichess_player. Add this to your MCP client's settings (Cursor reads .cursor/mcp.json; other clients use slightly different files), with your own key in place of YOUR_KEY.

{
  "mcpServers": {
    "foxapis-data": {
      "url": "https://foxapis.com/mcp/data",
      "headers": {
        "Authorization": "Bearer YOUR_KEY"
      }
    }
  }
}

Function definitions (plain JSON)

Each entry names the function, its arguments and the HTTP request it stands for. Your code sends the request with the header Authorization: Bearer YOUR_KEY and returns the JSON to the agent.

[
  {
    "name": "chess_player",
    "description": "Per time control records show current and best rating with wins, losses and draws.",
    "parameters": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string"
        }
      },
      "required": [
        "username"
      ]
    },
    "http": {
      "method": "POST",
      "url": "https://api.foxapis.com/v1/gaming/chess/player"
    }
  },
  {
    "name": "lichess_player",
    "description": "Many students play on both sites, with different habits on each.",
    "parameters": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string"
        }
      },
      "required": [
        "username"
      ]
    },
    "http": {
      "method": "POST",
      "url": "https://api.foxapis.com/v1/gaming/lichess/player"
    }
  }
]

Pages for these calls

More blueprints

Check a UK supplier · Triage posts for buying intent · Confirm a work address · Contractor check agent · all of them