Skip to main content
Glama
seleniumbase

SeleniumBase MCP

Official

find_elements_count

Count how many elements on a page match the given selector, enabling quick verification of element presence and quantity for testing or scraping.

Instructions

Get the count of how many elements on the page match the selector.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeoutNo
selectorYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/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 of behavioral disclosure. It only states the basic count operation and does not mention whether the tool waits for elements, whether hidden elements are included, what happens on zero matches, or whether it is strictly read-only.

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 a single, front-loaded sentence with no filler. Every word contributes to the core meaning of the tool, and it is appropriately sized for a simple count operation.

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 simple tool with an output schema, the description minimally covers what the tool returns conceptually and identifies the key selector input. However, it leaves the timeout parameter's semantics unexplained and does not address edge cases such as no matching elements, which an agent would benefit from knowing.

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 description coverage is 0%, so the description must compensate. It clarifies that the selector is used to match elements on the page, but it says nothing about the timeout parameter, its units, or its behavior when null. This leaves a required part of the invocation semantics undocumented.

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 a specific action ('Get the count') and a specific resource ('elements on the page match the selector'). This distinguishes it from sibling tools like find_all_info or is_element_present, which return details or presence rather than a count.

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?

The description gives no guidance about when to use this tool instead of alternatives such as find_all_info, is_element_present, or wait_for_element_present. There are no exclusions or conditions, so an agent must infer the appropriate context from the name alone.

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/seleniumbase/SeleniumBase'

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