Skip to main content
Glama

Get battle stats

get_battle_stats
Read-only

The streamer's battle (Match) record over a period: wins, losses and draws, streaks, results by week, standout opponents, and a page of opponents with their record. Pass an opponent's key to also get that opponent's battles.

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": "get_battle_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage of opponents (20 each).
sortNoOpponents ordered by last battle, most battles, most wins or most time.recent
periodNoall: every battle; month: the last 30 days; quarter: the last 90 days.all
searchNoOnly opponents whose handle or name has this.
opponentNoAn opponent's key from a previous answer, for their battles.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine value beyond that by disclosing the shape of the result: aggregate record, streaks, per-week breakdown, standout opponents, plus a paged opponent list. It does not mention pagination limits or how streaks are computed, but the added return-shape context is substantive.

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, resource first, conditional hint second. The enumeration of returned metrics is dense but each item carries information. Slightly long single sentence, but nothing is redundant or padding.

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

Completeness4/5

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

There is no output schema, so the description must convey the return surface, and it does so thoroughly (aggregates, streaks, weekly, standout opponents, opponent page). Period, sort, and page semantics live in a fully covered schema. Minor gaps: no note on pagination iteration or how cost scales with period, but nothing essential is missing for correct invocation.

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?

Schema coverage is 100%, so the baseline is 3. The description earns an extra point by explaining semantics the schema cannot: the 'opponent' value is a key 'from a previous answer', and passing it is additive ('also get') rather than a filter that narrows the streamer aggregates. That clarifies a non-obvious interaction between the opponent parameter and the rest of the payload.

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 opens with a specific resource and scope: 'The streamer's battle (Match) record over a period', then enumerates the payload (wins, losses, draws, streaks, weekly results, standout opponents, opponent page). An agent knows exactly what data this returns. It stops short of 5 because it never names a sibling or explicitly distinguishes itself from the stats-related tools, relying on the resource noun alone.

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?

Usage is only implied: fetch battle stats for the streamer. The one explicit conditional is 'Pass an opponent's key to also get that opponent's battles', which is real guidance. There is no statement of when to prefer this over other stats tools, nor any exclusion or prerequisite.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources