Deadlock

v0.2.0
io.github.Grinv/deadlock-mcp Checked 1 day ago Published 2 days ago

Deadlock match and player stats from the Deadlock API, game knowledge from the Deadlock Wiki

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ability_order Ability upgrade orders

A hero's most common and best-winning ability upgrade orders.

ParameterTypeDescription
hero *stringThe hero: a name (or a unique part of it) or a hero id.
daysintegerOnly matches of the last this many days.
limitintegerHow many orders per list.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
min_matchesintegerLeave out orders played in fewer matches.
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.

builds Hero builds

Popular in-game builds of a hero, or one build by its id: name, author, the build id to import in game, favorites, items, and matches and win rate with the build selected. `matches` and `win_rate` are null when fewer than 20 matches of the last 30 days had the build selected; they come from replay analysis, which covers part of the matches.

ParameterTypeDescription
hero *stringThe hero: a name (or a unique part of it) or a hero id.
build_idinteger | nullOnly the build with this id, e.g. a player's `hero_build_id` from `match_player`; the answer then lists the build's items. An id the API's build database lacks (often a low one, such as 3 or 27) gives…
languageOnly builds written in this language; all languages when left out.
limitintegerHow many builds to list.
searchstring | nullOnly builds whose name contains this text.

game_lookup Look up a hero, ability or item

Heroes (with their abilities), abilities and shop items by name or id.

ParameterTypeDescription
query *stringPart of a hero, ability or item name (e.g. "arctic", "kelvin"), or an id from match data.

hero_counters Hero counters

The enemy heroes a hero wins most and least against. `win_rate` is the asked-about hero's; `hardest_place` 1 is the enemy it loses to most.

ParameterTypeDescription
hero *stringThe hero: a name (or a unique part of it) or a hero id.
daysintegerOnly matches of the last this many days.
heroesarrayAlso place these heroes among all pairs, e.g. a match's lane opponents for `hero_counters` or the lane partner for `hero_synergies`: names or ids.
limitintegerHow many heroes per list.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
min_matchesintegerLeave out pairs with fewer matches.
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.
same_lanebooleanOnly pairs that shared a lane (lane opponents, lane partners); all matches when false.

hero_items Items on a hero

Which shop items win on a hero, optionally against given enemy heroes. The win rates are raw and favour items bought by players already ahead; `item_timings` adjusts for that. Items bought late also win more often, since only players whose match lasted buy them: compare items of one tier.

ParameterTypeDescription
hero *stringThe hero: a name (or a unique part of it) or a hero id.
daysintegerOnly matches of the last this many days.
enemy_heroesarrayOnly matches against at least one of these heroes (names or ids).
limitintegerHow many items to list.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
min_matchesintegerLeave out items bought in fewer matches.
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.

hero_stats Hero win and pick rates

Win rate, pick rate and matches per hero over all players' matches.

ParameterTypeDescription
daysintegerOnly matches of the last this many days.
limitintegerHow many heroes to list.
max_hero_matchesinteger | nullOnly players with at most this many matches on the hero they played, counted like `min_hero_matches`: 5 shows how heroes do for players new to them. At least `min_hero_matches`.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
min_hero_matchesinteger | nullOnly players with at least this many matches on the hero they played, over their whole history in normal mode (the API refreshes the counts every 30 minutes). With either of these, only those players…
min_matchesintegerLeave out heroes with fewer matches.
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.
sort`win_rate` (default) or `pick_rate`.

hero_synergies Hero synergies

The teammates a hero wins most and least with. `win_rate` is the asked-about hero's; `best_place` 1 is the teammate it wins most with.

ParameterTypeDescription
hero *stringThe hero: a name (or a unique part of it) or a hero id.
daysintegerOnly matches of the last this many days.
heroesarrayAlso place these heroes among all pairs, e.g. a match's lane opponents for `hero_counters` or the lane partner for `hero_synergies`: names or ids.
limitintegerHow many heroes per list.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
min_matchesintegerLeave out pairs with fewer matches.
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.
same_lanebooleanOnly pairs that shared a lane (lane opponents, lane partners); all matches when false.

ingest_status Match ingestion status

Whether the player runs the API's ingest tool, which sends their matches as they play.

