Skip to main content
Glama

Click

click

Simulate a left or right mouse button press at specified x,y coordinates on a peer's display; coordinates map to the latest screenshot by default, with an option to use real screen pixels.

Instructions

Click at x,y on the peer's display. By default x,y are pixels of the latest screenshot of that display (mapped to the real screen); set screen_pixels to pass real screen pixels.

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": {
      "peer": "<peer>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
peerYesThe peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly
buttonNo
doubleNo
displayNoDisplay index or name from `info` (default: the main display)
screen_pixelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag this as a non-read-only, open-world action, so the bar is lower. The description adds real behavioral context that the annotations do not: the default coordinate space is derived from the latest screenshot and mapped to the real screen, which is exactly the kind of nuance an agent would otherwise get wrong. It still omits failure modes and the precondition that a screenshot be taken.

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?

Two sentences, no filler, and the default coordinate behavior is front-loaded right after the action statement. Every clause carries information the agent needs.

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 mutating, open-world input tool with no output schema, the definition covers the hardest part (coordinate mapping) but leaves gaps: no precondition that a screenshot exists, no mention of what happens on failure or to which display, and two parameters unexplained. Adequate but not complete.

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 only 29%, so the description carries weight here, and it does explain the ambiguous trio (x, y, screen_pixels) with a clear default-vs-override rule. However, 'button' and 'double' receive no explanation in either the schema or the description, leaving two of seven parameters 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?

The description opens with a specific verb and target: 'Click at x,y on the peer's display', which clearly distinguishes it from siblings like move, scroll, and type_text. It stops short of explicitly contrasting itself with those siblings, but the action and target are unambiguous.

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?

Usage is implied rather than stated: an agent can infer this is the tool for clicking, but nothing says when to prefer it over move or scroll, or that a screenshot must exist first. The coordinate-mode guidance ('By default... set screen_pixels...') is the closest thing to a conditional, and it is genuinely useful.

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