Skip to main content
Glama

VGC Teambuilder

Calculate damage for one move

calculate_damage
Read-onlyIdempotent

Calculate how much damage one move does from one Pokémon to another in Pokémon Champions doubles: the damage range, the share of the defender's HP, and the chance to knock it out. Use it instead of estimating damage. Any part of a set that is left out is filled in from the regulation's usage statistics and listed under assumptions. A move that hits both opponents is calculated at its reduced doubles damage unless singleTarget is set. This is one calculation, not a battle simulation: it does not account for the rest of the turn, switching or luck beyond the damage roll and critical hits.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "attacker": "<attacker>",
      "defender": "<defender>",
      "move": "<move>"
    },
    "name": "calculate_damage"
  }
}

Input Schema

NameRequiredDescriptionDefault
moveYesMove name, for example "Earthquake"
fieldNoBattle conditions. Leave out for none.
formatNoRegulation id from list_formats. Defaults to "champions-regma" (Pokémon Champions — Regulation M-A).
attackerYesThe Pokémon using the move
defenderYesThe Pokémon being hit

Output Schema

NameRequiredDescriptionDefault
moveYes
damageYes
formatYesRegulation id the result applies to
attackerYes
defenderYes
knockOutNoAbsent when the move deals no damage
conditionsYes
formatNameYesDisplay name of the regulation
assumptionsYesEverything the calculation assumed, including any part of a set that was filled in because it was not given. Tell the user about these.
descriptionYesThe calculation in standard damage-calc notation
noDamageReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / format / description
      Previous value: -"Regulation id from list_formats. Defaults to \"champions-regmc\" (Pokémon Champions — Regulation M-C)."New value: +"Regulation id from list_formats. Defaults to \"champions-regma\" (Pokémon Champions — Regulation M-A)."
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "champions-regma",
      -  "champions-regmb",
      -  "champions-regmc"
      -]New value: +[
      +  "champions-regma",
      +  "champions-regmb",
      +  "champions-regmc",
      +  "champions-regmd"
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description still adds useful behavioral context: omitted set details are backfilled from usage statistics and surfaced under `assumptions`, and spread moves take reduced doubles damage unless `singleTarget` is set. That is real value beyond the annotations, though it doesn't discuss cost, latency, or error modes.

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?

Five sentences, front-loaded with the core purpose and outputs before the defaults behavior, the doubles caveat, and the limitation. Every sentence carries information; the middle two sentences are dense but not padded.

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

Completeness3/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 values need no explanation, and the assumptions behavior is called out. Given the nested attacker/defender objects, regime of defaulting, and the caveat about spread-move damage, the definition is close to complete, but it leaves open how defaults interact with explicitly supplied partial sets (e.g., nature given without statPoints).

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

Parameters3/5

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

Schema description coverage is 100%, so baseline is 3; every field including `singleTarget`, `format`, and `statPoints` is already documented in the schema. The description adds one genuine point of meaning beyond the schema — that missing set data is defaulted and reported back under `assumptions` — but it does not elaborate on parameter interactions or precedence.

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 and resource ('Calculate how much damage one move does from one Pokémon to another') and even enumerates the outputs: damage range, HP share, KO chance. The 'doubles' format scope and the 'one calculation, not a battle simulation' framing distinguish it from any broader matchup tool.

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 an explicit directive ('Use it instead of estimating damage') and an explicit negative boundary ('it does not account for the rest of the turn, switching or luck beyond the damage roll and critical hits'), which tells the agent when this tool is insufficient. It stops short of naming the sibling to use instead for full-turn analysis.

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.