Skip to main content
Glama

mouse_drag

Drag the mouse cursor between specified coordinates to interact with sliders, perform drag-and-drop operations, draw on canvases, or resize windows with optional safety guards and window focusing.

Instructions

Click and drag from (startX, startY) to (endX, endY) holding the left mouse button — for sliders, drag-and-drop, canvas drawing, and window resizing. windowTitle optionally focuses before drag. Pass lensId (from perception_register) to run safety guards (identity stable, foreground, coordinates in rect) before dragging and receive post.perception state feedback without a screenshot. Caveats: Left button only; does not support right-drag or middle-drag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startXYes
startYYes
endXYes
endYYes
narrateNoNarration level. rich includes UIA or browser state diff when supported.minimal
speedNoCursor movement speed in px/sec. 0 = instant.
homingNoEnable homing correction if the target window moved.
windowTitleNoPartial title of the target window.
lensIdNoOptional perception lens ID. Guards and envelope same as mouse_click.
Behavior4/5

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

With no annotations provided, the description carries the full burden and does so effectively. It discloses key behavioral traits: it uses the left mouse button only, does not support right-drag or middle-drag, includes safety guards with lensId (identity stable, foreground, coordinates in rect), and provides post-perception state feedback. This covers operational constraints and safety features beyond basic functionality.

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 appropriately sized and front-loaded, starting with the core action and use cases, then detailing optional parameters and caveats. Every sentence adds value, such as explaining lensId functionality and button limitations, with no redundant or wasted words.

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?

Given the complexity (9 parameters, no output schema, no annotations), the description is largely complete: it covers purpose, usage, behavioral traits, and parameter semantics. However, it could be slightly enhanced by mentioning error handling or typical response formats, though the lack of output schema makes this less critical. It adequately supports tool selection and invocation.

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 description coverage is 56% (5 out of 9 parameters have descriptions in the schema). The description adds meaningful context beyond the schema: it explains that windowTitle 'optionally focuses before drag' and lensId 'run safety guards... before dragging and receive post.perception state feedback without a screenshot.' This clarifies the purpose and interaction of these parameters, compensating for the moderate coverage gap.

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 explicitly states the tool's function with a specific verb ('Click and drag') and resource ('from (startX, startY) to (endX, endY)'), and distinguishes it from siblings by specifying it's for 'sliders, drag-and-drop, canvas drawing, and window resizing'—unlike mouse_click or mouse_move. It clearly articulates what the tool does beyond just the name.

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 provides clear context for when to use this tool (e.g., 'for sliders, drag-and-drop, canvas drawing, and window resizing') and mentions optional parameters like windowTitle and lensId for specific scenarios. However, it does not explicitly state when not to use it or name alternatives among siblings, such as mouse_click for simple clicks or scroll for scrolling actions.

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

Install Server

Other Tools

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/Harusame64/desktop-touch-mcp'

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