Skip to main content
Glama

Batru — Competitive Game Intelligence for AI Agents

Analyze a game draft visually

analyze_draft
Read-only

Analyze a draft and render an interactive Batru win-rate board.

Use this for visual draft, matchup, win-probability, or next-pick questions
in Dota 2, Deadlock, Marvel Rivals, or League of Legends. It combines the
existing prediction and recommendation tools into one stable structured
result. Clients that support MCP Apps render a compact card; every other
MCP client receives the same data as JSON/text. This tool is read-only.

Dota 2 supports partial drafts and returns a calibrated probability plus
calibrated next-pick win rates. Deadlock, Marvel Rivals and League of
Legends only return a calibrated probability for a complete roster (6v6 for
Deadlock/Marvel, role-ordered 5v5 for LoL); partial drafts still return
counter-pick recommendations labelled as empirical pair-data scores.

Args:
    game: "dota2", "deadlock", "marvel-rivals", or "lol".
    my_heroes: Your team / Team 0 / Blue heroes (0-5 for Dota/LoL, 0-6 otherwise).
    enemy_heroes: Enemy team / Team 1 / Red heroes (0-5 for Dota/LoL, 0-6 otherwise).
    my_side: Dota only — whether your team is Radiant or Dire.

Returns the two rosters, prediction status, calibrated win rates when
available, recommendations, metric labels, `source_url`, and `citation`.

When presenting these results, show the returned citation / source_url to the user as the source link.

Input Schema

NameRequiredDescriptionDefault
gameYesWhich game: "dota2", "deadlock", "marvel-rivals" or "lol" (League of Legends). Required — hero names alone do not identify the game.
contextYesExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."
my_sideNoDota 2 only: the side your team plays, "radiant" or "dire". Ignored for deadlock / marvel-rivals / lol.radiant
my_heroesYesHeroes already on YOUR team, as a list of hero names (any alias or short name; normalised internally). May be empty for a fresh draft. To see every valid hero name for a game, call lookup_hero with an EMPTY query (query="", game=...) — it returns the full roster (displayName + shortName + aliases).
enemy_heroesYesHeroes on the ENEMY team, as a list of hero names (any alias or short name; normalised internally). To see every valid hero name for a game, call lookup_hero with an EMPTY query (query="", game=...) — it returns the full roster (displayName + shortName + aliases).

Output Schema

NameRequiredDescriptionDefault
gameYes
noteYes
errorNo
citationNo
my_labelYes
my_heroesNo
game_labelYes
source_urlNo
enemy_labelYes
did_you_meanNo
enemy_heroesNo
my_win_rate_pctNo
recommendationsNo
prediction_statusYes
enemy_win_rate_pctNo
recommendation_metric_labelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / game / description
      Previous value: -"Which game: \"dota2\", \"deadlock\" or \"marvel-rivals\". Required — hero names alone do not identify the game."New value: +"Which game: \"dota2\", \"deadlock\", \"marvel-rivals\" or \"lol\" (League of Legends). Required — hero names alone do not identify the game."
    • changedInput schema / properties / game / enum
      Previous value: -[
      -  "dota2",
      -  "deadlock",
      -  "marvel-rivals"
      -]New value: +[
      +  "dota2",
      +  "deadlock",
      +  "marvel-rivals",
      +  "lol"
      +]
    • changedInput schema / properties / my_side / description
      Previous value: -"Dota 2 only: the side your team plays, \"radiant\" or \"dire\". Ignored for deadlock / marvel-rivals."New value: +"Dota 2 only: the side your team plays, \"radiant\" or \"dire\". Ignored for deadlock / marvel-rivals / lol."
    • changedOutput schema / properties / game / enum
      Previous value: -[
      -  "dota2",
      -  "deadlock",
      -  "marvel-rivals"
      -]New value: +[
      +  "dota2",
      +  "deadlock",
      +  "marvel-rivals",
      +  "lol"
      +]
  2. Changed4 schema fields changed
    • addedInput schema / properties / enemy_heroes / description
      Added value: +"Heroes on the ENEMY team, as a list of hero names (any alias or short name; normalised internally). To see every valid hero name for a game, call lookup_hero with an EMPTY query (query=\"\", game=...) — it returns the full roster (displayName + shortName + aliases)."
    • addedInput schema / properties / game / description
      Added value: +"Which game: \"dota2\", \"deadlock\" or \"marvel-rivals\". Required — hero names alone do not identify the game."
    • addedInput schema / properties / my_heroes / description
      Added value: +"Heroes already on YOUR team, as a list of hero names (any alias or short name; normalised internally). May be empty for a fresh draft. To see every valid hero name for a game, call lookup_hero with an EMPTY query (query=\"\", game=...) — it returns the full roster (displayName + shortName + aliases)."
    • addedInput schema / properties / my_side / description
      Added value: +"Dota 2 only: the side your team plays, \"radiant\" or \"dire\". Ignored for deadlock / marvel-rivals."
  3. Changed1 schema field changed
    • changedInput schema / properties / context / description
      Previous value: -"Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\""New value: +"Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\""
  4. Added

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing client-dependent rendering (MCP Apps card vs JSON/text fallback), and, importantly, that Dota 2 handles partial drafts with calibrated probabilities plus calibrated next-pick win rates while Deadlock/Marvel/LoL only return a probability for a complete roster and label partial-draft recommendations as empirical pair-data scores. It also specifies a citation/source_url presentation obligation. 'This tool is read-only' merely restates readOnlyHint=true, and nothing is said about rate limits or cost.

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?

Front-loaded: the core purpose and the 'when to use' sentence come first, then regime details, then args. The Args block largely restates schema fields and could be trimmed, but the prose is dense and nearly every sentence carries actionable information.

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?

An output schema exists, so the returns paragraph is redundant but harmless; the essential gaps are covered, including the cross-client rendering difference and the per-game complete-roster constraints that would otherwise cause agents to misread a missing win rate. The only real hole is that the required `context` argument is never mentioned in the description and no alternative-tool routing is given.

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, but the description adds real meaning beyond the schema: hero-count bounds per game (0-5 for Dota/LoL, 0-6 otherwise), that my_heroes may be empty for a fresh draft, and that my_side is Dota-only. It omits the required `context` parameter entirely, leaving that to 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?

States a specific verb+resource (analyze a draft, render a win-rate board) and immediately scopes it to draft, matchup, win-probability and next-pick questions across four named games. It also differentiates itself from siblings by saying it combines the existing prediction and recommendation tools, so an agent can tell it apart from predict_winrate and recommend_pick without opening either schema.

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?

Gives clear usage context ('use this for visual draft, matchup, win-probability, or next-pick questions') and per-game applicability rules. It does not say when to prefer the narrower siblings (predict_winrate, recommend_pick, get_matchup) instead, so the routing decision is only half-specified.

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.