Skip to main content
Glama
hkaanengin

opendota-mcp-server

by hkaanengin

get_player_win_loss

Retrieve a Dota 2 player's win/loss record with filters for hero, lane, teammates, and opponents. Get precise win and loss counts for any query.

Instructions

Get simple win/loss counts for a player with optional filters.

Use this when users ask about WIN RATES or WIN/LOSS RECORDS:

  • "What's [player]'s win rate?"

  • "How many games has [player] won?"

  • "What's [player]'s win rate with Rubick?"

  • "How does [player] perform in mid lane?"

  • "What's [player]'s win rate when playing with [teammate]?"

  • "How does [player] do against Pudge?"

Returns ONLY win and loss counts. For detailed hero statistics with dates and performance metrics, use get_heroes_played() instead. For aggregate statistics like GPM/XPM/KDA, use get_player_totals() instead.

Supports both IDs and natural language for flexible querying.

Args: player_name: The Dota 2 player name to search for limit: Number of matches to limit analysis to offset: Skip first N matches (for pagination) lane_role: Lane filter. Accepts: - Integer: 1 (Safe), 2 (Mid), 3 (Off), 4 (Jungle) - String: "mid", "safe lane", "offlane", "jungle", "carry", "pos 1", etc. hero_id: Hero filter. Accepts: - Integer: Hero ID (e.g., 86 for Rubick) - String: Hero name (e.g., "Rubick", "Anti-Mage") included_account_id: Filter by teammate. Accepts: - String: Player name (e.g., "hotpocalypse") - List[String]: Multiple player names (games with ANY of these players) excluded_account_id: Exclude matches with these players (accepts names or IDs) with_hero_id: Require these heroes on player's team (accepts IDs or names) against_hero_id: Require these heroes on enemy team. Accepts: - Integer/String: Single hero ID or name - List: Multiple hero IDs or names

Returns: Dictionary with exactly two fields: - win (int): Number of wins matching the filters - lose (int): Number of losses matching the filters

Common queries: - Overall record: get_player_win_loss("kürlo") - Hero-specific: get_player_win_loss("kürlo", hero_id="Rubick") - Lane-specific: get_player_win_loss("kürlo", lane_role="mid") - With teammate: get_player_win_loss("kürlo", included_account_id="hotpocalypse") - Vs counter: get_player_win_loss("kürlo", hero_id="Rubick", against_hero_id="Pudge")

Example: get_player_win_loss("kürlo", lane_role="mid", hero_id="Rubick") -> {"win": 42, "lose": 38}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
offsetNo
hero_idNo
lane_roleNo
player_nameYes
with_hero_idNo
against_hero_idNo
excluded_account_idNo
included_account_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden, and it does well: it states the return format ('Dictionary with exactly two fields: win and lose'), mentions it returns ONLY win/loss counts, and notes support for both IDs and natural language. It could add edge-case behavior (e.g., no matches found, invalid hero name), but it is already highly transparent for a read-only query tool.

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?

Though lengthy, the description is well-structured with clear sections: purpose, when-to-use, parameter details, return values, and examples. Every paragraph earns its place; the length is justified by the tool's nine flexible parameters and the need to distinguish between similar sibling tools. It is front-loaded with the core purpose.

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

Completeness5/5

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

The description covers all nine parameters, return format, common usage scenarios, and explicit alternatives. It is complete enough for an agent to select and invoke the tool correctly without needing external documentation. The output schema is simple, and the description fully complements it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has no parameter descriptions, but the description thoroughly explains every parameter, including accepted types and values (e.g., lane_role integer-to-string mapping, hero_id integer or name, included_account_id as string or list). It also provides common query examples for each meaningful filter, fully compensating for the 0% schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Get simple win/loss counts for a player with optional filters.' It explicitly distinguishes itself from sibling tools like get_heroes_played and get_player_totals, and the tool name itself is clear. The purpose is unambiguous and well-differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use the tool ('Use this when users ask about WIN RATES or WIN/LOSS RECORDS') and provides concrete example queries. It also names alternatives ('use get_heroes_played() instead', 'use get_player_totals() instead'), making the decision boundary crystal clear.

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/hkaanengin/opendota-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server