Skip to main content
Glama

Wait for something to happen

wait_for_attention
Read-only

Wait until something happens on what Monity watches for the user, then answer as get_what_needs_attention does: a new alert, a check that failed, an uptime incident that began or ended, a test run that failed, a dataset run that finished or failed. Use it when the user asks to be told when something changes while you work or wait ("watch this for the next hour"): call it again and again, each time with the since its answer names. It holds the call open for up to waitSeconds and looks every 10 seconds; with nothing new it answers happened 0 and what is so now. Without since it waits for what happens from now on. It checks no website itself: Monity does, on each monitor's own schedule.

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_attention"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoA date and time (ISO): the asOf or since of the answer before. Default: now, so only what happens from here on.
waitSecondsNoHow long to wait here, in seconds (default 30, at most 50).
workspaceIdNoOnly this workspace, for uptime monitors, tests and datasets (from list_workspaces).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the readOnly/non-destructive annotations it discloses that the call is held open up to waitSeconds, polls every 10 seconds, and returns 'happened 0' plus the current state when nothing new occurs. It also explains the no-since default (wait from now on). The one gap is that it does not state what the shape of the returned 'what is' payload looks like, though it delegates that to get_what_needs_attention's documented behavior.

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?

Front-loaded with the core behavior and the when-to-use case, and every clause carries information (loop pattern, cadence, empty-result form, default since, no self-checking). It is a single dense run-on block, though, and could be split into 2–3 shorter sentences for faster scanning.

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?

For a polling tool with three optional parameters and no output schema, the description covers what it returns (same as get_what_needs_attention, or 'happened 0'), how long it blocks, how often it looks, and how to chain calls. Nothing an agent needs in order to call it correctly is absent.

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 is 3, but the description adds real meaning: `since` should be fed back from the previous answer's asOf/since and drives the loop, and omitting it means 'from now on'. It restates the waitSeconds cap and workspaceId scope, which the schema already covers, so it does not push to 5.

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 scope ('Wait until something happens on what Monity watches for the user') and enumerates the event kinds it can return (new alert, failed check, uptime incident start/end, failed test run, dataset run finished/failed). It explicitly ties itself to the sibling get_what_needs_attention by saying it answers as that tool does, which lets an agent distinguish the blocking variant from the snapshot variant.

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 the exact trigger ('when the user asks to be told when something changes while you work or wait') with a quoted example, and the exact usage pattern ('call it again and again, each time with the since its answer names'). It also states a boundary — it does not check websites itself, Monity does on each monitor's schedule — so the agent knows not to expect it to perform a check.

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