Skip to main content
Glama

Robot Actions — Remote Device Control

Session click

session_click

Click an element found by session_find_element, addressed by its elementId together with the sessionId that found it. The click goes through the WebDriver protocol, so it lands where the element is — no coordinates and no scrolling to arrange first. Works on browser and mobile sessions alike. Errors when the element is not interactable, or has gone stale because the page changed since it was found: re-find it and retry. The coordinate-based equivalents on a real device are device_tap and ios_tap (by udid).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
elementIdYesElement ID from session_find_element
sessionIdYesSession ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false, idempotentHint=false and openWorldHint=true, but the description adds real behavioral value beyond them: WebDriver-mediated dispatch (no coordinates or scrolling needed), applicability to both browser and mobile sessions, and two concrete failure modes (not interactable, stale element) with the recommended recovery of re-finding and retrying.

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?

Five tight sentences, purpose front-loaded, then mechanism, platform scope, failure handling, and alternatives. No filler or restated name/title content; each sentence carries distinct information.

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?

For a two-param action with no output schema, the description covers preconditions, dispatch semantics, platform coverage, and error recovery, which is enough to invoke it correctly. It stops short of noting what a successful click returns or whether the action triggers navigation, but that gap is minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% so the parameters are already documented, but the description adds the non-obvious coupling that elementId must be paired with the sessionId that produced it. That constraint is not expressed in the schema and prevents a plausible cross-session misuse.

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?

States a specific verb (click) and the exact resource (an element returned by session_find_element), plus the addressing scheme (elementId + sessionId). It also names the sibling family it is not for (coordinate-based device_tap / ios_tap), so an agent can select it without opening another schema.

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?

Gives clear preconditions: the element must come from session_find_element with its owning sessionId, and points to device_tap / ios_tap for coordinate/udid-based taps. It does not explicitly contrast with web_click or webpage_click, so routing among the sibling click variants is only partly resolved.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources