Skip to main content
Glama

list_instances

Read-only

Lists running sandboxed app windows with IDs, displays, commands, titles, and launch origin, helping agents identify and distinguish instances started by other agents or outside this server.

Instructions

List all running instances (app windows): id, display, name, command, title, launched_here.

Returns {"ok", "count", "instances": [{instance, display, name, command, up, title, launched_here, clipboard_sync}, …]}. "title" is the active window's title (a browser's follows the page) — the way to tell instances apart that another agent's server launched (their name/command show as unknown, launched_here=false). Probes displays :1–:24 for sandboxes started outside this server (start-display.sh, other agents). Instances whose window was closed by hand disappear from the list and their number is reused.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_instances"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=true, so safety is already covered; the description adds real behavior beyond that — it probes displays :1–:24 for out-of-band sandboxes, which implies nontrivial latency and environmental scanning. It also discloses lifecycle semantics: manually closed windows vanish and their instance number is reused, which matters for interpreting identifiers across calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the field list, which is good, but a substantial share of the text restates the return payload even though the tool has an output schema — that is duplicated information. The remaining sentences about display probing and instance-number reuse do earn their place.

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?

For a zero-parameter read tool with an output schema, the description is complete enough: it names the discovery scope (displays :1–:24) and the identifier-reuse caveat, which the schema cannot convey. It could still say something about cost or ordering of the probing scan, but nothing needed to call it correctly is missing.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The description correctly avoids inventing parameter behavior and instead spends its text on the result shape.

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?

Specific verb plus resource: 'List all running instances (app windows)' followed by an enumeration of the identifying fields, so the agent knows exactly what domain this covers. It does not, however, distinguish itself from related siblings such as window_info or close_instance, which an agent might reach for when inspecting or terminating a window.

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?

Usage is implied rather than stated: the note that 'title' is 'the way to tell instances apart that another agent's server launched' tells the agent when the field matters, and the mention of sandboxes started outside this server hints at a discovery use case. There is no explicit when-to-use / when-not-to-use statement and no named alternative for inspecting a single window.

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