Skip to main content
Glama

locate

Find UI elements on a webpage by describing them in natural language. This tool enables AI to perform visual browser automation.

Instructions

Locate UI element by natural language description (browser driver only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
driverYesDriver alias (must be browser)
session_idYesSession ID
descriptionYesNatural language description of element (e.g., 'the blue Submit button')
Behavior2/5

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

No annotations are provided, so the description must cover behavioral traits. It only mentions a constraint (browser driver only) but omits side effects, error handling (e.g., element not found), return format, or whether it modifies state.

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?

The description is a single, clear sentence that front-loads the purpose. It is concise, though it might be too brief to be fully helpful without additional context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 3 parameters, no output schema, and 18 sibling tools, the description lacks details like return value (e.g., element identifier or coordinates) and how to use the located element with other tools. This gap reduces completeness.

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 description coverage is 100%, so the schema already documents all parameters. The description adds no extra meaning beyond the schema, such as usage nuances or format constraints, 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 verb 'Locate', the resource 'UI element', and the method 'by natural language description'. It also specifies the constraint 'browser driver only', which distinguishes it from sibling tools that operate on other or no specific driver.

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 'click' or 'read'. It implies it's for locating elements by descriptions but provides no when-not-to-use or alternative tool recommendations.

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/shanevcantwell/surf-mcp'

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