Skip to main content
Glama

get_player_histogram

Get a distribution of a selected stat across a player's matches. Filter by hero, game mode, patch, or win/loss to analyze performance patterns.

Instructions

Distribution of one stat for a player, e.g. wins per x-value. Common fields: kills, deaths, assists, gold_per_min, xp_per_min, last_hits, hero_damage, duration, lane_role, leaver_status, game_mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
winNo1 = wins only, 0 = losses only.
dateNoOnly matches from the last N days.
sortNoSort results by this field, descending (e.g. 'start_time').
fieldYesStat field to histogram, e.g. 'kills', 'gold_per_min', 'duration'.
limitNoMax results to return.
patchNoPatch id filter (e.g. from get_constants patch).
havingNoMin games played (used by hero-stat tools).
offsetNoSkip this many results (pagination).
regionNoRegion id filter.
hero_idNoOnly matches on this hero id.
game_modeNoGame mode id filter (e.g. 22 = Ranked All Pick).
lane_roleNoLane role: 1=Safe, 2=Mid, 3=Off, 4=Jungle.
account_idYesSteam32 account id (the number after /players/ in an OpenDota profile URL, or from search_players).
is_radiantNo1 = Radiant side only, 0 = Dire only.
lobby_typeNoLobby type id filter (e.g. 7 = Ranked).
significantNo0 (this server's default) includes ALL game modes including Turbo; 1 = only standard/ranked-style modes (OpenDota's own default, which hides Turbo).
with_hero_idNoOnly matches with these heroes on the player's team.
against_hero_idNoOnly matches against these heroes.
excluded_account_idNoExclude matches where these account ids played.
included_account_idNoOnly matches where these account ids played.
Install Server

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden. It explains the histogram concept and common fields but does not disclose behavior such as how bins are computed, what the response contains, whether the 'win' parameter filters results, or any default scoping. The phrase 'wins per x-value' hints at the output but leaves the exact semantics ambiguous.

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?

The description is compact, with a clear purpose statement followed by a succinct list of common field values. It front-loads the concept and uses no unnecessary words; every part contributes directly.

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

Completeness2/5

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

Given 20 parameters, no output schema, and no annotations, the description is far from complete. It lacks any explanation of response structure, pagination, default values, or how filters like 'win', 'significant', or 'date' affect the histogram. An agent invoking this tool would still need to infer much behavior from undocumented conventions.

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

Parameters4/5

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

The input schema already covers all 20 parameters with descriptions (100% coverage), so the baseline is 3. The tool description adds a more comprehensive list of valid values for the required 'field' parameter (kills, deaths, assists, etc.) than the schema's examples, thereby providing practical extra meaning for choosing an appropriate field.

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

Purpose4/5

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

The description clearly identifies the resource (one stat for a player) and the nature of the output (a distribution/histogram), e.g., 'wins per x-value'. However, it lacks an explicit action verb like 'Retrieve' or 'Get', and while it distinguishes from totals/counts by implying distribution, it does not explicitly contrast itself with siblings.

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives such as get_player_totals or get_player_counts. The description does not state conditions, exclusions, or mention any sibling tool, leaving the agent to infer the appropriate context from the tool name and schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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

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