UI Automation server using Windows UI Automation API for desktop automation, element discovery, interaction, and screen capture via MCP protocol
UIAutomation MCP presents a moderately well-defined toolkit for Windows UI automation with detailed parameter schemas and descriptions for most tools. However, there are significant gaps in output schema documentation, inconsistent parameter naming conventions, and missing error handling guidance. All 7 tools are explicitly registered via [McpServerTool] attributes with Description annotations. Parameters include type definitions (string, integer, long, boolean) and descriptions. The SearchElements tool has exceptionally detailed documentation (600+ chars), but most other tools have shorter, less contextual descriptions. None of the tools document their return schemas explicitly, outputs are serialized via JsonSerializationHelper but the structure is not visible in the provided code. Tool naming follows verb_noun convention (SearchElements, GetElementTree, TakeScreenshot, LaunchApplication, InvokeElement, SetValue, ToggleElement), which is good. However, parameter naming is inconsistent: some use camelCase (automationId, windowTitle, windowHandle, timeoutSeconds), creating cognitive load. Error handling is delegated to service layers but not documented in tool signatures. No toolAnnotations (readOnlyHint, destructiveHint, idempotentHint) are present in the [McpServerTool] attributes, making it unclear to clients which tools are safe to call without review. The risk metadata provided (READ_ONLY vs WRITE) is useful but not exposed in the MCP protocol layer.
Get the hierarchical element tree structure for navigation and overview. Returns basic ElementInfo without detailed pattern information. For detailed element analysis, use SearchElements with includeDetails=true.
Invoke (click/activate) a UI element using Invoke pattern
Launch any application with automatic detection (Win32/UWP)
Search for UI elements with flexible filtering options. Returns basic element properties by default. When includeDetails=true, returns comprehensive data including: • All supported UI patterns (Toggle state, Range values, Window state, Selection info, SelectionItem state per element, Grid/Table structure, Scroll position, Text content, Transform capabilities, etc.) • Accessibility information (labeledBy, helpText, accessKey, acceleratorKey) • Advanced properties (frameworkId, runtimeId, isPassword) • Element hierarchy (parent and children relationships). For window detection, use scope='children' with requiredPattern='Window' (finds all elements with WindowPattern including Panes). Avoid controlType='Window' as it excludes WindowPattern-supporting Panes and other window-like elements.
Set the value of a text input or value pattern element
No output schemas documented. While input parameters have detailed schema definitions, the response structures are not visible in code. The JsonSerializationHelper serializes objects, but clients cannot understand what fields to expect in the response. This prevents proper chaining of tool outputs and forces LLMs to guess at response structure.
Missing tool annotations (readOnlyHint, destructiveHint, idempotentHint) in [McpServerTool] attributes. Tools like LaunchApplication and InvokeElement have write effects but this is not exposed via protocol. Risk metadata exists in comments but is not machine-parseable by MCP clients.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 55 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 42 | - | v1 |
Take a screenshot of the desktop or specific window
Toggle the state of a UI element with Toggle pattern
Parameter naming inconsistency. Most parameters use camelCase (automationId, windowTitle, windowHandle, timeoutSeconds) while conventions in production tools favor snake_case or consistency with downstream tool expectations. If outputs use different naming, this forces LLM mapping effort.
No error handling guidance in descriptions. Tools reference timeoutSeconds, but no documentation of timeout behavior (retry? fail gracefully? return partial results?). LaunchApplication, SearchElements, and GetElementTree all have async operations but do not describe failure modes or recovery paths.
SetValue and ToggleElement descriptions are generic (60 chars) and lack context on when to use them vs. other patterns. SetValue does not specify whether it accepts only text or also numeric values, and ToggleElement does not clarify which UI patterns it supports.
InvokeElement, SetValue, and ToggleElement all require at least one of automationId or name, but this is not enforced as a schema constraint or documented as mutually required. LLMs may omit both, leading to runtime errors.