Skip to main content
Glama

desktop_drag

Simulate a press-drag-release mouse gesture from one screen coordinate to another to move, select, or drag items within a window or across the desktop.

Instructions

Press-drag-release mouse gesture from (from_x, from_y) to (to_x, to_y).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from_x": "<from_x>",
      "from_y": "<from_y>",
      "to_x": "<to_x>",
      "to_y": "<to_y>"
    },
    "name": "desktop_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
to_xYes
to_yYes
scopeNo
stepsNo
buttonNoleft
from_xYes
from_yYes
window_idNo
duration_msNo
delivery_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It conveys the press-drag-release sequence but says nothing about targeting behavior, side effects, permissions, defaults, or what happens when the drag crosses window boundaries.

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?

The definition is a single efficient sentence with no wasted words, and the core gesture is front-loaded. It is appropriately sized for what it attempts to say, though that is not enough for the tool's complexity.

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

Completeness2/5

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

For an 11-parameter tool with no annotations and no output schema, the description is far too sparse. It explains the coordinate tuple but leaves most parameters, execution modes, and behavioral details undocumented, making correct invocation dependent almost entirely on the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and 7 of the 11 parameters are never mentioned in the description. The four coordinate parameters are implied by the gesture notation, but pid, scope, steps, button, window_id, duration_ms, and delivery_mode are left entirely to the schema.

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?

The description names a specific gesture ('Press-drag-release mouse gesture') and identifies the coordinate pairs that define it. It is clearly distinct from siblings such as desktop_click and desktop_scroll, though it does not explicitly differentiate itself in text.

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?

The description states what the gesture does but gives no guidance on when to use it versus alternatives like desktop_click or desktop_scroll. It also omits any context about window versus desktop scope or background versus foreground delivery.

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