Skip to main content
Glama

apps_exit

Destructive

Exit a specified running device app within the allowed Launch/Exit scope while preserving the shell, access, app files, and saved data; check app state before retrying.

Instructions

Exit the specified current device App within this invitation’s enabled Launch/Exit scope. Preserves the shell, access, App files and saved data. Read apps_state after interruption; never replay blindly.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "instanceId": "<instanceId>"
    },
    "name": "apps_exit"
  }
}

Input Schema

NameRequiredDescriptionDefault
instanceIdYes
operationIdNo
connectionRefNoThe host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connectionRef
      Added value: +{
      +  "description": "The host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=false, but the description adds real value by defining the boundary of that destruction: the shell, access, App files, and saved data survive the exit. The "never replay blindly" line reinforces the non-idempotent behavior with concrete recovery guidance (check apps_state). It stops short of saying whether other connected clients or in-flight operations are affected.

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?

Three short sentences: purpose first, then the preservation guarantee, then the recovery rule. No filler. The only mild drag is the jargon-heavy "within this invitation's enabled Launch/Exit scope," which costs a few words without fully clarifying the authorization model.

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

Completeness3/5

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

For a destructive, non-idempotent, open-world tool with no output schema, the description covers the key safety concerns (what survives, what to do after interruption) but leaves two of three parameters unexplained and says nothing about authorization failures or partial failure modes. Adequate, but there are visible gaps an agent could trip over.

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

Parameters2/5

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

Schema coverage is only 33%, with just connectionRef documented in the schema. The description alludes to a "specified" App but never explains what instanceId denotes (a running instance vs. an installed app) or what operationId is for — a significant omission given the tool is explicitly non-idempotent, where a caller-supplied operation identifier would matter most.

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 uses a specific verb ("Exit") against a specific resource ("the specified current device App") and scopes it to the invitation's enabled Launch/Exit permissions. This is clearly distinguishable from apps_launch, apps_open, or apps_control, though the phrase "current device App" is slightly awkward and could be read as ambiguous about whether it targets a session or an installed application.

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?

It gives a clear post-condition instruction ("Read apps_state after interruption; never replay blindly"), which effectively tells the agent when to use apps_state and warns against retry. However, there is no explicit statement of when to call this instead of apps_control or apps_open, nor any prerequisites such as needing an active Launch/Exit scope or a connected host.

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