Skip to main content
Glama

Launch app

launch_app
Idempotent

Starts an installed app by name or id and waits for its first window. Use it when an app is not running yet; if it is already running, it returns the pid instead.

Instructions

Start an installed app that is not running yet, by the name the system's app list shows (the Start menu on Windows, the app launcher on Linux, Applications on macOS) or its id (bundle id on macOS, Start menu AppID on Windows, desktop file id on Linux), then wait for its first window. A unique start of a name is enough ("calc" for Calculator); several matches are listed instead of guessed. If the app is already running, nothing is started and the reply gives its pid: use get_app_state or activate_app. The reply names the running app and its pid for get_app_state. macOS opens it without bringing it to the front; on Windows and Linux its first window may come to the front, so the user's foreground rule applies. The user's app rules apply as they do to every app.

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": {
      "app": "<app>"
    },
    "name": "launch_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesApp name as the system lists installed apps ("Calculator", "Visual Studio Code"), or its bundle id, Start menu AppID or desktop file id
wait_secondsNoHow long to wait for the app's first window (default 10). 0 starts it and returns at once.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (which already declare non-destructive and idempotent), it discloses the blocking wait on the first window, the no-op-with-pid result when already running, partial-name matching, and platform-specific foreground behavior on macOS vs Windows/Linux. It does not cover failure behavior when no app matches the name, which is the main remaining gap.

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 critical constraint (not-running precondition and the correct alternative) is front-loaded and the sentences are dense with useful content. The trailing note that 'the user's app rules apply as they do to every app' is low-value filler that slightly dilutes an otherwise tight definition.

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

Completeness4/5

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

With no output schema, the description compensates by describing the reply (running app name and pid, or a list of ambiguous matches). It is nearly complete for a 2-parameter launch tool, with error cases such as an unknown app name left unaddressed.

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; the description adds real meaning by explaining that an unambiguous partial name like 'calc' works and that ambiguous names return a list instead of launching, which the schema's app parameter does not say. wait_seconds semantics are covered by the schema itself.

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?

The first sentence gives a specific verb ('Start') plus a precise precondition ('an installed app that is not running yet') and the two accepted identifiers, and it explicitly contrasts with activate_app and get_app_state for the already-running case.

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?

It states when to use this tool (app installed but not running), when not to (already running: nothing is started, use get_app_state or activate_app), and what happens on ambiguity (matches are listed, not guessed) rather than deferring to inference.

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