Skip to main content
Glama

Run the AI Coach on a replay

analyze_replay

Runs StarCraft2.ai's AI Coach on an uploaded replay to produce a coaching report, waiting up to wait_seconds before returning while the run continues.

Instructions

Run StarCraft2.ai's AI Coach on an uploaded replay. COSTS 1 MINERAL (the site's paid credits) unless the replay already has a report, which is returned free. Refuses to spend unless confirm_spend is true — tell the user the price and their balance and get a yes first. A run takes 3–7 minutes: this waits up to wait_seconds, then returns and the run continues; call get_analysis to collect it. Failed runs are refunded by the site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
replayYesReplay id, short id, slug, or a StarCraft2.ai replay URL.
upgradeNoRe-run an existing report that was made with an older coach version. Free; only works when the report is outdated.
languageNoReport language (default en).
wait_secondsNoMax seconds to wait before returning (default 50).
confirm_spendNoSet to true ONLY after the user has explicitly agreed, in this conversation, to spend 1 mineral on this. Never set it on your own initiative.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses credit cost and units, refusal behavior without confirm_spend, the 3–7 minute runtime, the wait_seconds cap and async continuation, and refunds on failure. Annotations only say non-readonly/non-idempotent; the description supplies the real behavioral contract.

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?

Five dense sentences, zero filler, front-loaded with purpose then cost then consent then timing. Every sentence carries an operational fact an agent needs.

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?

No output schema, but the description closes that gap by telling the agent the run is async and that get_analysis collects the result. Cost, consent, timing, and refund paths are all covered for a 5-parameter paid tool.

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 semantics the schema cannot: confirm_spend is framed as a gated consent flag ('tell the user the price and their balance and get a yes first'), and wait_seconds is contextualized as a bounded wait before the run continues asynchronously.

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: 'Run StarCraft2.ai's AI Coach on an uploaded replay.' This clearly distinguishes it from siblings like upload_replay (ingestion), get_analysis (retrieval), and ask_about_replay (Q&A).

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

Usage Guidelines5/5

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

Explicitly states when the report is returned free (already has a report), when it costs (1 mineral), that confirm_spend must be true with user agreement first, and routes to get_analysis to collect the async result. Alternatives and conditions are all named.

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