Skip to main content
Glama
mario-andreschak

MCP Windows Desktop Automation

winSetState

Destructive

Control a Windows window's state by specifying its title and AutoIt flags to minimize, maximize, restore, show, or hide it.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoWindow text
flagsYesState flags
titleYesWindow title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the mutation profile is covered. The description adds genuine value by stating the auth requirement (trusted owner) and platform requirement (interactive Windows x64 desktop), which the annotations don't convey. It stops short of saying what state change is applied or whether it is reversible.

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?

Two short sentences with no padding, so it is concise, but the first sentence is a wasted tautology and the second carries all the content. Efficient in size yet poorly front-loaded.

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, non-idempotent window mutation with no output schema, an agent needs to know what state flags do and what the effect is. The description supplies only environment preconditions and omits the core behavioral semantics, leaving a real 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% (title, text, flags all documented in the schema), so the baseline is 3. The description adds nothing about the flags bitmask — the most semantically important parameter — leaving its meaning entirely to the terse "State flags" schema text.

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 winSetState" restates the tool name and its library origin rather than describing what the tool does. It never says it changes a window's display state (show/hide/minimize/maximize/restore), so an agent gets no verb+resource explanation and cannot distinguish it from winMove, winActivate, or winClose.

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 precondition ("Requires a trusted owner and an interactive Windows x64 desktop"), which is context, not when-to-use. There is no mention of when to prefer winSetState over siblings like winActivate or winShow, nor any exclusions.

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