Skip to main content
Glama
wxhzhwxhzh

DrissionPageMCP

by wxhzhwxhzh

drag

Move an HTML element to a specific pixel offset on the page. Provide the element's XPath and desired X/Y offsets; duration can be set for the movement.

Instructions

将元素拖动到指定偏移位置

Args: xpath: 要拖动的元素xpath路径 offset_x: x轴偏移量(像素) offset_y: y轴偏移量(像素) duration: 拖动持续时间(毫秒),默认为1000

Returns: dict: 包含偏移量和持续时间的字典,格式为{"offset_x": int, "offset_y": int, "duration": int} 或 str: 当元素不存在时返回错误信息

Raises: 无显式抛出异常,但内部可能因元素不存在而返回错误信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xpathYes
durationNo
offset_xYes
offset_yYes
Behavior3/5

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

With no annotations, the description reveals some behavior: it returns a dict with offsets and duration, or an error string when the element is not found. It also notes no explicit exception is thrown. However, it does not describe drag mechanics, waiting behavior, or how this differs from a simple move, leaving gaps.

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?

The description is well-organized with clear Args, Returns, and Raises sections. It is concise, with no redundant text. Every sentence adds value, and the structure makes parameters and behavior easy to scan.

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

Completeness4/5

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

For a 4-parameter drag tool with no annotations and no output schema, the description covers all key aspects: input parameters, units, defaults, and error handling. It lacks some behavioral context like whether the element must be visible or how the drag is performed, but is largely complete for practical use.

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

Parameters5/5

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

The schema has 0% description coverage, but the description fully compensates by explaining each parameter: xpath (element path), offset_x/offset_y (pixel offsets), and duration (milliseconds, default 1000). It also explains the return format, adding semantic meaning well beyond the raw schema.

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 clearly states the tool's purpose: '将元素拖动到指定偏移位置' (drag element to specified offset position). It specifies the verb (drag), resource (element), and scope (offset). It does not explicitly distinguish from the sibling 'move_to', but the offset parameters and drag terminology make it clear enough.

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?

The description provides no explicit guidance on when to use this tool versus alternatives. It implies use for dragging elements, but does not mention when not to use it or suggest alternatives like 'move_to'. There is no context about prerequisites or scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wxhzhwxhzh/DrissionPageMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server