Skip to main content
Glama
mario-andreschak

MCP Windows Desktop Automation

winGetHandle

Read-onlyIdempotent

Retrieve the handle of a Windows desktop window using its title and optional text, so scripts can target that window for automation.

Instructions

Windows AutoIt winGetHandle. Requires a trusted owner and an interactive Windows x64 desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoWindow text
titleYesWindow title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds genuine environmental context — a trusted owner and an interactive Windows x64 desktop session are needed — which is not derivable from the annotations. It stops there, though: no note on what happens if the window is absent or ambiguous.

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?

Very short and front-loaded, so it is not bloated, but the first sentence earns nothing — it repeats the name and namespace. Only the second sentence carries information, meaning roughly half the text is waste in an already tiny description.

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?

With no output schema, the description should say that a window handle is returned (and what form it takes), since that is the entire point of the tool; instead it is silent. Annotations and full schema coverage carry the rest, so the definition is not inadequate, but it stops short of complete for a lookup whose return value matters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% (both `text` and `title` are documented), so the schema carries the parameter burden and baseline 3 applies. The description adds no matching semantics, and notably does not explain the relationship or precedence between title and text when both are supplied.

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

Purpose2/5

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

"Windows AutoIt winGetHandle" is essentially a restatement of the tool name and namespace, not a statement of what the tool does. An agent must infer from the name and the sibling set (winGetTitle, winGetPos, winGetText, controlGetHandle) that this retrieves a window handle. No verb, no output object, no scope is given.

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 only guidance is a prerequisite ("Requires a trusted owner and an interactive Windows x64 desktop"), not when-to-use guidance. Nothing distinguishes it from winGetTitle/winGetPos or explains when a handle is preferable to a title string, which is the central selection question among these siblings.

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