Skip to main content
Glama
hkaanengin

opendota-mcp-server

by hkaanengin

get_recent_matches

Retrieve a Dota 2 player's 20 most recent matches with detailed performance statistics, including KDA, farm, damage, and hero picks. Analyze recent performance trends and hero choices.

Instructions

Get a player's 20 most recent Dota 2 matches with performance statistics.

Use this when users ask:

  • "Show me [player]'s recent matches"

  • "What are [player]'s last games?"

  • "How has [player] been performing lately?"

  • "Show me [player]'s match history"

  • "What heroes has [player] been playing?"

  • "How did [player] do in their last game?"

Returns detailed statistics for each match including hero played, KDA, farm efficiency (GPM/XPM), damage dealt, and more. Useful for analyzing recent performance trends and hero picks.

Args: player_name: The Dota 2 player name to search for

Returns: List of 20 most recent matches (sorted newest first), each containing: - match_id (int): Unique match identifier - match_date (str): Date match was played (e.g., "December 09, 2024") - duration (str): Game length in MM:SS format (e.g., "45:23") - game_mode (int): Game mode ID (e.g., 22 for All Pick, 2 for Captain's Mode) - hero_name (str): Hero played (e.g., "Rubick", "Anti-Mage") - match_rank_tier (str): Skill bracket (e.g., "Ancient [5]", "Divine [3]") - kills (int): Number of kills - deaths (int): Number of deaths - assists (int): Number of assists - xp_per_min (int): Experience gained per minute - gold_per_min (int): Gold earned per minute - hero_damage (int): Total damage dealt to enemy heroes - tower_damage (int): Total damage dealt to towers - hero_healing (int): Total healing provided to allies - last_hits (int): Creeps killed (farming stat)

Common queries: - Recent performance: get_recent_matches("kürlo") - Check specific player: get_recent_matches("hotpocalypse")

Example: get_recent_matches("kürlo") -> [ { "match_id": 8123456789, "match_date": "December 09, 2024", "duration": "45:23", "game_mode": 22, "hero_name": "Rubick", "match_rank_tier": "Divine [3]", "kills": 8, "deaths": 5, "assists": 25, "xp_per_min": 425, "gold_per_min": 380, "hero_damage": 15234, "tower_damage": 1250, "hero_healing": 2340, "last_hits": 45 }, ... ]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
player_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It discloses the exact number of matches (20), the sorting order (newest first), and the detailed return fields. It also includes an example output, making the behavior highly predictable. It does not cover edge cases like player-not-found errors, but for a read-only query tool, this is reasonably transparent.

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 the description is long, it is well-structured with clear sections (summary, use cases, returns, args, example). Every sentence provides useful information, and the front-loaded first sentence immediately states the core purpose. The length is justified by the complexity of the return data.

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 highly complete for a tool with one parameter and no annotations. It covers the tool's purpose, when to use it, the full return schema with type descriptions, common query examples, and a worked example. The only missing piece might be error handling, but the provided context is sufficient for an 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?

The input schema only defines player_name as a string with no description, so the description must compensate. It does so thoroughly: the 'Args' section explains player_name is 'The Dota 2 player name to search for,' and the 'Common queries' section provides concrete usage examples with actual player names, adding significant meaning beyond the 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 clearly states the tool retrieves a player's 20 most recent Dota 2 matches with performance statistics, which is a specific verb-resource pairing. It distinguishes itself from siblings by explicitly focusing on 'recent matches' and including performance metrics, while sibling tools like get_match_details or get_player_win_loss serve different purposes.

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

Usage Guidelines4/5

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

The description provides an explicit 'Use this when users ask' section with concrete example queries, which is strong usage guidance. However, it does not mention when NOT to use this tool or explicitly point to alternative sibling tools, so it lacks explicit exclusions.

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