Skip to main content
Glama
mcp-server-visual-stack-browser

mcp-server-visual-stack-browser

by cadivus

click_at_coordinates

Clicks a web page at specific X/Y viewport coordinates, enabling precise interaction with elements found visually in a screenshot, including mapping coordinates from resized image dimensions.

Instructions

Click at (x, y) coordinates in the viewport. Use take_screenshot first to visually locate the target element and determine its coordinates. If coordinates were obtained from a resized screenshot, set relative_by_width/height to the screenshot dimensions to map them back.

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

Input Schema

NameRequiredDescriptionDefault
xYesX pixel coordinate.
yYesY pixel coordinate.
session_idYesSession ID from start_browser.
relative_by_widthNoWidth of the resized screenshot the coordinates came from.
relative_by_heightNoHeight of the resized screenshot the coordinates came from.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the prerequisite capture step and the coordinate remapping behavior for resized screenshots, which is genuinely useful context. However, it says nothing about what happens on out-of-bounds coordinates, whether the click waits for an element, or whether it returns success/error state.

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 action, then the prerequisite, then the edge-case handling. Nothing is redundant and each sentence contributes actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description covers the essential calling context: coordinates, the screenshot prerequisite, and coordinate remapping. What is missing is failure/return behavior, which is a modest gap given the tool is a single low-complexity action.

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 coverage is 100% (baseline 3), and the description adds meaning beyond the schema by explaining the purpose of relative_by_width/height: to map coordinates back when they came from a resized screenshot. The schema only labels them as screenshot dimensions; the description supplies the operational rule for when and how to set them.

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 and resource: 'Click at (x, y) coordinates in the viewport', which distinguishes it from siblings like type_text, press_key, and scroll. It is unambiguous about the input modality (viewport pixel coordinates). It stops short of explicitly contrasting with alternatives, but the action is clear.

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?

Gives explicit procedural guidance: 'Use take_screenshot first to visually locate the target element and determine its coordinates', naming the sibling that produces the prerequisite input. It also states the condition for using relative_by_width/height (coordinates from a resized screenshot). It does not say when NOT to click or what to do if the target is not visible, so it falls short of the top tier.

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