Mcps
Mcps
Tool
Classify Player Roles
classify_player_rolesClassify each team player's positional role based on where they spent time during the demo: defender / 2nd_defender / middle / 2nd_attacker / attacker (scaled to actual team size). For CTF, provide the 'map' argument so flag positions can be read from the BSP entity lump — this yields an accurate forward axis. Without a map, the tool falls back to ranking players by their centroid distance toward the enemy team spawn cluster. Only the POV player's trace is always complete; other players have sparse traces (see generate_player_heatmap notes). Call open_demo first to get a session_id.
Pricing
Per call
$0.02
Model
time-based
Pay only for what you use. No subscriptions.
Inputs
map
stringnullsession_id *
stringteam
stringnullTry It
API
MCP Config
Input Parameters
Map name or path for flag/spawn positions (same lookup as get_bsp_info). Strongly recommended for CTF — used to establish the forward axis. Omit to fall back to team-spawn centroids.
Analysis session ID (from open_demo)
Team to classify ('red' or 'blue'). Omit to classify both teams.

