Skip to main content
Glama

inspect_ui

Scan Windows UI Automation controls in a target window and assign cached element IDs (e1, e2, ...) so later actions can target specific UI elements.

Instructions

Inspect Windows UI Automation controls of a target window and assign cached element IDs (e1, e2, ...).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "inspect_ui"
  }
}

Input Schema

NameRequiredDescriptionDefault
hwndNo
max_depthNo
max_elementsNo
title_containsNo
with_screenshotNo
interactive_onlyNo
process_containsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses one behavior (assigning cached element IDs) but says nothing about how long those IDs remain valid, whether the call is read-only, how expensive a deep traversal is, or whether the default interactive_only filter will hide controls the agent might need. For an inspection tool with side-effect-like caching, these omissions matter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with no wasted words, and the caching behavior is stated up front. It is efficient, though the brevity contributes directly to the missing parameter and usage detail elsewhere.

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?

Seven parameters, none documented, no annotations, and no output schema. The description never explains what the tool returns beyond the ID scheme, nor the defaults that materially change results (interactive_only=true filtering, max_elements=150 truncation, max_depth=10). An agent could call it but cannot predict what it will get back.

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 0% across seven parameters, so the description should compensate. It only loosely gestures at target selection (target window) without mapping to hwnd, title_contains, or process_contains, and never mentions max_depth, max_elements, with_screenshot, or interactive_only. The one behavioral detail it does add is the e1/e2 identifier scheme, which is not in the schema.

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

Purpose4/5

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

The description names a specific verb and resource: inspecting Windows UI Automation controls of a target window. It also explains the side effect of assigning cached element IDs (e1, e2, ...), which is genuinely informative. It stops short of distinguishing itself from siblings such as list_windows or capture_window, leaving the agent to infer the boundary.

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?

There is no statement of when to use this tool versus list_windows, capture_window, or click_element. The cached-ID mechanic hints that this is a prerequisite step for element-targeted actions, but the agent must infer that relationship rather than being told. No prerequisites or exclusions are given.

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