Skip to main content
Glama

find_all_elements

Locate all DOM elements matching a CSS selector with optional limit. Returns quickly on no match, translating timeout to a clean no-elements-found message.

Instructions

Find all elements matching a selector. Returns quickly on no match.

    ``limit`` caps the number of summary rows; the total count is always
    accurate. Zendriver's ``select_all`` raises ``TimeoutError`` after
    ~10s on zero matches, which we catch and translate to a clean
    "no elements found" message.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
selectorYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that the underlying library raises TimeoutError but is caught, and that limit caps summary rows while total count is accurate. This provides useful behavioral insight beyond the schema.

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 concise, with two sentences and a code-like block. It is front-loaded with the main purpose and adds necessary detail efficiently.

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 presence of an output schema, return values are covered. The description lacks details on selector format and what 'summary rows' means, but overall it covers the main behavior and error handling adequately.

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 description must compensate. It explains the 'limit' parameter (caps summary rows, accurate total count) but does not describe the 'selector' parameter. Partial compensation.

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 finds all elements matching a selector, distinguishing itself from the sibling 'find_element' tool (which likely returns the first). The behavior on no match is also explicitly mentioned.

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?

Usage context is implied but not explicit. It mentions returning quickly on no match and a limit parameter, but does not explicitly state when to use this tool over 'find_element' or when not to use it.

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/bituq/zendriver-mcp'

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