Skip to main content
Glama

hover_element

Simulate a realistic multi-step pointer path to an element so hover-triggered menus and hover-intent libraries actually open, then return the moves, change state, and optional screenshot or page map.

Instructions

Hover an element with a REALISTIC pointer path: the mouse travels to the element in several mousemove steps (default 8, plus a short warm-up move), the way menus that watch pointer motion (SmartMenus/Elementor mega-menus, hover-intent libraries) expect — a single synthetic hover often never opens them. Returns {moves, changed, change} plus the chosen observation. The interact_and_test 'hover' step uses the same path (steps field overrides).

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": {
      "session_id": "<session_id>",
      "selector": "<selector>"
    },
    "name": "hover_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoIntermediate mousemove steps on the way to the element (default: 8)
observeNoWhat to return about the resulting page. 'screenshot' (default): full-page image. 'none': structured result only, no image — cheapest, use through setup steps of a flow. 'map': semantic page map (get_page_map — token-light, best for 'what can I do next?'). 'checks': run_checks_on_session output (a11y/seo/perf/etc.).screenshot
selectorYesCSS selector of the element to hover
session_idYesSession ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.4/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 the internal behavior (8 mousemove steps by default plus a warm-up move) and the return contract ({moves, changed, change} plus the chosen observation). It leaves out failure behavior for a missing selector and whether any waiting occurs, so it is not exhaustive.

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?

Front-loaded with the core action and mechanism in the first clause, with return shape following. It is a single dense sentence-heavy block; the parenthetical about SmartMenus/Elementor is illustrative but slightly long, so it is efficient rather than optimally trimmed.

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

Completeness5/5

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

No output schema exists, yet the description names the returned fields and explains the observation modes' tradeoffs, which is exactly the missing piece. For a 4-parameter action tool with no annotations, the agent has enough to call it correctly and to interpret the result.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining that 'steps' is the override knob that also governs the interact_and_test hover path, and by framing 'observe' as a cost/context choice. That is genuine added semantics, not repetition.

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 ('Hover an element') and immediately qualifies the mechanism ('REALISTIC pointer path ... several mousemove steps'). It distinguishes itself from a naive hover and from the interact_and_test 'hover' step, so an agent can tell why this tool exists rather than just what it is called.

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?

Gives a clear when-to-use condition: menus and hover-intent libraries that watch pointer motion, where 'a single synthetic hover often never opens them.' It also notes the steps field overrides the path used by interact_and_test's hover step. It does not state when NOT to use it (e.g. plain non-JS hover targets where click_element suffices), which keeps it short of a 5.

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