Skip to main content
Glama

click_element

Click a UI element by its numeric id from the most recent parse_screen. Re-parse after screen changes to avoid stale id errors.

Instructions

Click an element by id from that instance's most recent parse_screen (no coordinate guessing).

Returns {"ok", "action", "instance", "detail", "element", "center"}. Fails (isError) with the fix named if the id is unknown — run parse_screen(instance) first. Ids go stale when the screen changes: after navigation, re-parse before clicking. observe/settle_ms: see click().

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
buttonNo
observeNonone
instanceNo
settle_msNo
Behavior5/5

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

Discloses failure mode (isError with fix named), data staleness, and referential behavior for observe/settle_ms. With no annotations provided, the description fully bears the transparency burden and meets it well.

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?

Two concise sentences front-load the core purpose and essential guidelines. However, it could benefit from a brief parameter explanation, but overall efficient.

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?

Given 5 parameters, no output schema, and no annotations, the description covers usage context and failure behavior but lacks parameter details and full return semantics. Adequate but could be more complete.

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%, yet the description does not explain the individual parameters (button, instance, observe, settle_ms). Only id usage is implied, and others are merely referenced to click(). This is insufficient.

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 specific action (click), resource (element by id), and context (from parse_screen, no coordinate guessing). It effectively distinguishes from sibling 'click' which likely uses coordinates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs to run parse_screen first, explains staleness of ids, and provides guidance on failure recovery (fix named). Also references click() for observe/settle_ms parameters.

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/segentic-lab/glovebox-mcp'

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