Skip to main content
Glama

mouse_drag

Drags the mouse from a start coordinate to an end coordinate to automate selecting, moving, or dropping items in macOS applications.

Instructions

Click and drag from one point to another.

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": {
      "startX": "<startX>",
      "startY": "<startY>",
      "endX": "<endX>",
      "endY": "<endY>"
    },
    "name": "mouse_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
endXYesEnd X coordinate
endYYesEnd Y coordinate
startXYesStart X coordinate
startYYesStart Y coordinate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It implies a button-down/move/button-up sequence but does not state which button, whether intermediate move events or a duration are used, or what happens with off-screen or fractional coordinates — all material for drag-and-drop reliability.

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 no waste. It is appropriately terse for a simple gesture tool, though the brevity borders on under-specification rather than crispness.

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?

For a four-required-number tool with full schema coverage and no output schema, the description covers the core action adequately. It stops short of the behavioral detail (button, focus requirement, timing) an agent would need to invoke drag-and-drop reliably.

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 all four coordinates are already documented. The phrase 'from one point to another' lightly confirms the startX/startY to endX/endY pairing but adds no units, coordinate-space, or format detail beyond 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?

States a specific verb+resource: 'Click and drag from one point to another.' An agent can distinguish this (press-move-release gesture) from mouse_click or mouse_move, though the description never names those siblings explicitly.

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 guidance on when to choose this over mouse_move (which presumably moves without holding a button) or mouse_click, and no prerequisites such as needing the window focused or the cursor positioned first. The agent must infer the gesture semantics.

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