Skip to main content
Glama

drag

Destructive

Simulates a mouse press and move from a start point to an end point in a target app, supporting screenshot or window coordinates for automated GUI interactions like selecting or moving items.

Instructions

Drag from one screenshot/window-relative coordinate to another.

Input Schema

NameRequiredDescriptionDefault
appYesApp name, Hyprland class/title, pid, or address:0x... selector.
to_xNoEnd X coordinate in coordinate_space.
to_yNoEnd Y coordinate in coordinate_space.
from_xNoStart X coordinate in coordinate_space.
from_yNoStart Y coordinate in coordinate_space.
durationNoDrag pacing duration in seconds. Defaults to 0.2.
coordinateNo(x, y) destination coordinate in coordinate_space.
coordinate_spaceNoCoordinate space. screenshot uses get_app_state pixels; window uses logical coordinates from the target window's top-left.screenshot
start_coordinateNo(x, y) starting coordinate for a drag in coordinate_space.
confirmation_tokenNoExternally approved, one-time challenge ID from request_confirmation for a high-risk action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered structurally. The description adds the useful distinction that coordinates are screenshot- or window-relative, but stays silent on the confirmation workflow, reversibility, and any side effects of a drag on the target app.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with zero filler. It is efficient, though arguably terse for a 10-parameter tool with a confirmation workflow that goes unmentioned.

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?

Parameter documentation and annotations are rich, and no output schema is needed. The missing piece is behavioral context around the required confirmation_token for high-risk drags and how this tool relates to left_click_drag, which matters for correct invocation.

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 both coordinates, duration, app selector, and coordinate_space are fully documented in the schema itself. The description only loosely ties 'screenshot/window-relative coordinate' to the coordinate_space enum, adding no syntax or format detail beyond the schema baseline.

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?

Specific verb (drag) plus resource (coordinates) with scope clarification that both start and end points are involved. However, it does not distinguish itself from the highly similar sibling left_click_drag, leaving the agent to guess which of the two drag tools to invoke.

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

Usage Guidelines2/5

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

No when-to-use guidance, no exclusions, and no mention of when this differs from left_click_drag or hover. It also fails to state that a confirmation_token may be required before a high-risk drag.

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