Skip to main content
Glama

Click in sandbox

sandbox_click

Clicks at pixel coordinates inside a Windows sandbox, using the latest screenshot to map X/Y to the target. Use it for controls without accessible names; prefer UI Automation actions when a control has a name.

Instructions

Click at a point. By default x/y are pixel coordinates in the most recent sandbox_screenshot image. Prefer sandbox_ui_action when the target control has a name: it is more reliable than 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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "sandbox_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
buttonNo
doubleNo
captureIdNoScreenshot to map coordinates against (default latest). Moved/resized windows are rejected.
coordinatesNoscreenshot (default) or raw sandbox screen pixels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-alpha.3

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full disclosure burden; it does add the useful default that x/y are pixels in the latest screenshot, and the schema notes that moved/resized windows are rejected. However, it says nothing about side effects of a click, failure behavior when the coordinate frame is stale, or whether a re-capture is needed after the click.

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 what the tool does and the default coordinate semantics, then the routing advice. No filler or redundancy.

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 six-parameter, unannotated interaction tool with no output schema, the description covers the critical coordinate-frame ambiguity and the sibling routing but omits click-modifier behavior and post-click expectations. An agent could invoke it, but would be guessing on failure handling and on when screen coordinates are appropriate.

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 description coverage is only 33% across six parameters, so the description must compensate: it clarifies the default units and reference image for x/y, which is the highest-risk ambiguity. It adds nothing about button, double, or when to use the screen coordinate mode, leaving half the surface undocumented in both places.

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?

"Click at a point" gives a specific verb and action, and the first sentence immediately establishes the coordinate frame (pixels in the most recent sandbox_screenshot). It also names the preferable sibling for named controls, so an agent can separate pixel-clicking from semantic UI interaction.

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

Usage Guidelines4/5

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

Explicitly states the preferred alternative and the condition that selects it: use sandbox_ui_action when the target control has a name. It stops short of saying when pixel clicking is genuinely required (unnamed/canvas targets, drag endpoints) or what to do when no screenshot exists.

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