Skip to main content
Glama

glass_start

Launch a native GUI app and retrieve its window geometry. Configure build, backend, sandbox, and window hints to locate the correct window.

Instructions

Build, launch, and locate a native GUI app; returns its window geometry. Choose a backend with the backend param (defaults to the host). The accessibility tools are enabled by default; pass a11y:false to skip the accessibility bus for canvas/pixel-only apps. Optional window_hint ({ title?, class? }) picks the right window when several appear, or locates one the launched process hands off to another process.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for both `build` and the launched app; omit to inherit the server's own.
envNoExtra environment variables, as a `{ "KEY": "VALUE" }` object. They reach the launched app on the desktop backends and on `ios`; on `android` they configure the `build` command on the host only, since an app launched by `am start` is forked from zygote and never sees the shell's environment.
runYesWhat to launch: desktop `[executable, args...]`; iOS `[.app-or-bundle-id, args...]`; Android `[apk?, package/.Activity]` in either order, for example `["/absolute/path/app.apk", "com.example.app/.MainActivity"]`.
a11yNoSpawn a private accessibility (AT-SPI) bus so `glass_a11y_snapshot` / `marks` / `set_value` / `click_element` / `wait_for_element` work against this app. **On by default** — the accessibility path is the cheap, low-token way to drive a UI, so it is available unless you opt out. Pass `false` to skip the bus for canvas/pixel-only apps (it spawns extra processes). Effective on Linux only; other backends read accessibility ambiently and ignore this flag.
buildNoOptional shell command to run (in `cwd`) before launching.
backendNoBackend to launch under: `"x11"` or `"wayland"` (Linux), `"windows"` (on a Windows host), `"macos"` (on a macOS host), `"android"` (an AVD emulator, any host), or `"ios"` (an iOS Simulator, macOS host). Omit for the server default (`GLASS_BACKEND`, else `windows` on Windows, `macos` on macOS, else x11).
sandboxNoContainment level for the launched app: `"default"` (filesystem/process containment, network on), `"strict"` (also no network), or `"off"` (no containment). Omit for the server default (`GLASS_SANDBOX`, else `default`). An operator-set floor (`GLASS_SANDBOX_FLOOR`) may raise an omitted level, and refuses an explicit level requested below it.
timeout_msNoHow long to wait for the app's window to appear before failing the launch (default 10000ms). Does not bound `build`.
window_hintNoOptional `{ title?, class? }` to disambiguate which window is the app's when more than one appears, or to find a window the launched process hands off to an unrelated process. Omit to take the first window owned by the launched process or a descendant it can follow.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv1.5.1
    • changedInput schema / properties / run / description
      Previous value: -"What to launch, then its arguments. `run[0]` is the executable on a desktop backend, an\n`.app` path or bundle id on `ios`, and a `package/.Activity` component — optionally with\nan `.apk` to install first — on `android`. `run[1..]` are the app's own arguments;\n`android` has no argument vector to put them in and returns an error rather than\nignoring them."New value: +"What to launch: desktop `[executable, args...]`; iOS `[.app-or-bundle-id, args...]`;\nAndroid `[apk?, package/.Activity]` in either order, for example\n`[\"/absolute/path/app.apk\", \"com.example.app/.MainActivity\"]`."
  2. Changed5 schema fields changedv1.2.0
    • addedInput schema / properties / cwd / description
      Added value: +"Working directory for both `build` and the launched app; omit to inherit the\nserver's own."
    • changedInput schema / properties / env / description
      Previous value: -"Extra environment variables for the launched app, as a `{ \"KEY\": \"VALUE\" }` object."New value: +"Extra environment variables, as a `{ \"KEY\": \"VALUE\" }` object. They reach the launched app\non the desktop backends and on `ios`; on `android` they configure the `build` command on\nthe host only, since an app launched by `am start` is forked from zygote and never sees\nthe shell's environment."
    • changedInput schema / properties / run / description
      Previous value: -"Program and arguments to launch; `run[0]` is the executable."New value: +"What to launch, then its arguments. `run[0]` is the executable on a desktop backend, an\n`.app` path or bundle id on `ios`, and a `package/.Activity` component — optionally with\nan `.apk` to install first — on `android`. `run[1..]` are the app's own arguments;\n`android` has no argument vector to put them in and returns an error rather than\nignoring them."
    • addedInput schema / properties / timeout_ms / description
      Added value: +"How long to wait for the app's window to appear before failing the launch\n(default 10000ms). Does not bound `build`."
    • removedInput schema / title
      Removed value: -"StartArgs"
  3. Addedv1.1.0
  4. Removedv1.0.3
  5. Addedv1.0.2

TDQS

A4.7/5.0
Behavior5/5

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

With annotations only indicating readOnly=false, openWorld=true, and destructive=false, the description carries the burden and handles it well. It discloses that the tool builds and launches processes, may spawn extra accessibility-bus processes, defaults behavior by host, and can follow a window handed off to an unrelated process — all useful behavioral context beyond the raw annotations.

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?

Four dense sentences, with the core purpose and return value front-loaded. Every sentence adds useful guidance: backend choice, a11y behavior, and window_hint semantics. No filler or restatement of schema details.

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?

For a complex 9-parameter tool with a nested object and no output schema, the description covers the key behavioral decisions, default selections, platform scope, and how to locate the correct window. Combined with the very rich input schema, an agent has enough context to invoke the tool correctly without guessing.

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 schema already documents every parameter thoroughly. The description adds value by synthesizing the most important defaults and decision points: backend defaults to the host, a11y is on by default, and window_hint disambiguates windows or handles process handoff. This is modest but real added meaning beyond the schema.

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 description opens with a specific verb plus resource ('Build, launch, and locate a native GUI app') and states the return value ('returns its window geometry'). It clearly distinguishes glass_start from the sibling tools by framing it as the app-launch entry point rather than an inspection or interaction tool.

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

Usage Guidelines4/5

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

The description gives concrete usage direction: pick a backend with the `backend` param, pass `a11y:false` for pixel-only apps, and use `window_hint` when multiple windows appear or the process hands off to another process. It does not explicitly name when not to use this tool or contrast it with alternatives, so it stops short of a 5.

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

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/fixed-width/glass'

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