ParameterTypeDescription
account_id *integerThe player's account id (Steam32 id), from `player_search`.

item_timings Item timings on a hero

Which shop items win on a hero in each phase of a match (0-9, 9-20, 20-30, 30+ minutes), by win rate adjusted for the buyer's net worth at purchase, next to the raw one. Read `adjusted_win_rate` against the phase's own `win_rate`; late phases hold only the matches that lasted.

ParameterTypeDescription
hero *stringThe hero: a name (or a unique part of it) or a hero id.
daysintegerOnly matches of the last this many days.
limitintegerHow many items to list per phase.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
min_matchesintegerLeave out items bought in a phase in fewer matches. A rarely bought item's rate is noisy: raise this for a steadier list, and say how many matches a rate rests on.
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.

lane_matchups Lane matchups

A lane duo against an enemy duo (or any duo): soul lead with its spread and damage lead at each stats snapshot, and the win rate. Upstream marks the data as subject to change. `soul_lead_spread` is the spread between single lanes (about two thirds lie within it), not the error of the mean; `win_rate` is for the whole match. Snapshots fewer than `min_matches` lanes lasted to are left out; `matches: 0` with no points means too few lanes, not no data.

ParameterTypeDescription
heroes *arrayThe two heroes of the lane duo: names (or unique parts of them) or hero ids.
daysintegerOnly matches of the last this many days.
enemy_heroesarrayThe two heroes they laned against; leave out for the duo against any duo.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
min_matchesintegerAnswer with `matches` 0 and no points when the duos met in fewer lanes, and leave out the late snapshots fewer of them lasted to. Few lanes give a rough mean: say how many the answer rests on.
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.

leaderboard Leaderboard

The top players of a region's ranked leaderboard, optionally for one hero. `possible_account_ids` are matched by name, so not always the player.

ParameterTypeDescription
region *The leaderboard's region.
herostring | nullOne hero's leaderboard: a name (or a unique part of it) or a hero id.
limitintegerHow many players to list from the top.

match_damage Damage in a match

Who damaged a player and whom they damaged, with what, and who finished them: per hero and for the non-heroes together, damage both ways by ability, weapon and item, killing damage and seconds of crowd control received. `killing_damage` is their damage in the ~40 s before each time the player's health reached 0, Rejuvenator revives included. `damage_received` counts heroes only; `non_heroes` holds troopers, neutrals, objectives, the Midboss and summons in one.

ParameterTypeDescription
account_id *integerThe account id (Steam32 id) of a player in that match.
match_id *integerThe match id, e.g. from `player_overview`.
until_minuteinteger | nullCount only up to this minute of game time (15 = the laning phase); the match end when left out. The game samples damage every 3 minutes, so it is rounded down to a sample (14 gives 12:00); the answer'…

match_distance Distances in a match

How close a player stood to each other player: seconds within 10 to 60 m of each hero while both were alive, over a window of the match. The counts are cumulative (`within_20m_s` includes `within_10m_s`) and out of `both_alive_s`; times can be a few seconds off.

ParameterTypeDescription
account_id *integerThe account id (Steam32 id) of a player in that match.
match_id *integerThe match id, e.g. from `player_overview`.
from_minuteintegerThe window's start, in minutes of game time.
until_minuteinteger | nullThe window's end, in minutes of game time (15 = the laning phase); the match end when left out.

match_lanes Match lanes

The three lanes of a match: who laned against whom and the soul lead every 3 minutes up to 15:00. `soul_lead` is the first team's duo minus the second's: positive means the first team in `teams` is ahead.

ParameterTypeDescription
match_id *integerThe match id, e.g. from `player_overview`.

match_player Player in a match

One player's match in depth: result and why, net worth over time, souls by source, unspent souls, deaths with killers, positions and the nearest objective, the build selected, purchases, ability upgrades and permanent buffs. `unspent.rank_in_match` counts leavers, whose souls pile up while away (`leavers_above`). `hero_build_id: null` usually means the API hasn't analysed the match's replay, not that the player had no build: ask. Read assists against `kill_participation`: few assists in a team with few kills is not staying out of fights. `awards` holds only the stats the game picked for this p…

ParameterTypeDescription
account_id *integerThe account id (Steam32 id) of a player in that match.
match_id *integerThe match id, e.g. from `player_overview`.

