Skip to main content
Glama

window

Destructive

List, inspect, or interact with desktop application windows using UI Automation, with optional screenshots and tokens for follow-up actions.

Instructions

List/read windows or use semantic UIA patterns; never physically falls back.

state accepts capture_mode/allow_fallback for its independent image component; defaults remain screen/false. No focus activation; components are non-atomic. include_tokens=True adds bounded, expiring node tokens usable by later UIA actions. UIA set_value writes once, then checks that same live element for at most 600ms within the remaining call deadline; it never searches again or repeats the write.

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

Input Schema

NameRequiredDescriptionDefault
nthNo
richNo
roleNo
depthNo
limitNo
matchNocontains
queryNo
tokenNo
valueNo
actionNolist
amountNo
formatNojpeg
nativeNo
targetNo
windowNo
compactNo
detailsNo
max_dimNo
qualityNo
timeoutNo
selectorNo
conditionNo
directionNo
max_nodesNo
include_axNo
text_limitNo
capture_modeNoscreen
poll_intervalNo
allow_fallbackNo
include_tokensNo
max_output_bytesNo
max_output_charsNo
include_screenshotNo
allow_process_controlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

C2.7/5.0
Behavior3/5

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

The description does add real behavioral context beyond the annotations: no focus activation, non-atomic components, no physical fallback, bounded/expiring node tokens, and a write-once set_value with a 600ms verification window inside the call deadline. However, it never says which actions trigger the destructiveHint=true behavior, nor what state a set_value or similar write can destroy, which is the most important disclosure for a mutating tool. The context added is meaningful but incomplete for a 34-parameter tool whose annotations flag destructiveness.

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 text is short and largely front-loaded, but it is written as semicolon-joined fragments in dense internal jargon ("independent image component", "non-atomic", "never physically falls back") that cost the reader more than the space saved. Structure is acceptable but a clean action list would have served better than prose caveats.

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?

For a 34-parameter, multi-action tool with no output schema and no per-parameter documentation, the description is far too thin. It omits the action enumeration, the meaning of most parameters, what the read/listing result looks like, and which operations are destructive despite destructiveHint=true. What is present is accurate but leaves the agent unable to invoke the tool correctly without trial and error.

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?

With 34 parameters at 0% schema description coverage, the description carries the full burden and covers only a handful: capture_mode/allow_fallback under "state", include_tokens, and the set_value path. Critical parameters such as action, selector, condition, target, window, role, depth, and max_nodes receive no explanation, and valid action values are never listed. Two-dozen-plus parameters are undocumented in both the schema and the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause "List/read windows or use semantic UIA patterns" gives a verb and resource, but "use semantic UIA patterns" is jargon that an agent cannot act on, and the actual set of operations is scattered across the text (list, state, set_value) rather than stated. Nothing distinguishes this tool from siblings like act or screenshot, which plausibly overlap with the UIA and capture capabilities hinted at here.

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?

There is no when-to-use vs. when-not guidance and no reference to any alternative tool. The description never enumerates valid values of the action parameter, so an agent must guess which actions exist (list, state, set_value are only mentioned in passing) and cannot know when a UIA-pattern path is preferable to a plain window listing.

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

Deploy Server

Other Tools