Skip to main content
Glama

smartFindElement

Find web page elements using natural language descriptions and get ranked candidate matches to automate actions like clicks or typing.

Instructions

Find elements with natural language. Returns ranked candidates. Prefer analyzePage for better performance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoOptional action on element
maxResultsNoMax candidates (default: 5)
descriptionYesNatural language description
minConfidenceNoConfidence threshold (default: 0.6) for auto-executing `action`. Below it (or too close to runner-up), action is skipped and candidates returned with 'actionSkipped'. Prevents auto-clicking the wrong control.
Behavior2/5

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

With no annotations, the description carries the full burden of disclosing behavioral traits. It only states 'Returns ranked candidates' but omits the tool's optional action execution (e.g., click, type) and the minConfidence threshold behavior that could auto-execute actions. This is a significant gap for a tool that might perform side-effectful operations.

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 exceptionally concise with exactly two sentences. 'Find elements with natural language' states the core purpose, 'Returns ranked candidates' describes output, and 'Prefer analyzePage for better performance' gives useful guidance. Every word earns its place with no redundancy.

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?

The description is partially complete: it explains the find and return behavior but omits the optional action automation and confidence-based skipping which are key aspects of the tool's functionality. The schema covers these details, but the description alone would not give a full picture. Without an output schema, it does mention 'ranked candidates' which is helpful.

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?

The schema provides 100% description coverage for all parameters, including detailed explanations of 'description', 'action', 'maxResults', and 'minConfidence'. The description adds no extra parameter-level meaning beyond what the schema already gives, so baseline 3 is appropriate.

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's function: 'Find elements with natural language' and that it 'Returns ranked candidates.' This is a specific verb+resource combination that distinguishes it from sibling tools like findElementsByText and click. The mention of analyzePage as an alternative further differentiates it.

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?

The description gives explicit guidance to 'Prefer analyzePage for better performance,' which is a clear alternative recommendation. However, it doesn't outline specific when-to-use or when-not-to-use scenarios beyond performance, so it's not fully exhaustive but still provides useful context.

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/docentovich/chrometools-mcp'

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