Skip to main content
Glama
NAJEMWEHBE

unreal-ai-connection

wait_for_events

Poll Unreal Engine repeatedly until matching events arrive or timeout expires, enabling the game thread to stay responsive between polls.

Instructions

Bridge-side composition of poll_events: repeatedly polls UE every poll_interval_ms until matching events arrive or timeout_ms expires. Implemented in the bridge (not as a UE handler) so the wait runs in this Python process -- UE's game thread keeps running between polls and game-thread events (actor_spawned, map_changed, etc.) actually fire during the wait. Same response shape and cursor semantics as poll_events, plus a 'timed_out' field. Default timeout 500ms; hard cap 30000ms (30s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeout_msNoMaximum time to wait in milliseconds. Default 500; hard cap 30000 (over-cap requests are clamped, not rejected).
poll_interval_msNoBridge-side polling cadence in milliseconds. Default 100; min 25; max 1000. Lower values reduce latency at the cost of more frequent UE round-trips.
since_seqNoSame as poll_events: events with seq >= since_seq are returned. Default -1 (from oldest buffered).
max_countNoCap returned events. Default 100; hard max 1000.
event_filterNoSubstring-match filters on event type names; OR-combined.
Behavior5/5

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

No annotations provided, so the description bears full burden. It discloses that the wait runs in bridge, game thread keeps running, same response shape as poll_events with a 'timed_out' field, default timeout, hard cap, and clamping behavior for over-cap requests.

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?

Three sentences: the first front-loads the core purpose, the second adds implementation detail, the third describes response and constraints. No wasted words.

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?

Given five parameters, no output schema, and no annotations, the description is comprehensive: covers purpose, behavior, parameter trade-offs, response shape, and constraints. No obvious gaps for an agent to select and invoke the tool correctly.

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% (baseline 3). The description adds semantic value beyond schema by explaining the trade-off for poll_interval_ms (latency vs. round trips) and reiterates clamping behavior, providing moderate additional guidance.

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 clearly states it is a 'Bridge-side composition of poll_events' that polls until events arrive or timeout, specifying the resource (events) and distinguishing it from poll_events by explaining the wrapper behavior.

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 explains when to use (to wait for events) and contrasts with poll_events, but does not explicitly state when not to use or list alternative tools. The context is sufficient for an agent to decide.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NAJEMWEHBE/unreal-ai-connection'

If you have feedback or need assistance with the MCP directory API, please join our Discord server