Skip to main content
Glama

Drag and drop

browser_drag

Press on one element (from_ref, or from_x/from_y) and drag it onto another (to_ref, or to_x/to_y) like a hand: drag-and-drop lists, sliders, canvas.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_xNoOr a screen x from browser_screenshot.
to_yNoScreen y.
from_xNoOr a screen x from browser_screenshot.
from_yNoScreen y.
tab_idNoA result's tab_id.
to_refNoElement ref, e.g. 'e12'.
from_refNoElement ref, e.g. 'e12'.
session_idNoOnly with several sessions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The phrase 'like a hand' hints at human-like pointer movement rather than a synthetic event, which is a small extra signal, but the description says nothing about timing, intermediate steps, or what happens if the drag target is not reached.

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?

One tightly packed sentence, front-loaded with the core action and followed by concrete use cases. Nothing is wasted, though the parenthetical coordinate syntax makes it slightly denser than it needs to be.

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?

With eight parameters, zero required, and no output schema, the agent needs to know which combination is mandatory — and the description does not say what happens if neither a ref nor coordinates are supplied. It also stays silent on tab_id and session_id, though the schema covers those adequately.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning the schema does not: it states the either/or relationship between element refs and screen coordinates for both endpoints. That mutual exclusivity is not expressed in the schema itself, where all eight properties simply sit side by side.

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 verb+resource combination: pressing on one element and dragging it onto another, with explicit parameter pairing (from_ref or from_x/from_y → to_ref or to_x/to_y). That is clearly distinguishable from siblings like browser_click or browser_hover, though it never names those siblings to draw the contrast.

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

Usage Guidelines3/5

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

Usage is implied through examples — 'drag-and-drop lists, sliders, canvas' — which tells the agent the class of interactions this covers. There is no explicit when-not guidance or reference to alternatives (e.g., use browser_click for a simple press), so the agent must infer the boundary itself.

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.