Skip to main content
Glama

hltv_get_player_year_stats

Retrieve a Counter-Strike player's yearly HLTV stats—Rating, K/D, ADR, maps played, and performance vs Top 5/10/20 opponents—to compare seasons or review career totals.

Instructions

获取选手逐年 Rating 与详细数据(Rating 3.0/2.0、K/D、ADR、地图数、对 Top5/10/20 对手的 Rating 等)。这是回答「某选手历年数据怎么样」最直接的接口。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hltv_get_player_year_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
yearsNo
to_yearNo
from_yearNo
player_idNo
include_career_totalNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description must carry full behavioral disclosure: it does say what data is returned and that results are year-scoped, which is useful. It omits whether all years or only the selected years are returned, whether include_career_total=true adds an aggregate row by default, whether the tool may error when name is ambiguous, and whether the tool only reads data or makes network calls to HLTV.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the resource and metric list, with no filler. The parenthetical metric enumeration is dense but earns its place by telling the agent what fields come back.

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?

An output schema exists, so return shape needn't be restated, but the definition is still thin for a six-param tool with no annotations. The reader cannot tell how the years list interacts with from_year/to_year, nor how name and player_id resolve, leaving real ambiguity before invocation.

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

Parameters2/5

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

Schema description coverage is 0% across six params, so the description must compensate, and it does not. It never explains that name and player_id are alternatives, that years is an explicit list versus from_year/to_year as a range, or that include_career_total defaults to true and what it adds. This overlapping range/list design is exactly the kind of ambiguity the description should resolve.

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 names a specific verb and resource: it fetches a player's year-by-year Rating and detailed metrics (Rating 3.0/2.0, K/D, ADR, map count, Rating vs Top5/10/20). This makes it clearly distinguishable from siblings such as hltv_get_player_career or hltv_get_player_event_stats, but the description never names any sibling to reinforce the distinction.

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

Usage Guidelines3/5

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

The description does give a use case ('most direct interface for answering how a player's stats have looked over the years'), which establishes intent. However, it never states when to prefer hltv_get_player_career, hltv_get_player_event_stats, or hltv_get_player instead, and it gives no prerequisites for when to use the name parameter or the player_id parameter.

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