Skip to main content
Glama

VGC Teambuilder

Plan a six-versus-six matchup

plan_matchup
Read-onlyIdempotent

Plan a matchup between two teams of six: which four to bring, which two to lead, and who handles each of the opponent's threats. The opponent can be given as names alone or as an open team sheet; anything missing comes from usage statistics, and the result lists what was filled in. Every pair is judged with find_counters' verdicts (Counter, Check, Trade, Loses), counting the team's KOs only when they are at least 50% likely and the opponent's from the earliest possible hit unless a likely count can be shown. The bring favours the four that leave none of the opponent's biggest threats unanswered and heavily avoids a four that one opponent can beat three of; Tailwind, Trick Room, Icy Wind, Electroweb, Fake Out and Intimidate earn a small bonus only when they change a Speed order or a verdict. The lead is the pair with the best worst case against all 15 possible opposing leads, since no doubles lead data is published. Exact scoring: Bring: for each opponent, weight = 7 - threat rank (rank by Loses count, then outspeeds count); add weight × best answer (Counter=4, Check=2, otherwise=-6), subtract 30 × (losses-2) when it beats >=3 selected members. Add at most 2 total for beneficial speed control and 1 total for beneficial disruption. Lead: sum over the 2×2 cells [4 × (my likely OHKO - their pessimistic OHKO) + 2 × (my likely 2HKO - their pessimistic 2HKO) + Speed sign (+1/0/-1)], plus at most 1 for conditional Fake Out that improves a verdict. Maximise the minimum over all 15 opponent pairs. Ties use input order. These are single hits, not a battle simulation: partner support beyond those bonuses, move priority, accuracy, switching, screens and stat changes are not counted. It does not check Species or Item Clause; use validate_team for that.

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": {
      "team": "<team>",
      "opponent": "<opponent>"
    },
    "name": "plan_matchup"
  }
}

Input Schema

NameRequiredDescriptionDefault
teamYes
formatNoRegulation id from list_formats. Defaults to "champions-regma" (Pokémon Champions — Regulation M-A).
opponentYes

Output Schema

NameRequiredDescriptionDefault
backYes
leadYes
teamYes
bringYes
formatYesRegulation id the result applies to
matrixYes
threatsYes
opponentYes
formatNameYesDisplay name of the regulation
speedNotesYes
assumptionsYesEverything the calculation assumed, including any part of a set that was filled in because it was not given. Tell the user about these.
alternativesYes

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. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the read-only, idempotent, non-destructive annotations, the description discloses the actual planning logic, data assumptions, and explicit limitations such as ignoring move priority, accuracy, switching, screens, and stat changes. It also clarifies that this is not a battle simulation and that ties use input order, which is valuable behavioral context.

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

Conciseness3/5

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

The description is front-loaded with a clear purpose and organized into behavior, scoring, limitations, and alternatives. But it is very long and includes exact scoring formulas and weights that are more implementation detail than selection guidance, so it is not as concise as it could be.

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?

Given the tool's complexity, annotations, and output schema, the description is largely complete: it explains defaults, verdict sources, limitations, and when to use validate_team instead. The main gap is that it does not mention the format parameter or how regulation selection affects the plan, though the schema covers that field.

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?

The description adds meaning for the opponent parameter by explaining it can be names alone or an open team sheet and that missing details come from usage statistics. However, with schema coverage at 33%, it does not compensate fully: it omits the format parameter and does not describe the team parameter beyond what the nested schema fields already say.

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?

The description states a specific verb and resource: planning a matchup between two teams of six, and it specifies the outputs (which four to bring, which two to lead, and who handles each threat). It distinguishes itself from find_counters and validate_team, so an agent can identify its role without opening the 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?

The description makes clear this is for matchup planning and explicitly routes Species/Item Clause checks to validate_team. It also explains that pair judgments come from find_counters' verdicts, giving useful context. However, it does not provide a full when-to-use/when-not-to-use comparison against all relevant siblings.

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.