Skip to main content
Glama

Robot Actions — Remote Device Control

Session create

session_create

Open a W3C WebDriver session on the testing grid — a browser session (Selenium) or a mobile-device session, decided by what you pass: a browserName such as chrome, firefox or MicrosoftEdge for a browser; an empty browserName plus platformName ANDROID or IOS and a device UDID in capabilities for a device. Returns the sessionId every other session_* tool takes, and the capabilities the grid actually negotiated. This is the automation-protocol surface — reach for it when the work needs element handles or mirrors existing WebDriver code. To drive a desktop browser page without a WebDriver session use the web_* tools (addressed by pageId); to drive the browser on a real phone use the webpage_* tools (addressed by udid). Leave platformName and browserVersion off unless you must pin them: literal 'any' or 'latest' is strict-matched against node stereotypes, which advertise concrete values, and fails to match anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
browserNameYesBrowser name (chrome, firefox, MicrosoftEdge) or empty for a mobile session
capabilitiesNoAdditional W3C capabilities (e.g. automation-engine settings, device UDID)
platformNameNoPlatform (ANDROID, IOS, linux, etc.)
browserVersionNoBrowser version

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare it is a non-readonly, non-idempotent, open-world, non-destructive operation, so the safety profile is covered. The description adds real behavioral value beyond that: it states the return payload (sessionId plus the grid's negotiated capabilities) and the strict-match semantics of 'any'/'latest'. It does not disclose session lifecycle (that the session persists and later needs session_quit) or any auth/quota requirements, which keeps it from a 5.

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?

Front-loaded with the action and mode-selection rule, then returns, then alternative routing, then the non-obvious pitfall. Four sentences, each carrying distinct information with no repetition of the schema or annotations.

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 4-param creation tool with no output schema, it covers mode selection, return values (sessionId, negotiated capabilities), sibling routing, and a matching pitfall. The remaining gap is lifecycle/teardown and any environment prerequisites, but nothing needed to call it correctly is missing.

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 baseline is 3, but the description meaningfully adds semantics the schema lacks: an empty browserName is what triggers a device session, capabilities carries the device UDID, and platformName/browserVersion should be omitted unless pinning because literal 'any'/'latest' is strict-matched against concrete node stereotypes. That is genuine parameter guidance beyond the field descriptions.

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 and resource ('Open a W3C WebDriver session on the testing grid') and immediately splits the two modes (browser via browserName vs. device via empty browserName + platformName/UDID). It explicitly distinguishes itself from the web_* and webpage_* sibling families, so an agent can route without opening any schema.

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?

Gives explicit when-to-use ('needs element handles or mirrors existing WebDriver code') and when-not, naming the two concrete alternatives with their addressing keys (web_* by pageId, webpage_* by udid). It also adds a prerequisite-style caveat about leaving platformName/browserVersion off to avoid strict-match failures.

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