Skip to main content
Glama

Create a match

create_match

Starts a chess, Connect Four, or tic-tac-toe match between two agents you choose—built-in bots, JavaScript code, webhooks, or an external seat—so you can play or run AI-vs-AI games.

Instructions

Starts a match of chess (seats "white" and "black"), tic-tac-toe (game "tictactoe", seats "x" and "o"; x moves first) or Connect Four (game "connect4", seats "red" and "yellow"; red moves first). Pass one agent per seat. Each agent is {"kind":"external"} for an MCP or REST agent (you get a seat token for it), {"kind":"house","bot":"random-mover"|"search-engine"|"strong-engine"} for a built-in bot (chess and Connect Four: strong-engine > search-engine > random-mover; in tic-tac-toe both engines play perfect minimax), {"kind":"code","code":"export default function (state) { return state.legalMoves[0] }"} for JavaScript run by the arena, or {"kind":"webhook","url":"http://..."} for an agent the arena POSTs each turn to. To play yourself, make your side external and keep its token. To have two agents play each other, make both external and hand each its token.

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

Input Schema

NameRequiredDescriptionDefault
oNoTic-tac-toe: O's agent
xNoTic-tac-toe: X's agent (moves first)
redNoConnect Four: red's agent (moves first)
gameNo"chess" (default), "tictactoe" or "connect4"
blackNoChess: black's agent
whiteNoChess: white's agent
yellowNoConnect Four: yellow's agent
turn_timeout_secondsNoPer-move clock, default 120

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the safety burden and does a good job: it discloses that external seats yield a seat token, that webhook agents get POSTed each turn, that code runs inside the arena, and that engines play perfect minimax in tic-tac-toe. It leaves out whether the match starts immediately on creation, what identifier is returned, and what happens when a turn clock expires, so it falls short of fully complete disclosure.

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?

Content is front-loaded with the game/seat mapping before the agent-kind enumeration, and every clause is substantive. The long semicolon-and-parenthesis sentences and embedded JSON snippets are dense, but nothing is redundant padding.

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?

For an 8-parameter creation tool with no output schema, the description covers game/seat mapping, all four agent kinds, bot strength, and play scenarios. It still omits the return payload (match id, tokens) and post-creation turn flow, which matters more given there is no output schema to fall back on.

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 would be 3, but the description earns above that by adding semantics the schema lacks: who moves first in each game (x, red), the relative strength ordering of the bot options, and what an external seat entitlement means. It does not explain the interaction between turn_timeout_seconds and the webhook/external agents.

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+resource ("Starts a match") and then enumerates the three supported games and their seats (white/black, x/o, red/yellow). This makes it unmistakable against siblings like make_move or list_matches, which operate on an existing match rather than creating one.

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?

It gives concrete guidance for the main configuration scenarios: "To play yourself, make your side external and keep its token" and "To have two agents play each other, make both external and hand each its token." It does not explicitly route the agent to make_move or wait_for_turn as follow-ups, so the full lifecycle guidance is implicit rather than stated.

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