Skip to main content
Glama
thebtf

netcoredbg-mcp

by thebtf

ui_invoke

Invoke UI elements (buttons, menu items, hyperlinks) via UIA InvokePattern without mouse movement, even when off-screen or obscured. Falls back to Click() when unsupported.

Instructions

Invoke a UI element using UIA InvokePattern (no mouse movement).

Note: If app is STOPPED at breakpoint, resume with continue_execution() first.

Preferred over ui_click for buttons, menu items, and hyperlinks because it works reliably even when the element is off-screen or partially obscured. Falls back to Click() if InvokePattern is not supported.

WPF top-level MenuItem headers: scope the native ENTER key to the parent, then rediscover the popup child and call ui_invoke separately for that exact child. Do not add a fixture-specific key handler. Invoking the parent alone does not guarantee submenu peers materialize. Use pre/post UI oracles; a child missing after verified expansion is a harness observation, not automatically a product defect.

Args: automation_id: AutomationId property name: Element's Name/Title property control_type: Control type (Button, MenuItem, Hyperlink, etc.) root_id: Optional AutomationId to scope search to a subtree xpath: Optional XPath expression (FlaUI backend only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
xpathNo
root_idNo
control_typeNo
automation_idNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.17.2

TDQS

A4.3/5.0
Behavior4/5

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

The description discloses key behavioral traits beyond annotations: it uses InvokePattern, avoids mouse movement, falls back to Click() if needed, and has a special note about WPF menu headers. It also warns about a common gotcha (breakpoint pause). While it doesn't mention side effects or error behavior, the description adds valuable insight into how the tool operates, which is not contradicted by the sparse annotations.

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?

The description is a mix of general guidance and very specific troubleshooting (the WPF MenuItem paragraph). While accurate, the WPF section is somewhat tangential and could be shortened or moved to a note, as it is likely a rare edge case. The breakpoint note is useful but interrupts the flow. Overall, it delivers valuable information but could be more streamlined.

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 tool with five optional parameters and no output schema, the description covers critical usage constraints such as the InvokePattern vs Click fallback, breakpoint interaction, and nested menu handling. However, it omits details like how multiple selectors (e.g., name + automation_id) are combined (AND vs OR), behavior when no elements match, or timeout defaults. It addresses common pitfalls but leaves the agent guessing on some execution semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description carries the full burden for parameter semantics. It lists each parameter with a concise purpose: 'root_id: Optional AutomationId to scope search to a subtree' and 'xpath: Optional XPath expression (FlaUI backend only)' adds implementation-specific context. This goes beyond a bare list, though it could benefit from examples or selector precedence logic.

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

Purpose5/5

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

The description clearly states the tool's function: 'Invoke a UI element using UIA InvokePattern (no mouse movement).' It distinguishes itself from the sibling 'ui_click' by explicitly noting it is 'Preferred over ui_click for buttons, menu items, and hyperlinks' and explains the advantage (works when off-screen or obscured). This makes the purpose unambiguous and differentiates it from similar tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance: 'Preferred over ui_click for buttons, menu items, and hyperlinks because it works reliably even when the element is off-screen or partially obscured.' It also gives a direct alternative (ui_click) and a prerequisite ('If app is STOPPED at breakpoint, resume with continue_execution() first'), offering clear direction on when to use this tool versus others.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thebtf/netcoredbg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server