Skip to main content
Glama

list_windows

Lists open desktop windows with HWND, title, process, monitor index, and bounds, with optional filters for visibility, monitor, title, or process.

Instructions

List open Windows desktop windows with HWND, title, process, monitor index, and bounding rects.

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_windows"
  }
}

Input Schema

NameRequiredDescriptionDefault
visible_onlyNo
monitor_indexNo
title_containsNo
process_containsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. "List" implies a read-only enumeration, and the returned fields are named, but the description does not disclose permission requirements, whether hidden or minimized windows are included, ordering, or performance characteristics. It adds some useful context but leaves notable behavioral gaps.

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?

The definition is a single, front-loaded sentence that states the operation, scope, and returned fields with no wasted wording. It is appropriately sized for a listing tool.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but the four optional filter parameters are undocumented at 0% schema coverage and the description provides no usage guidance. For a tool whose main invocation choices are filtering parameters, this leaves important context missing.

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?

Schema description coverage is 0%, so the description should compensate by explaining the four filters: visible_only, monitor_index, title_contains, and process_contains. It does not mention that these parameters filter results or explain their defaults and combined behavior, so the agent gets little meaning beyond the parameter names.

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 specific verb ("List") and resource ("open Windows desktop windows") and states the returned fields: HWND, title, process, monitor index, and bounding rects. It is clear what the tool does, but it does not explicitly distinguish itself from the sibling list_isolated_windows, so it falls short of a 5.

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?

The description gives no guidance on when to use this tool rather than capture_window, inspect_ui, list_isolated_windows, or other siblings. It also does not mention preconditions or exclusions, leaving the agent to infer usage from the name alone.

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