Skip to main content
Glama
surpasses
by surpasses

drag

Simulate a left-button mouse drag from one point to another within a specified tab to move elements or select content.

Instructions

Drag with the left mouse button from one point to another.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toXYes
toYYes
fromXYes
fromYYes
tabIdYesTab id from tabs_context

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations provided, the description carries full behavioral burden. It only notes the left mouse button, but does not disclose whether it presses and releases, requires a draggable element, or any side effects. Insufficient for an action that manipulates UI state.

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 description is a single short sentence, which is concise, but it is under-specified rather than efficiently informative. It does not use the space to add value, so it earns a neutral score.

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?

Given 5 required parameters, no output schema, and no annotations, this description is incomplete. It fails to explain coordinate semantics, error behavior, or drag mechanics, leaving an agent unable to call it correctly in many scenarios.

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 description coverage is only 20% (tabId has a description). The description adds no meaning to fromX, fromY, toX, toY beyond their names, and does not clarify units, coordinate system, or relationship to viewport/page. With low coverage, the description should compensate but does not.

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 clear action ('drag') and resource ('mouse button'), and mentions the movement from one point to another. However, it does not distinguish it from sibling tools like click or hover, and 'one point to another' is vague about what is dragged.

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 mention of when to use this tool versus alternatives. It does not state prerequisites (e.g., an element to drag) or contrast with click/scroll, leaving the agent to infer the appropriate context.

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