Skip to main content
Glama
mario-andreschak

MCP Windows Desktop Automation

winActivateByHandle

Destructive

Activates a Windows window by its handle to bring it to the foreground, enabling desktop automation tasks to target the correct window.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
handleYesWindow or control handle

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and non-idempotent, so the agent knows this can alter system state. The description adds the environment/target-window context ('trusted owner', interactive x64 desktop), which is genuinely useful beyond the annotations, but doesn't disclose what activation actually changes (focus, z-order, foreground state).

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?

Extremely short, but it front-loads a restatement of the name rather than the useful constraint. The valuable content ('trusted owner', 'interactive Windows x64 desktop') is buried in the second clause.

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 destructive, open-world mutation tool with no output schema, the description is too thin. It should explain what 'activate' does (focus/foreground), what happens on failure, and how it relates to winActivate, none of which are covered.

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%, so the single 'handle' parameter is fully documented in the schema and the description adds no syntax or format detail. Baseline applies per the coverage rule.

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 description restates the tool family ('Windows AutoIt winActivateByHandle') without explaining what activation means or doing distinct work. It relies on the name to convey purpose. The sibling winActivate exists, so the 'ByHandle' variant should be distinguished, but the description never contrasts 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?

It names one environmental precondition ('trusted owner', 'interactive Windows x64 desktop') but never states when to use this over the sibling winActivate or winActive. No when/when-not guidance and no explicit alternative selection.

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