Skip to main content
Glama

drag

Simulate a press-and-move touch gesture between two points on an iOS device or simulator to move items or sliders, using endpoints from the same screenshot or element list.

Instructions

Press, hold, then move and release a touch between two points. Obtain both endpoints from the same take_screenshot or list_elements observation.

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": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
hold_msNo
device_idNo
timeout_msNo
duration_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/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. The description adds the physical gesture sequence and the same-observation consistency requirement, but does not describe what the drag affects in the app or potential side effects.

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?

Two tightly written sentences with no waste. The core gesture is front-loaded, and the observation constraint follows immediately.

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 a 6-parameter mutation tool with 0% schema description coverage and no output schema, the description is too thin. It omits meaning for four parameters and does not explain what happens on success or failure, though annotations cover the safety profile.

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 coverage is 0% for 6 parameters. The description only implies that start and end must come from the same observation (snapshot_id/observation_id consistency), but says nothing about hold_ms, duration_ms, timeout_ms, device_id, or the two endpoint formats (ref vs. coordinates).

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 and resource: 'Press, hold, then move and release a touch between two points' clearly defines a drag gesture. It does not explicitly differentiate from siblings like long_press or scroll, but the action itself is distinct.

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?

Provides a concrete prerequisite: 'Obtain both endpoints from the same take_screenshot or list_elements observation.' This tells the agent how to source inputs but does not say when to use drag versus alternatives like scroll or long_press.

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