Skip to main content
Glama

Robot Actions — Remote Device Control

Automation session get

automation_session_get
Read-onlyIdempotent

Read one finished automation run: its verdict, the test it belonged to, the device/browser it ran on, its full desired capabilities, how long it took, and whether a video or failure snapshot exists. START HERE when the user pastes a session id or an /automation?session_id=... link and asks what happened, why it failed, or how it went. Returns verdict together with confidence: "reported" means the test itself declared the outcome and is authoritative; "inferred" means the run reported nothing and the platform guessed from how it ended — accurate most of the time but NOT a fact, so say so rather than stating it flatly. stillRunning: true means the run has not finished yet — report it as in progress, never as "no result". On a FAILED run this also returns failureAnalysis, whose shape depends on failureAnalysis.source: "recorded" (the common case — this run was already analysed automatically in the background) carries failures, one entry per failure on this run (today always one), each with failureCategory (app_bug / test_script / environment_device / timing / unknown), confidence, reasons, aiComment, target (the element this failure's lookup was searching for — value/strategy/locator plus source: "failed_command" when a WebDriver call itself failed on it, "last_find" when the test reported the failure itself and this is the last element lookup beforehand — and stepIndex naming which command; null when there was nothing to resolve), the initialVersion and latestVersion this analysis has gone through, any human/agent feedback left on it, and the effectiveVerdict — trust effectiveVerdict over failureCategory when they differ, since it already accounts for feedback. reanalysisPending: true alongside failureAnalysis means a background refresh was just triggered (a newer rule set landed since this was last analysed, or nothing was analysed yet) — the fields returned now are the best answer available immediately; re-read in about 30 seconds for the refreshed one. analysisUnavailable: {reason} instead means this run cannot be analysed at all right now (its data aged out of the grid, or was never retained) — do not re-read expecting a change; say plainly that no analysis exists for this run and why. "lazy" (an older run the background analysis never reached) carries the flatter pre-recorded shape instead: failureCategory/confidence/reasons directly, plus flakiness facts (pass rate over this test's recent runs, whether it is flaky vs a clean regression, whether it only fails on this device) and, on an element-lookup failure with a failure-time screen snapshot, screenAtFailure describing what the screen looked like when the lookup gave up. Either way this is rule-based, not a guarantee — read the reasons before repeating the category as fact, and use automation_session_feedback to correct one that is wrong. Only your own runs are readable; another user's session is indistinguishable from one that does not exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesThe run's session id — the `session_id` value from an /automation?session_id=... link, or the id shown on the run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare a safe read operation; the description goes far beyond by explaining verdict/confidence semantics ("reported" vs "inferred"), stillRunning handling, the three failureAnalysis shapes (recorded/lazy/unavailable), reanalysisPending timing, and how source/effectiveVerdict should be interpreted. This is exactly the context an agent needs to interpret results correctly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the activation trigger are correctly front-loaded, but the body is one very dense multi-clause paragraph with no formatting, making the nested failureAnalysis variants hard to scan. Most sentences carry real information, so it is not padding, but the structure works against readability.

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

Completeness5/5

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

There is no output schema, so the description carries the full burden of describing return shape, and it does so thoroughly for every branch (recorded/lazy/unavailable analyses, stillRunning, reanalysisPending). Nothing an agent needs to call and interpret this tool is missing.

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?

Only one parameter at 100% schema coverage, so the schema already documents sessionId and its origin (the /automation?session_id= link). The description adds no syntax, format, or validation detail beyond the schema, so the baseline 3 applies.

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?

Specific verb (Read) and resource (one finished automation run), immediately enumerating what is returned: verdict, test, device/browser, capabilities, duration, video/snapshot presence. This distinguishes it cleanly from automation_sessions_list (plurals) and automation_session_step/commands (drill-downs).

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 an explicit trigger ("START HERE when the user pastes a session id or an /automation?session_id=... link and asks what happened, why it failed, or how it went") and routes the agent to automation_session_feedback when a category is wrong. It also states the access boundary (only your own runs are readable).

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