Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Wait until the page has finished loading (event-driven)

wait_page_settled

Waits until the on-screen page finishes loading by using the browser's own accessibility events instead of a fixed sleep, then confirms the document is idle and unchanged for a quiet interval.

Instructions

Wait until the page on screen has finished loading: its document is no longer busy and the browser has announced no structural change for quiet_ms. Event-driven (the browser's own accessibility notifications), not a fixed sleep. Returns {settled, reason, ms, ready_ms, events}. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
max_msNo
not_docNoThe `doc` a previous wait_page_settled returned: after a navigation, only a DIFFERENT document counts (a view-source: page keeps its page's URI and has no title).
quiet_msNo
url_containsNo
title_containsNoOnly a document whose title contains this counts.
window_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden well: it declares the tool read-only, explains the event-driven mechanism rather than polling/sleeping, and enumerates the return shape {settled, reason, ms, ready_ms, events}. It omits timeout behavior on max_ms exhaustion and what happens on failure beyond the settled flag.

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?

Front-loaded definition, then a one-clause mechanism clarification, then the return shape and the read-only marker. Every sentence carries information; nothing is padded.

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, but the description enumerates the return fields, and it defines the core settle semantics for a timing-sensitive tool. Completeness is weakened only by the unexplained optional filters and timeout parameter, which an agent must read from the schema alone.

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 description coverage is only 33%, and the description explains quiet_ms and the document concept, but leaves max_ms, url_contains, title_contains, and window_address unaddressed. It adds some meaning beyond the schema but does not compensate for the coverage gap across six parameters.

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 gives a specific verb and resource ("wait until the page on screen has finished loading") and defines the settle condition precisely: document not busy plus no structural change for quiet_ms. It does not name a sibling such as wait_for_element or read_after_navigation to sharpen the boundary, so it falls short of a 5.

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

Usage Guidelines3/5

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

It implies the usage context (after navigation, before reading the page) and contrasts itself with "a fixed sleep," but never explicitly says when to prefer wait_for_element or read_after_navigation. The not_doc parameter hints at reuse-after-navigation patterns, yet no guidance is stated outright.

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