Skip to main content
Glama

vm_click

Clicks at specific (x, y) coordinates in a VM's latest screenshot to simulate mouse input for UI automation, with optional left, right, or middle button and double-click.

Instructions

Clicks at (x, y) in the latest screenshot's pixels. button: left, right or middle. Needs an absolute pointer in the guest (UTM's default USB tablet).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vm": "<vm>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "vm_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
vmYes
buttonNoleft
doubleNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it usefully discloses the coordinate frame (latest screenshot pixels) and the absolute-pointer/USB-tablet requirement. It does not disclose whether the call waits for the click to land, what happens if no screenshot exists yet, or error behavior, which are material gaps for an input-injection 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?

Three short sentences, front-loaded with the core action and coordinate frame, followed by the parameter note and prerequisite. No filler; every sentence carries information.

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?

An output schema exists, so return values need not be explained. Still, for a 5-parameter input tool with no annotations and zero schema descriptions, the omission of `vm` and `double` semantics and the dependency on a prior screenshot leaves meaningful gaps.

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 coverage is 0%, so the description must compensate; it meaningfully defines x/y as screenshot-pixel coordinates and enumerates button values (left, right, middle), which the schema lacks as an enum. It says nothing about the required `vm` parameter or the `double` boolean, so two of five parameters remain undocumented.

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 (clicks) and resource/coordinate frame (x, y in the latest screenshot's pixels), which is unambiguous. It does not explicitly name a sibling such as vm_key, vm_type, or vm_ui_act to differentiate when a raw click is preferable, so it stops 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 prerequisite 'Needs an absolute pointer in the guest (UTM's default USB tablet)' gives real usage context an agent can act on. However, there is no explicit when-to-use/when-not guidance versus the other input tools (vm_key, vm_type, vm_ui_act), leaving the choice to inference.

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