Skip to main content
Glama

desktop_click

Clicks UI elements by element token for background automation, or by x/y screenshot pixels when tokens are unavailable.

Instructions

Click a UI element by element_token (preferred, works in background) OR by x/y screenshot pixels.

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": "desktop_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
pidNo
countNo
scopeNo
buttonNoleft
window_idNo
delivery_modeNo
element_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It hints that element_token operates in the background, which is useful, but a click is a mutating, potentially destructive action and nothing is said about side effects, focus changes, failure behavior, or preconditions such as window targeting. Large gaps remain for a no-annotation 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.

Conciseness4/5

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

A single tight sentence with the preferred path front-loaded and the alternate path after 'OR'. No filler, though the brevity borders on under-specification for a 9-parameter tool.

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?

With 9 parameters, zero schema descriptions, no annotations, and no output schema, this definition should do far more work. Target selection for pid/window_id/scope and the effect of delivery_mode or count are left entirely to guesswork.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, and the description only explains element_token, x, y. The remaining six parameters (pid, window_id, scope, button, count, delivery_mode) get no meaning at all, including the important distinction between background and foreground delivery.

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?

States a specific verb (click) and resource (UI element) with two mutually exclusive targeting modes, so an agent can distinguish it from siblings like desktop_drag or desktop_scroll. It does not explicitly name any sibling, which keeps it short of a 5.

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

Usage Guidelines3/5

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

The 'preferred' marker on element_token plus 'works in background' gives real selection guidance between the two modes. However, it never says how to obtain an element_token (e.g., via desktop_get_window_state or desktop_ocr_find), nor when coordinates should be used instead.

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