Skip to main content
Glama
verisoft-ai

windows2-mcp

by verisoft-ai

get_selected_item

Read-only

Retrieve the first selected item from a UI container like ListBox or TreeView. Returns an element ID for further automation.

Instructions

Get the first selected item in a container (e.g. ListBox, TreeView) via the UIA Selection pattern. Returns an element ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
elementIdYesElement ID returned by find_element
Behavior3/5

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

The description adds behavioral context beyond the `readOnlyHint` annotation by naming the UIA Selection pattern and stating the return value. However, it omits crucial details like what happens when no item is selected (e.g., error, null) or whether it works on non-container elements.

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

Conciseness5/5

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

The description is two concise sentences with no redundancy. All information is front-loaded and directly helpful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only tool with one well-documented parameter and no output schema, the description is mostly complete. It could be improved by mentioning behavior when no selection exists, but overall it provides sufficient context for an agent.

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?

The only parameter `elementId` is fully documented in the input schema (100% coverage). The description does not add any extra meaning or constraints beyond what the schema already provides, so baseline score 3 applies.

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 specifies the verb 'Get', the resource 'first selected item in a container', and the mechanism 'via the UIA Selection pattern'. It also mentions the return type 'element ID', distinguishing it from siblings like `get_all_selected_items` and `select_item`.

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?

No guidance is provided on when to use this tool versus alternatives such as `get_all_selected_items` (for multi-select) or `select_item`. The agent is left to infer appropriate context from the name alone.

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/verisoft-ai/windows2-mcp'

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