Skip to main content
Glama

app_launch

Launch a GUI app in an isolated virtual screen, returning its PID and window when available.

Instructions

Run a graphical application inside a screen. Returns its pid and, once it appears, its window.

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": {
      "command": "<command>"
    },
    "name": "app_launch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoworking directory
envNoextra environment variables
screenNoscreen name; optional when the session owns exactly one screen
commandYesargv of the application, e.g. ["chromium","--ozone-platform=wayland","--user-data-dir=/tmp/hc-profile","--no-first-run","https://example.org"]
wait_window_msNowait up to this long for a new window (default 10000, 0 = return immediately)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add valuable behavior beyond the schema by stating the tool returns a pid and, once it appears, a window, which reveals that the call blocks until a window shows up. However, it says nothing about what happens on failure to launch, when the window never appears within wait_window_ms, whether the process is left running, or whether the screen must pre-exist.

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?

Two sentences with zero filler, front-loaded with the action and followed by the return contract. Every clause earns its place and nothing is repeated from the schema.

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 process-launching tool with no annotations and no output schema, the description should carry the return and failure contract. It covers the return shape at a high level but omits what the caller gets when no window appears, how errors surface, and the screen precondition, leaving meaningful gaps for a five-parameter mutating tool.

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 every parameter including command, cwd, env, screen, and wait_window_ms is already documented with examples in the schema. The description adds no parameter-level meaning beyond that, so the baseline of 3 applies. No enum-bearing parameters need extra interpretation.

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 concrete verb phrase ('Run a graphical application inside a screen') that names both the action and the resource, and it adds the return payload (pid, window). An agent can tell this apart from app_close, click, or screen_create without inspecting schemas. It stops short of naming a sibling or scope boundary explicitly, so it sits just below the top mark.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing tells the agent that a screen must already exist (screen_create) or that app_close is the counterpart operation. The only usage hint, that screen is optional when the session owns exactly one screen, lives in the schema rather than the description. The agent must infer all preconditions and alternatives.

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