Skip to main content
Glama

Drag and drop

drag_drop
Destructive

Use this when the task calls for a real drag gesture between two UI element ids or coordinates. Prefer element ids from ui_find/ui_snapshot because their current bounds are resolved at execution time; use coordinates only when no semantic endpoints exist. On GNOME Wayland, real drag input requires the consent-backed Remote Desktop portal because XTEST/xdotool drag delivery is not reliable.

Input Schema

NameRequiredDescriptionDefault
to_xNoDestination X coordinate for a drag gesture.
to_yNoDestination Y coordinate for a drag gesture.
to_idNoDestination UI element id; use instead of to_x/to_y.
buttonNoPointer button to use for click/down/up or drag gestures.
deviceYesReMCP device id returned by list_devices. Required for every device operation.
from_xNoSource X coordinate for a drag gesture.
from_yNoSource Y coordinate for a drag gesture.
backendNoInput backend preference. auto uses proven local backends and already-authorized portal input; portal explicitly requests XDG RemoteDesktop consent on Wayland; x11 forces XWayland/xdotool only for operations where read-back testing shows it is reliable. GNOME Wayland keyboard/text deliberately reject x11.
from_idNoSource UI element id; use instead of from_x/from_y.
hold_msNoHow long to hold the pointer button before movement during a drag.
duration_msNoDuration of the drag/movement gesture in milliseconds.

Output Schema

NameRequiredDescriptionDefault
dataNoDrag and drop structured result for drag_drop. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.
textYesConcise human-readable result of the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already signal destructive behavior, read-only=false, and non-idempotency. The description adds meaningful behavioral context beyond annotations: element ids are resolved at execution time, and on GNOME Wayland real drag requires the consent-backed Remote Desktop portal because XTEST/xdotool delivery is unreliable. This gives agents important operational expectations without contradicting any annotation.

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 three sentences with no filler. It front-loads the primary use case, then tucks the two important operational caveats (id preference and Wayland portal requirement) into compact, actionable prose. Every sentence earns its place.

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 tool's complexity — 11 parameters, two mutually exclusive source/destination groups, one required device parameter, backend enums, and an output schema — the description covers the key decision points an agent needs: when to use ids versus coordinates and which backend is required on Wayland. The per-parameter schema and output schema cover the remaining details. A small gap is that the description does not mention the destructive or irreversible nature indicated by annotations, but that is already surfaced structurally.

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 the schema already individually documents all 11 parameters. The description adds value by clarifying the semantic trade-off between from_id/to_id versus from_x/from_y/to_x/to_y and explaining why ids are preferred (current bounds resolved at execution time). This is meaningful context beyond the schema's per-parameter phrasing.

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 states a specific verb and resource: performing a 'real drag gesture between two UI element ids or coordinates.' It clearly distinguishes itself from generic input tools by specifying the gesture type and the source/destination semantics, and its scope is unambiguous even without opening the schema.

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 clear context for when to use the tool ('when the task calls for a real drag gesture') and provides concrete guidance on preferring element ids from ui_find/ui_snapshot over coordinates, including the rationale that bounds are resolved at execution time. It also gives platform-specific backend guidance for GNOME Wayland. It does not explicitly name sibling alternatives or state when not to use this tool, so it stops short of a full when/when-not contrast.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources