Skip to main content
Glama

desktop_list_windows

Lists top-level Windows desktop windows with process ID, handle, app name, title, and bounds, so you can inspect or filter open applications by app, PID, or on-screen status.

Instructions

List top-level Windows desktop windows with pid, window_id (HWND), app_name, title, and bounds.

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": "desktop_list_windows"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoOptional case-insensitive app name filter
pidNoOptional process ID filter
on_screen_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/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, and it only covers what fields come back. It says nothing about the platform constraints beyond the word 'Windows', that only top-level windows are returned (child windows excluded), or that filtering behavior changes what is listed.

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?

A single front-loaded sentence with no filler; the return-field enumeration is dense but useful given there is no output schema. Slightly list-heavy, but nothing is wasted.

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?

Listing the returned fields compensates for the absent output schema, which is the biggest gap for a list tool. However, with no annotations and a silent default on on_screen_only, the definition leaves an agent unable to predict which windows will actually appear in the result.

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?

All three parameters are filtering-related, yet the description never mentions filtering at all. Schema coverage is 67% and on_screen_only has a default of true with no description in either the schema or the description text, so the most behaviorally significant parameter is left unexplained.

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?

States a specific verb and resource: 'List top-level Windows desktop windows', and enumerates the fields returned (pid, window_id/HWND, app_name, title, bounds). That is enough to tell it apart from single-window siblings like desktop_get_window_state, though the description never names them.

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?

No when-to-use guidance and no alternatives mentioned. An agent must infer that this is the enumeration step before desktop_get_window_state, desktop_bring_to_front, or desktop_window_control; nothing in the text says so, and no exclusions are given.

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