Skip to main content
Glama

draw_or_drag_path

Draw or drag a pointer trajectory across an app control from defined points to perform path-based UI interactions without screen coordinates.

Instructions

Draw or drag a pointer trajectory

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": {
      "app_id": "<app_id>",
      "control_id_or_name": "<control_id_or_name>",
      "points": "<points>"
    },
    "name": "draw_or_drag_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYes
pointsYes
confirmedNo
normalizedNo
button_downNo
control_id_or_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing. It does not say whether the pointer button is held during movement, whether intermediate points are interpolated with timing delays, whether the gesture is confirmed before execution (the 'confirmed' default of false hints at a confirmation gate that is never explained), or what the tool returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is a single short phrase with no padding, so it is front-loaded and wastes no words. The brevity is genuine under-specification rather than tight writing, but there is no structural clutter to penalize.

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

Completeness1/5

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

For a six-parameter gesture-synthesis tool with no annotations, no output schema, and zero schema coverage, seven words are wholly inadequate. An agent would have to guess at coordinate format, button state, and confirmation behavior before it could call this correctly.

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

Parameters1/5

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

Schema description coverage is 0% across six parameters, and the description adds no meaning for any of them. The critical semantics of 'points' (coordinate format, whether values are pixels or normalized 0-1, whether the array is a path or a bounding shape), 'normalized', 'button_down', and 'confirmed' are entirely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase 'Draw or drag a pointer trajectory' does give a verb and an object, and it hints at continuous pointer movement rather than a discrete click, which differentiates it loosely from click_control and hover_control. But 'draw or drag' is ambiguous: it never says whether this synthesizes a freehand stroke, a press-move-release drag between two endpoints, or a path through arbitrary coordinates, so an agent cannot be certain what the operation produces.

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?

There is no when-to-use guidance at all. Nothing tells the agent to prefer this over click_control for a simple press, over hover_control for movement without a button, or over scroll_control for wheel gestures, and no prerequisites or exclusions are stated.

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