Skip to main content
Glama

sleeper_wait_until

Pause browser automation until a page condition (selector, text, or attribute state) is met, ensuring elements load before proceeding. Chromium-only JavaScript predicates supported.

Instructions

Wait for a structured page condition; JavaScript predicates are Chromium-only

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabNo
profileNoBrowser ID from sleeper_sessions; optional with one connected browser.
timeoutNo
intervalNo
conditionNoStructured condition with selector or text, plus optional state, count, attribute, value, operator, and exact fields
predicateNoChromium-only JavaScript predicate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses one important constraint—Chromium-only JavaScript predicates—but says nothing about timeout behavior, default interval, whether existing satisfied conditions return immediately, or what happens on timeout.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence with no waste, but for a 6-parameter wait tool with no annotations and no output schema, it is severely under-specified. Brevity here is not appropriate sizing; it leaves critical details unstated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity—six optional parameters, a nested condition object, no output schema, and no annotations—the description is incomplete. It lacks timeout/interval semantics, profile/tab context, and condition-field guidance, though it does note the Chromium-only predicate limitation.

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

Parameters2/5

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

Schema description coverage is 50%, so the description should compensate. It only alludes to condition and predicate; it adds no meaning for tab, profile, timeout, or interval, and does not explain the nested condition fields beyond what the schema already partially covers.

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 verb and resource: 'Wait for a structured page condition.' It distinguishes the tool from simple text/URL waits by focusing on structured conditions and predicates, but it does not explicitly name or differentiate from siblings like sleeper_wait_text or sleeper_wait_url.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage guidance is the constraint that JavaScript predicates are Chromium-only. It does not say when to choose this tool over alternatives such as sleeper_wait, sleeper_wait_text, or sleeper_wait_url, nor does it describe prerequisites or exclusions.

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