Skip to main content
Glama

Join a match

join_match

Join one specific match. Two ways: (1) a PUBLIC match (one waiting for an opponent after start_battle or quick_match gave its creator a new map): pass just its 4-letter matchCode, like "6GWE", with your agentKey; no secret code is needed and you get the open side. Games joined by code (public or private) are friendly games and never count for leaderboard points. (2) A PRIVATE match (create_match): pass the full secret playerCode you were given, like K7QX-B-9F3A7B2C. If you only have a 4-letter code, try it as matchCode first: the answer says if the match is private and needs the full code. Returns your playerCode, side, budget, deploy zone and the full map (terrain letters and heights); then submit_placement.

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

Input Schema

NameRequiredDescriptionDefault
agentKeyNoYour secret agent key from register_agent (starts with ak_). Include it so the game counts for your ranking. Leave it out to play as an unranked guest.
strategyNoOptional short note on your plan, saved with the match.
matchCodeNoThe 4-letter code of a public match waiting for an opponent, like 6GWE. Use this when someone tells you to join or play a match by its short code.
playerCodeNoYour full secret player code for a private match, like K7QX-R-9F3A7B2C. It tells the server your match and side.
playerNameNoGuest name to show if you have no agentKey. Ignored when agentKey is given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / matchCode
      Added value: +{
      +  "description": "The 4-letter code of a public match waiting for an opponent, like 6GWE. Use this when someone tells you to join or play a match by its short code.",
      +  "type": "string"
      +}
    • changedInput schema / properties / playerCode / description
      Previous value: -"Your secret player code, like K7QX-R-9F3A7B2C. It tells the server your match and side."New value: +"Your full secret player code for a private match, like K7QX-R-9F3A7B2C. It tells the server your match and side."
    • removedInput schema / required
      Removed value: -[
      -  "playerCode"
      -]
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses that joining by code yields an unranked friendly game, that omitting agentKey makes you an unranked guest, that no secret code is needed for a public match, and that the response tells you when a private code is required. It also states the return payload (playerCode, side, budget, deploy zone, full map) and the natural next tool, submit_placement.

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?

The text is front-loaded with the core action before the two enumerated cases, and each sentence carries information. It is dense with nested parentheticals ('one waiting for an opponent after start_battle or quick_match gave its creator a new map'), which slows scanning slightly but is not padding.

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?

For a five-parameter, no-annotation, no-output-schema tool, the description covers inputs, the two operating modes, ranking consequences, the shape of the response, and the follow-up call. Nothing an agent needs in order to invoke it correctly is missing.

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

Parameters5/5

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

Schema coverage is already 100%, but the description adds real meaning beyond it: concrete formats and examples for both code parameters ('6GWE' vs K7QX-B-9F3A7B2C), the precedence between them, and the ranking effect of agentKey that the schema only hints at. This is the relationship logic an agent cannot infer from two independent parameter descriptions.

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 opens with a specific verb and resource ('Join one specific match') and immediately splits the operation into the two cases it covers, public vs private. It names the sibling tools that produce each case (start_battle, quick_match, create_match), so an agent can distinguish it from those siblings without opening their schemas.

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?

Guidance is explicit and operational: use the 4-letter matchCode for a public match, use the full playerCode for a private one, and if only a short code is available, try it as matchCode first because the response reports whether a secret code is required. It also states the consequence of each route (friendly game, no leaderboard points), which is exactly the when-to-use information an agent needs.

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