Skip to main content
Glama

Robot Actions — Remote Device Control

Session quit

session_quit
Idempotent

End a session created by session_create and release the browser or device it holds. Takes the sessionId, not a udid. Always call it when finished — an abandoned session keeps its grid node until the grid times it out, which blocks the next caller. Calling it twice on the same id returns the grid's 'no such session' error rather than a silent success, so it is safe to confirm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID to quit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the consequence of abandonment (a held grid node blocking the next caller) and the exact outcome of a second call (the grid's 'no such session' error instead of silent success). That is useful for an agent deciding whether to confirm cleanup. Minor gap: the description asserts safety of re-calling while the annotation declares idempotentHint=true, and it never states whether the session can be recreated or what permissions are required; not an outright contradiction, but the two statements should be read together.

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?

Three sentences, each carrying distinct load: what it does, which identifier to pass, when to call it and why, and what happens on a repeat call. The purpose and the identifier rule are front-loaded with no filler.

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?

One required parameter, no output schema, and annotations already covering the safety profile — so the remaining burden is guidance and side-effect disclosure, both of which the description supplies (grid-node blocking, double-call error). Nothing an agent needs to invoke this 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 earns extra credit by disambiguating the parameter against a plausible confusion: 'Takes the sessionId, not a udid.' That prevents a real mis-invocation that the schema alone would not flag.

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 ('End') and resource ('a session created by session_create'), and immediately ties it to the sibling that produces the resource. An agent can distinguish it from session_list, session_get_title, or ios_end_session without opening the 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 an explicit directive with the reason: 'Always call it when finished — an abandoned session keeps its grid node until the grid times it out, which blocks the next caller.' That is when-to-use plus the cost of not using it, which is stronger than most sibling definitions in this set.

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