Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Recover from an accessibility-invisible overlay

recover_visual_overlay

Restores page readability when a screenshot shows an overlay but accessibility exposes no content: click one neutral point inside the overlay, press Escape once, then verify the document is readable.

Instructions

Use only after a screenshot visibly shows an overlay while an unfiltered accessibility read exposes zero page content. Click exactly one screenshot-identified neutral point inside the overlay, press Escape exactly once, then verify that the same document became readable and no accessible dialog remains. This reports restored readability, never an unobservable claim that the visual overlay closed. Do not retry on failure.

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": {
      "x": "<x>",
      "y": "<y>",
      "expected_url": "<expected_url>"
    },
    "name": "recover_visual_overlay"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
expected_urlYes
window_addressNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that real input events occur (one click at a single point, exactly one Escape), that a verification step follows, and that the reported result is 'restored readability' rather than a claim the overlay closed. It does not say what happens if expected_url does not match or how failure is signaled beyond 'do not retry', so it falls short of full behavioral disclosure.

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 precondition is front-loaded, then the action sequence, then the result semantics and failure rule — a logical order with no filler. The 'never an unobservable claim' clause is slightly verbose but earns its place by defining what the return value does and does not assert.

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 description covers trigger, procedure, verification, and failure policy, which is substantial for a tool with no annotations and no output schema. However, for a tool that dispatches real clicks and keystrokes it leaves gaps: the coordinate space, the role of window_address, and the mismatch behavior for expected_url are all unaddressed.

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 0%, so the description must supply all parameter meaning. It meaningfully constrains x/y ('exactly one screenshot-identified neutral point inside the overlay') and implicitly ties expected_url to the 'same document' verification, but window_address is never mentioned and the coordinate space (screenshot pixels vs page coordinates) is not stated. Partial compensation for a four-parameter tool.

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, narrow purpose: recovering readability when a screenshot shows an overlay but the accessibility tree exposes zero content. The verb/action sequence (click one point, press Escape once, verify) is concrete and clearly distinguishable from siblings like dismiss_dialog or escape_page, which do not carry this diagnostic precondition.

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 an explicit gating condition ('Use only after a screenshot visibly shows an overlay while an unfiltered accessibility read exposes zero page content') plus a termination rule ('Do not retry on failure'). Both when-to-use and when-to-stop are stated, leaving little to inference.

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