match_summary Match summary

A match's mode, length, winner, objectives destroyed and Midboss kills, and every player's hero, lane, K/D/A, souls, damage and own result. A team that claims the Midboss's Rejuvenator holds one revive per crystal it claimed for `rejuvenator_s` seconds: a player of it who dies comes back where they died a few seconds later, each at most once, so the team can lose a fight without deaths. `killed_by` or `claimed_by` null means the match doesn't say.

ParameterTypeDescription
match_id *integerThe match id, e.g. from `player_overview`.

patches Patch notes

Patch notes and news: the list, or one patch's notes as text.

ParameterTypeDescription
limitintegerHow many patches to list, newest first.
linkstring | nullA patch's link from the list: returns that patch's notes as text instead of the list.

performance_curve Performance curve

The average player's course of a match: net worth, K/D/A, last hits, damage and souls by source at each stats snapshot (every 3 minutes up to 15:00, then every 5). Values are totals up to each snapshot; times fewer than 5% of the matches reach are left out.

ParameterTypeDescription
daysintegerOnly matches of the last this many days.
herostring | nullOnly matches of this hero: a name (or a unique part of it) or a hero id; all heroes when left out.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.

player_deaths_map Player's death map

Where on the map a player dies and kills most: hotspots in `match_player`'s map coordinates, with the objective nearby.

ParameterTypeDescription
account_id *integerThe player's account id (Steam32 id), from `player_search`.
daysintegerOnly matches of the last this many days.
herostring | nullOnly matches on this hero: a name (or a unique part of it) or a hero id.
limitintegerHow many hotspots per list.

player_enemies Player's opponents

The opponents a player met most and lost to most, with Steam names.

ParameterTypeDescription
account_id *integerThe player's account id (Steam32 id), from `player_search`.
daysinteger | nullOnly matches of the last this many days; all the API has when left out.
limitintegerHow many opponents per list.
min_matchesintegerLeave out opponents met fewer times.

player_heroes Player's heroes

A player's stats per hero: matches, win rate, K/D/A per match, souls and damage per minute. Only the matches the Deadlock API has the full data of, so fewer than `player_overview`.

ParameterTypeDescription
account_id *integerThe player's account id (Steam32 id), from `player_search`.
daysinteger | nullOnly matches of the last this many days; all the API has when left out.
limitintegerHow many heroes to list, most played first.

player_mates Player's teammates

Who a player plays with: matches together and the win rate, with Steam names.

ParameterTypeDescription
account_id *integerThe player's account id (Steam32 id), from `player_search`.
daysinteger | nullOnly matches of the last this many days; all the API has when left out.
limitintegerHow many mates to list.
min_matchesintegerLeave out mates with fewer matches together.
same_partybooleanOnly mates who queued in the same party (friends), not random teammates.

player_overview Player overview

A player's rank, win rate over counted matches, most played heroes and recent matches. `rank: null` means none of the player's recent ranked matches the API holds carries a rank (none sent, or still in placement games): unknown, not unranked.

ParameterTypeDescription
account_id *integerThe player's account id (Steam32 id), from `player_search`.
recentintegerHow many recent matches to list.

stat_percentiles Stat percentiles

Percentiles of per-match player stats (souls per minute, K/D/A, damage, accuracy...), to place one match's numbers among all players' matches. They rank single matches, not players: a player's average spreads much narrower.

ParameterTypeDescription
daysintegerOnly matches of the last this many days.
herostring | nullOnly matches of this hero: a name (or a unique part of it) or a hero id; all heroes when left out.
max_rankstring | nullOnly matches whose average rank is at most this rank: "Ascendant" is up to Ascendant VI.
metricsarrayThe stats to give; when left out, the main ones (net worth per minute, kills, deaths, assists, last hits, hero damage per minute, accuracy).
min_rankstring | nullOnly matches whose players' average rank is at least this rank, named as `player_overview` names it: "Ascendant" (from Ascendant I), "Eternus III"; "Obscurus" is unranked.

wiki_page Read a Deadlock Wiki page

The text of a Deadlock Wiki page, or of one of its sections.

ParameterTypeDescription
title *stringThe exact page title, from `wiki_search`.
sectionstring | nullOne section of the page (its heading); the answer lists the sections.