Skip to main content
Glama

Drag

drag

Moves an element to another element’s center in a Windows desktop app using source and target indices from the latest app state.

Instructions

Drag from one element to another (element centres).

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": "<app>",
      "from_element_index": "<from_element_index>",
      "to_element_index": "<to_element_index>"
    },
    "name": "drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
to_element_indexYesElement index from the last get_app_state, as a string
from_element_indexYesElement index from the last get_app_state, as a string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

The readOnlyHint=false annotation already signals this is a non-read, mutating interaction, so the description's added value is the detail that the drag targets 'element centres' — useful for predicting where the pointer lands. Beyond that it says nothing about what happens on failure, whether elements must be visible/on-screen, or whether a scroll-into-view occurs first.

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 short sentence with no filler and the core action front-loaded. The parenthetical '(element centres)' is compact and informative rather than wasteful, though the overall brevity pushes under-specification onto other dimensions.

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 three-parameter interaction tool with no output schema, the description is too thin: it does not mention the required 'app' parameter, does not state the get_app_state prerequisite, and gives no indication of what a successful drag returns or how failures surface. The schema covers the indices, but the description should carry the rest.

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 coverage is 67% — the two element-index parameters are documented as 'Element index from the last get_app_state, as a string', while bare 'app' has no description. The description clarifies that the two indices denote endpoints of a drag and that centres are used, but it does not compensate for the undocumented app parameter or explain valid app values. Baseline 3 applies.

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 gives a specific verb and resource: 'Drag from one element to another', which is a distinct gesture an agent can distinguish from click, type_text, or scroll in the sibling list. It stops short of naming the automation context or naming a sibling it is not, but the action itself is unambiguous.

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 says when a drag is preferable to click or perform_secondary_action, and nothing states the prerequisite that both element indices must come from a prior get_app_state call. The reader must infer all usage conditions from the schema.

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