Skip to main content
Glama

qt_click

Simulate mouse clicks on PySide6 desktop application widgets to interact with UI elements during testing or automation.

Instructions

Click a widget.

Args:
    ref: Widget ref from qt_snapshot.
    button: Mouse button - 'left', 'right', or 'middle'.
    modifiers: Keyboard modifiers - 'shift', 'ctrl', 'alt', 'meta'.
    position: [x, y] relative to widget top-left. Default: center.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYes
buttonNoleft
modifiersNo
positionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries full burden but provides limited behavioral context. It describes the action (clicking) and parameter defaults, but doesn't disclose side effects (e.g., UI changes, event triggers), error conditions, or performance implications. It's minimally adequate but lacks depth for a mutation tool.

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 well-structured and concise. It starts with the core purpose, then lists parameters with clear explanations in a bullet-like format. Every sentence adds value, with no wasted words, making it easy to scan and understand.

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?

Given 4 parameters with 0% schema coverage and no annotations, the description does a decent job explaining inputs but lacks output details (though an output schema exists). For a UI interaction tool, it could better cover behavioral aspects like what happens post-click or error handling, leaving some gaps.

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?

Schema description coverage is 0%, so the description must compensate. It effectively explains all 4 parameters: 'ref' source, 'button' options, 'modifiers' options, and 'position' meaning and default. This adds significant value beyond the bare schema, though it could detail format constraints (e.g., array length for position).

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 clearly states the tool's purpose: 'Click a widget' specifies the verb and resource. It distinguishes from siblings like qt_key_press or qt_set_property by focusing on mouse interaction, though it doesn't explicitly contrast with similar tools like qt_trigger_action.

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 description provides minimal usage guidance. It mentions that 'ref' comes from 'qt_snapshot', which hints at a prerequisite, but doesn't explain when to use this tool versus alternatives like qt_trigger_action or qt_invoke_slot. No explicit when-not-to-use or comparison with siblings is provided.

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/0xCarbon/qt-mcp'

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