Skip to main content
Glama

pir_wait_for_stillness

Waits for a screen region to remain still for a set time, or times out—use to confirm animations settled or detect frozen UI.

Instructions

Block until consecutive samples have stayed below threshold for still_for_ms, or until timeout_ms. A short window means 'the page/animation has settled, safe to act'. A long window on something that should keep changing (a clock, a progress bar, a status bar) means it is frozen: still=true is then the alarm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
metricNowhat the threshold applies to. rmse (default): the whole region moved. peak: any single cell moved, for a small thing that should tick inside a larger region (a clock in a bar).
thresholdNoscore that counts as a change, 0..1 (default 0.05). With metric=rmse a caret or cursor edge scores about 0.02 and a dialog opening 0.1+. With metric=peak a digit flipping in one cell scores about 0.05-0.2.
timeout_msNogive up after this long (default 55000, max 540000)
interval_msNosampling period (default 500)
still_for_msYeshow long nothing may change

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure, and it does so well: it explains blocking, the condition for success, timeout behavior, and the 'still=true' alarm state. It does not describe the full return shape or whether the operation is read-only, but the core behavior is transparent.

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?

The description is two tight sentences with no filler. The primary behavior is front-loaded, and the second sentence adds valuable interpretive guidance about short versus long windows.

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?

The core semantics are covered, but with no output schema and six parameters, the description leaves gaps: the meaning of 'name' is unclear, and the exact return value on timeout versus success is only hinted at through 'still=true'. It is adequate but not fully 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?

The input schema covers 5 of 6 parameters with descriptions, so the baseline is 3. The tool description adds little parameter-specific meaning beyond referencing threshold and still_for_ms; notably, the required 'name' parameter is left undocumented in both the schema and description.

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 states a specific behavior: block until consecutive samples stay below threshold for still_for_ms or timeout_ms. It clearly identifies the tool as a stillness/change-frozen detector, though it does not explicitly contrast itself with the sibling pir_wait_for_change.

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 description gives practical guidance: a short window means the page has settled and is safe to act, while a long window on something that should keep changing indicates frozen content. It does not explicitly mention alternatives or provide exclusions, but the intended use cases are clear.

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