Skip to main content
Glama

assert_element_visible

Verify that a web element is visibly rendered on the page. Pass a CSS selector or text to confirm it is not hidden and has non-zero dimensions.

Instructions

⭐ Verify an element is visible (rendered, non-zero size, not hidden). Pass selector OR text — text uses fuzzy contains match. Returns ok(rect) or err(timeout).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorNo
textNo
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It specifies the verification criteria, the alternative identification methods, and the return type. However, it does not disclose potential side effects or details about waiting/polling behavior beyond the timeout parameter.

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?

The description is extremely concise, consisting of three short lines. It front-loads the purpose with an emoji and provides all key information without any unnecessary words.

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?

Given the tool has 3 parameters and a mentioned return type (ok(rect) or err(timeout)), the description is fairly complete. It covers identification methods, visibility criteria, and the timeout parameter. Some implicit context (e.g., works on current page) is assumed but not critical.

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 description coverage is 0%, so the description must compensate. It explains that selector and text are alternative identifiers and that text uses fuzzy contains match, adding meaning beyond the schema. The timeout parameter is mentioned with its default, though the default is already in the schema.

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?

The description clearly states the tool verifies element visibility with specific criteria (rendered, non-zero size, not hidden). It also explains two identification methods (selector or text with fuzzy match), which distinguishes it from siblings like 'check' or 'inspect_element'.

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?

The description does not explicitly state when to use this tool versus alternatives like 'assert_text_present' or 'assert_url_matches'. The usage is implied through the return type (ok(rect) or err(timeout)), but no direct guidance is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RobithYusuf/mcp-stealth-chrome'

If you have feedback or need assistance with the MCP directory API, please join our Discord server