Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Wait for a destination and read it

read_after_navigation

Polls a verified navigation until the expected URL and page heading load, then returns the accessibility snapshot. Returns dialogs immediately as blockers.

Instructions

After a verified address-bar navigation or clean-link click, poll until the page URL matches the expected destination and meaningful page content is present, then return that accessibility snapshot. A page dialog is returned immediately as an actionable blocker instead of waiting for hidden content. Pass expected_heading whenever known; readiness then requires that page heading, so unrelated nav/footer headings cannot satisfy the wait. This replaces wait_for_element followed by read_page. For a search destination pass accept_product_link true AND search_query set to the exact text you submitted — search_query is the query you typed, never a heading — so this site's durable search-URL pattern can be learned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expected_url": "<expected_url>"
    },
    "name": "read_after_navigation"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
poll_msNo
timeout_msNo
expected_urlYes
search_queryNoThe EXACT search text that was submitted to reach this page — not a heading. Supply it only with accept_product_link true. It is used solely to learn this site's durable search-URL pattern when the observed URL provably encodes this text.
window_addressNo
expected_headingNoOptional heading fragment. Empty is treated as omitted for homepage/storefront reads.
accept_product_linkNoFor a search-results destination only: accept a same-site product-shaped link when the site omits the expected results heading.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the polling/readiness model, the heading-matching rule, and the notable behavior that a page dialog is returned immediately as an actionable blocker instead of waiting for hidden content. It does not state what happens on timeout exhaustion (error vs partial snapshot) or what the snapshot actually contains, which keeps it below a 5.

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?

The behavior and the sibling replacement are front-loaded, and most sentences do work. The final clause restates the schema's own warning that search_query is 'not a heading', which is mild duplication, but overall the length is justified by the branching logic it encodes.

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?

For an 8-parameter tool with no annotations and no output schema, the description covers the readiness contract, the dialog escape hatch, and the search-link learning behavior well. The remaining gaps are the timeout failure mode and the role of window_address, which an agent would need in edge cases but not for the common call.

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 only 38% across 8 parameters, and the description gives real meaning to the three tricky ones: expected_heading (heading fragment used for readiness), search_query (exact submitted text, never a heading, only with accept_product_link), and accept_product_link (search-results fallback). But expected_url, window_address, limit, poll_ms, and timeout_ms are left entirely to the schema, with window_address in particular unexplained.

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 resource: poll until the URL matches the expected destination and meaningful content exists, then return the accessibility snapshot. It also distinguishes itself from siblings explicitly by saying it replaces wait_for_element followed by read_page, so an agent can pick it without opening other schemas.

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 precondition (after a verified address-bar navigation or clean-link click), names the alternatives it supersedes (wait_for_element + read_page), and states the conditional branches: pass expected_heading when known, and for search destinations pass accept_product_link true with search_query. When-to-use and how-to-branch are both explicit.

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