Skip to main content
Glama
brotato-controller

brotato-controller

by dzhen1515

wait_for_phase

Read-only

Waits until Brotato reaches a specified game phase, returning reached=False on timeout so agents can synchronize wave or shop decisions without treating delays as errors.

Instructions

Wait until game reaches one of target phases (timeout 1..50s; timeout returns reached=False, not an error).

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

Input Schema

NameRequiredDescriptionDefault
phasesNo
timeout_secNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.5

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare this a safe read (readOnlyHint true, destructiveHint false), and the description adds genuinely useful behavior: it blocks until a target phase, the timeout is bounded to 1..50s, and a timeout returns reached=False rather than raising an error. It does not say what happens if the phase is already current or what else the response contains.

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?

A single tight sentence with the primary action front-loaded and the timeout caveat parenthetically attached; no filler or restatement of the title.

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?

For a blocking wait tool with no output schema, the key fact (timeout is not an error) is present, but the meaning of the primary `phases` argument and the full shape of the result are left to inference. Adequate but with a material gap on the main parameter.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden. It clarifies timeout_sec only partially (range 1..50s, omitting the 25s default) and says nothing about `phases` — not the accepted phase-name strings, nor what the null default means (e.g., wait for any phase change).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and object ("Wait until game reaches one of target phases"), which is clearly distinct from polling siblings like get_game_state. It stops short of naming which sibling to prefer when a non-blocking read is wanted.

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

Usage Guidelines3/5

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

Usage is implied: this is the blocking wait you use when you need the game to advance to a phase before acting. No explicit when-not guidance or alternative (e.g., get_game_state for an immediate snapshot) is offered.

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