Skip to main content
Glama
mario-andreschak

MCP Windows Desktop Automation

controlGetHandle

Read-onlyIdempotent

Retrieve the handle of a specified Windows UI control using its window handle and control identifier, enabling precise automation interactions.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
controlYesControl identifier
windowHandleYesWindow or control handle

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 real value by disclosing the trust and interactive-desktop requirements, but says nothing about failure modes (e.g., invalid window handle) or when no handle is found.

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?

It is short and front-loaded, and each sentence is terse, but the first sentence is pure name restatement and therefore does not earn its place. The prereq sentence is the only substantive content.

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?

For a low-complexity two-parameter getter with full schema coverage, existing annotations and no output schema, a minimal description is tolerable. However, it omits the core fact that the return value is a handle usable with the *ByHandle siblings, leaving a meaningful gap.

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% with only two required parameters, so the schema already documents windowHandle and control. The description adds no syntax, format, or relationship detail beyond the schema, making the baseline 3 appropriate.

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?

The description leads with 'Windows AutoIt controlGetHandle', which simply restates the tool name rather than stating what it does. It never says the tool retrieves a handle for a control, nor distinguishes it from siblings like winGetHandle or controlGetText.

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 second sentence states environmental preconditions (trusted owner, interactive Windows x64 desktop), which is useful, but there is no when-to-use guidance and no pointer to alternatives such as controlClickByHandle, which consumes the handle this tool produces.

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