Skip to main content
Glama

session

List active sessions, print daemon state directory, or save an armed open-to-destination script without teardown.

Instructions

List active sessions, print the effective daemon state directory, or publish an armed open-to-destination script without closing its session

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for command execution.
pathNoOptional .ad output path for save-script.
udidNoiOS device UDID selector.
debugNoEnable debug diagnostics.
forceNoAtomically replace an existing save-script target.
runIdNoLease run identifier.
actionNolist shows active sessions; state-dir prints the daemon state directory; save-script publishes an armed recording without teardown.
deviceNoDevice name selector.
serialNoAndroid device or Vega VVD serial selector.
targetNoAlias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element.
tenantNoRemote tenant identifier.
leaseIdNoExisting lease identifier.
sessionNoAgent-device session name.
platformNoPlatform selector used to resolve a device.
stateDirNoAgent-device state directory.
includeCostNoInclude per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged.
deviceTargetNoDevice target form. Maps to the CLI --target flag.
daemonBaseUrlNoRemote daemon base URL.
responseLevelNoResponse verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged.
daemonAuthTokenNoRemote daemon auth token.
iosXctestEnvDirNoWritable directory for iOS XCTest runner env overlays.
mcpOutputFormatNoMCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately.
iosXctestrunFileNoExternally built iOS XCTest runner .xctestrun artifact path.
iosSimulatorDeviceSetNoiOS simulator device-set path used for device resolution.
androidDeviceAllowlistNoAndroid serial allowlist used for device resolution.
iosXctestDerivedDataPathNoDerived data path for external iOS XCTest runner execution.
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It mentions one distinctive behavior ('without closing its session') for save-script, but otherwise leaves key traits unexplained—such as whether operations are read-only or mutating, what 'armed open-to-destination' means, or what side effects the publish action has. The jargon-heavy phrasing obscures rather than clarifies.

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?

The description is a single sentence that packs three operations without obvious filler. It is front-loaded with the simplest action ('List active sessions') and remains reasonably compact, though the third clause is long and jargon-heavy.

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

Completeness2/5

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

This is a multi-action tool with 26 parameters, no annotations, and no output schema, yet the description does not explain which parameters apply to which action, what results look like, or what prerequisites exist. The complexity demands far more contextual detail than a single dense sentence provides.

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?

Schema description coverage is 100%, so the schema fully documents each parameter's meaning. The description itself adds no parameter-level detail and does not map parameters to specific actions, but per the baseline rule, 3 is appropriate when the schema already covers parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies three concrete actions (list sessions, print state directory, publish save-script) tied to the session resource. It is more specific than a tautology and gives enough verb+resource structure, though it does not explicitly differentiate from sibling tools beyond the session domain.

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

Usage Guidelines3/5

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

The description implies usage by enumerating actions, so an agent can infer when to call it (e.g., list active sessions, get state dir, save-script publish). However, it provides no explicit when-to-use vs alternatives or exclusions, leaving the agent to rely on the action enum and general context.

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/callstack/agent-device'

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