Skip to main content
Glama

Wait for something to happen

wait_for_event
Read-onlyIdempotent

Waits for selected live Minecraft events and returns the matching event or a timeout, so you can detect player joins, chat, console messages, and other server activity.

Instructions

Wait for a live event and get it, or time out: “tell me when Steve logs in”, “wait for the console to say Done”. Types are WebSocket topics: player.join, player.leave, player.death, player.advancement, player.chat (chat:read), player.whisper, player.command, and server.console (logs:read), player.respawn, player.level_up, player.sleep, player.world_change, player.kill, player.craft, block.break, block.place, world.weather, world.night_skipped, entity.boss_killed, raid.start, raid.finish, server.status, and more.

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": {
      "types": "<types>"
    },
    "name": "wait_for_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
typesYesSuch as ["player.join"]
worldNoOnly this world's
playerNoOnly this player's
timeoutSecondsNoThen answers timedOut. Clients built on the MCP SDK give up at 60

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv5.0.0
    • changedInput schema / properties / player / description
      Previous value: -"Only this player's events"New value: +"Only this player's"
    • changedInput schema / properties / timeoutSeconds / default
      Previous value: -60New value: +50
    • changedInput schema / properties / timeoutSeconds / description
      Previous value: -"Then answers timedOut"New value: +"Then answers timedOut. Clients built on the MCP SDK give up at 60"
    • changedInput schema / properties / world / description
      Previous value: -"Only this world's events"New value: +"Only this world's"
  2. Changed1 schema field changedv4.2.1
    • addedInput schema / properties / timeoutSeconds / description
      Added value: +"Then answers timedOut"
  3. First observedv4.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds real behavior: this call blocks, it terminates on timeout rather than hanging, and several topics require scopes (chat:read, logs:read). It does not describe the shape of the returned event payload, which is the main remaining gap.

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?

Purpose and examples are front-loaded in the first sentence, then the topic vocabulary follows. The topic list is long but earns its place given the absent enum, though trailing off with 'and more' weakens it slightly by indicating the list is not authoritative.

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 a blocking four-parameter tool with no output schema and rich annotations, the definition covers intent, block/timeout semantics, and access scopes. What an agent would still want—what the returned event object contains and whether a timeout is distinguishable from an error—is partly handled by the schema's 'answers timedOut' note rather than the description.

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 baseline would be 3, but the description adds meaning the schema lacks: the `types` array items have no enum in the schema, and the description supplies the actual topic vocabulary along with the permission-scoped ones. The `world`, `player`, and `timeoutSeconds` filters are left entirely to their schema text.

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 ('Wait for a live event and get it, or time out') and grounds it with two concrete user phrasings. The 'live' + timeout framing implicitly separates it from the historical-retrieval sibling get_events without needing to name it.

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 quoted example utterances ('tell me when Steve logs in', 'wait for the console to say Done') give a clear picture of when this tool applies rather than a polling or log-reading tool. It stops short of explicit when-not guidance or naming an alternative for past events, so it lands at 4 rather than 5.

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