Skip to main content
Glama

glass_click

Click at exact window-relative coordinates using left, right, or middle button, with optional multi-click counts and modifier keys like Ctrl or Shift for multi-select actions.

Instructions

Click at window-relative coordinates. button: left|right|middle; count for multi-click. Optional modifiers held during the action, e.g. ["ctrl"] or ["ctrl","shift"] for multi/range-select. If at least two next actions or waits are known, use glass_do instead of separate calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesClick point x, window-relative — 0 is the window's left edge, not the screen's.
yYesClick point y, window-relative — 0 is the window's top edge, not the screen's.
countNoConsecutive clicks at this point (default 1, valid range 1 through 10); pass 2 for a double-click.
buttonNo"left" (default), "right", or "middle".
modifiersNoModifier keys to hold during the action, e.g. ["ctrl"] or ["ctrl","shift"] for multi/range-select.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv1.5.1
    • changedInput schema / properties / count / description
      Previous value: -"Consecutive clicks at this point (default 1); pass 2 for a double-click."New value: +"Consecutive clicks at this point (default 1, valid range 1 through 10); pass 2 for a\ndouble-click."
    • addedInput schema / properties / count / maximum
      Added value: +10
    • changedInput schema / properties / count / minimum
      Previous value: -0New value: +1
  2. Changed4 schema fields changedv1.2.0
    • addedInput schema / properties / count / description
      Added value: +"Consecutive clicks at this point (default 1); pass 2 for a double-click."
    • addedInput schema / properties / x / description
      Added value: +"Click point x, window-relative — 0 is the window's left edge, not the screen's."
    • addedInput schema / properties / y / description
      Added value: +"Click point y, window-relative — 0 is the window's top edge, not the screen's."
    • removedInput schema / title
      Removed value: -"ClickArgs"
  3. Addedv1.0.3

TDQS

A4/5.0
Behavior3/5

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

Annotations already indicate readOnlyHint=false and destructiveHint=false, so the click is known to be an input action rather than a read-only or outright destructive operation. The description adds the modifier-held-during-action behavior and coordinate-relative semantics, but it does not disclose potential side effects, focus requirements, or failure modes. This is adequate but not highly transparent given the action-oriented nature of the 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?

The description is compact and front-loaded with the core action. Every sentence serves a purpose: the coordinate mechanism, the parameter variants, the modifier behavior, and the batching alternative via glass_do. There is no filler or redundant elaboration.

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?

For a five-parameter tool with full schema coverage and no output schema, the description covers the essential call context: coordinate frame, click variants, modifier usage, and an alternative for batching. It could mention window focus or the need to select a target window beforehand, but that is likely handled by the surrounding workflow and sibling tools. Overall, an agent has enough to invoke this tool correctly.

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 100%, so the schema fully documents x, y, count, button, and modifiers. The description largely restates these values ('button: left|right|middle; count for multi-click') and gives examples already present in the schema. It adds little meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 resource: 'Click at window-relative coordinates.' This clearly identifies the tool's action and distinguishes it from element-based siblings like glass_click_element, since it works from raw coordinates rather than UI elements. The button/count/modifiers details further pin down the operation.

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?

The description gives explicit routing guidance: when at least two subsequent actions or waits are known, use glass_do instead of issuing separate calls. This is a concrete alternative with a clear condition. It does not explicitly contrast with glass_click_element, but the 'window-relative coordinates' language makes the coordinate-based use case reasonably clear.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fixed-width/glass'

If you have feedback or need assistance with the MCP directory API, please join our Discord server