Skip to main content
Glama
hkaanengin

opendota-mcp-server

by hkaanengin

get_player_histograms

Analyze a player's performance ranges by viewing the frequency distribution of stats like kills, GPM, or last hits to measure consistency and typical values.

Instructions

Get the DISTRIBUTION of a specific statistic across matches (performance consistency analysis).

Use this when users ask about PERFORMANCE RANGES or CONSISTENCY:

  • "How often does [player] get 10+ kills?"

  • "What's [player]'s typical GPM range?"

  • "How consistent is [player]'s farming?"

  • "Show me [player]'s kill distribution"

  • "What GPM does [player] usually achieve?"

  • "How often does [player] get a rampage (5+ kills)?"

This shows HOW OFTEN different values occur (e.g., "30 games with 5-6 kills, 20 games with 7-8 kills").

DO NOT use this for simple averages - use get_player_totals() instead. DO NOT use this for win/loss counts - use get_player_win_loss() instead.

Supports both IDs and natural language for flexible querying.

Args: player_name: The Dota 2 player name to search for field: Statistical field to analyze. Accepts variations like: - "kills", "deaths", "assists" - "gpm" or "gold_per_min" or "gold per min" - "xpm" or "xp_per_min" - "cs" or "last_hits" - "damage" or "hero_damage" - "healing" or "hero_healing" - "duration" - "comeback", "stomp", "loss" limit: Number of matches to analyze (default: all available) offset: Skip first N matches (for pagination) lane_role: Filter by lane (accepts "mid", "carry", "pos 1-4", etc.) hero_id: Filter to specific hero (accepts name or ID) included_account_id: Only matches with these teammates (accepts names or IDs) 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 IDs or names) having: Minimum games played threshold

Returns: List of histogram buckets showing frequency distribution, each containing: - count (int): The value or range (e.g., 10 for "10 kills") - games_played (int): Number of games with this value - win (int): Games won at this performance level - win_rate (str): Win rate at this value (0.0 to 1.0)

The buckets are typically in ranges (e.g., 0-1, 1-2, 2-3 kills) or exact values depending on the field. Higher performance levels often correlate with higher win rates.

Common queries: - Kill distribution: get_player_histograms("kürlo", field="kills") - GPM consistency: get_player_histograms("kürlo", field="gpm") - Hero-specific: get_player_histograms("kürlo", field="last_hits", hero_id="Anti-Mage")

Example: get_player_histograms("kürlo", field="kills", hero_id="Rubick") -> [ {"count": 0, "games_played": 2, "win": 0, "win_rate": 0.0}, {"count": 1, "games_played": 5, "win": 1, "win_rate": 0.2}, {"count": 2, "games_played": 8, "win": 3, "win_rate": 0.375}, {"count": 3, "games_played": 12, "win": 7, "win_rate": 0.583}, {"count": 4, "games_played": 15, "win": 10, "win_rate": 0.667}, {"count": 5, "games_played": 20, "win": 16, "win_rate": 0.8}, ... ]

This tells you: player had 20 games with 5 kills, winning 16 of them (80% win rate at that performance level).

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully carries the behavioral transparency burden. It explains what the tool returns (histogram buckets), how values are grouped (ranges or exact values), the inclusion of win_rate, and nuances like 'Higher performance levels often correlate with higher win rates.' It also mentions flexible querying ('Supports both IDs and natural language'), pagination via offset, and the having threshold.

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?

Although long, the description is well-structured with clear sections: purpose, usage, exclusions, arguments, return values, and examples. Every section earns its place given 11 parameters and a nuanced output format. The example output is illustrative and not fluff.

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 is complete for a complex tool: it covers all 11 parameters, explains the return value semantics despite having an output schema, and provides concrete examples. It leaves no obvious gaps for the agent to select and invoke the tool correctly.

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?

Schema description coverage is 0%, but the description's Args section compensates fully. It explains every parameter, gives alternative names for fields (e.g., 'gpm' or 'gold_per_min'), and clarifies that hero/account parameters accept both IDs and names. This goes far beyond the bare schema.

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+resource: 'Get the DISTRIBUTION of a specific statistic across matches (performance consistency analysis).' It clearly distinguishes itself from siblings like get_player_totals and get_player_win_loss by focusing on distributions, ranges, and consistency.

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?

Provides explicit when-to-use criteria with real user queries (e.g., 'How often does [player] get 10+ kills?') and explicit when-not-to-use instructions with named alternatives ('use get_player_totals() instead', 'use get_player_win_loss() instead'). This is model-level guidance.

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