Skip to main content
Glama

electron_verify_element_visible

Checks whether a referenced UI element is visible on screen, waiting up to the specified timeout before failing.

Instructions

Verify that an element is visible on the screen.

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": {
      "ref": "<ref>",
      "timeout": "<timeout>"
    },
    "name": "electron_verify_element_visible"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement reference from snapshot (e.g., e1, e2)
timeoutYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/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 and falls well short: it does not say whether verification waits/polls until the timeout or checks once, whether failure throws or returns a boolean, or whether the check is read-only and side-effect free. The words 'verify' and 'visible' imply a non-mutating assertion but that is inference, not 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?

A single front-loaded sentence with zero filler. Brevity is appropriate in form, though the spareness reflects under-specification rather than disciplined economy.

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?

For a two-parameter tool with no output schema, the definition covers the basic action but leaves the key mechanics (timeout semantics, return/failure behavior, snapshot prerequisite) undocumented, which is a real gap for a verification assertion whose result the agent must interpret.

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 coverage is 50%: 'ref' is well documented in the schema, but 'timeout' has only a default with no explanation. The description adds nothing about how timeout behaves (polling window vs. hard deadline) or what refs look like beyond the schema's e1/e2 example.

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?

States a specific verb (verify) and resource (element visibility), which distinguishes it from electron_verify_text_visible and electron_verify_value by scope of what is checked. It does not explicitly name those siblings, but the object of verification is clear enough for an agent to pick the right tool.

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?

No when-to-use guidance, no prerequisites (e.g., that a snapshot must exist first), and no mention of alternatives such as electron_verify_text_visible or electron_snapshot. The agent must infer all selection logic from sibling names.

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