Skip to main content
Glama

Wait for an event

rig.event.wait
Read-onlyIdempotent

Block until an event of the type (and resource, and matching fields) lands after since, or the timeout (1s to 60s, default 30s) passes. Deterministic: the same timeline gives the same answer. A timeout is matched:false with next_since, not an error; wait again from there. Prefer this to polling rig.event.list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesThe event type: email.received, callback.received, callback.forwarded, connector.request.completed, mock.request.received, fault.injected, connector.connected, ...
matchNoTop-level fields of the event's data that must equal these values as JSON, or <field>_contains for a substring: {"subject_contains":"Verify"}, {"status":200}.
sinceNoConsider events after this sequence number only.
run_idYes
timeoutNoHow long to wait, 1s to 60s; default 30s. A timeout is matched:false with next_since, not an error.
resourceNoOnly events of this resource, by name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: blocking semantics, determinism, and the crucial detail that a timeout yields matched:false with next_since rather than an error. Some of this (timeout default/range) duplicates the schema, but the blocking/determinism semantics are unique.

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?

Four sentences, front-loaded with the core behavior, and each sentence earns its place (scoping, determinism, timeout contract, alternative). No filler.

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?

No output schema exists, so the description must carry return-value context; it explains the timeout return shape but not the success return shape. For a 6-param blocking tool, it is otherwise complete.

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

Parameters3/5

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

Schema coverage is already 83%, so the schema documents most parameters. The description implies type/resource/match/since but adds little syntax or format detail beyond what the schema provides; baseline 3 applies.

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 (block/wait) and resource (event) plus the exact scoping conditions (type, resource, matching fields, after `since`). It explicitly distinguishes itself from the sibling by routing away from polling rig.event.list.

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?

Gives explicit when-to-use guidance ('Prefer this to polling rig.event.list') and names the alternative. It also nails the follow-up case: on timeout, wait again from next_since rather than erroring.

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