Skip to main content
Glama

drag

Destructive

Perform a mouse drag by pressing, moving, and releasing in native coordinates. Enables drawing, slider adjustment, selection boxes, and drag-and-drop on remote desktops.

Instructions

Press-move-release mouse drag in native capture coordinates. Use for drawing, sliders, selection boxes, and drag-and-drop. Side effect: mouse_down → moves → mouse_up on the remote desktop. Prefer send_actions if the drag is one step in a longer predictable sequence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_xYesNative end X
to_yYesNative end Y
from_xYesNative start X
from_yYesNative start Y
session_idYesActive session id
duration_msNoApprox drag duration in ms; more steps when larger (default ~200)
Behavior5/5

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

Discloses the side effect (mouse_down → moves → mouse_up on remote desktop) beyond the annotations' destructiveHint and openWorldHint, giving the agent full behavioral understanding.

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, front-loaded with core action and purpose, followed by side effect and usage guidance. Every sentence is informative with no wasted words.

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

Completeness5/5

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

No output schema, but the description thoroughly explains the drag operation, its side effects, and usage context. With 100% schema coverage for parameters, the definition is complete for an agent to select and invoke the tool correctly.

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 100%, so baseline is 3. The description adds value by clarifying that coordinates are in 'native capture' space, which provides context beyond the schema defaults.

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?

Description clearly states the action (press-move-release mouse drag) and resource (native capture coordinates), listing specific use cases like drawing, sliders, selection boxes, and drag-and-drop, which distinguishes it from siblings.

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

Usage Guidelines5/5

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

Explicitly states when to use this tool (for drag operations) and when to prefer send_actions for longer predictable sequences, providing clear guidance on alternatives.

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/glasswarp/mcp-server'

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