Skip to main content
Glama
allegiant

MQScript MCP Server

by allegiant

mqscript_device_vibrate

Control device vibration duration for mobile automation testing, feedback, or alerts using MQScript MCP Server's vibration function.

Instructions

Make device vibrate

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
durationNoVibration duration in milliseconds

Implementation Reference

  • Handler function that takes optional duration parameter and generates MQScript code to vibrate the device for that duration, returning a formatted text response.
    handler: async (args: { duration?: number }) => { const { duration = 200 } = args; const script = `Device.Vibrate(${duration})`; return { content: [ { type: 'text', text: `Generated MQScript device vibrate command:\n\`\`\`\n${script}\n\`\`\`\n\nThis makes the device vibrate for ${duration} milliseconds.` } ] }; }
  • Input schema for the tool, defining an optional 'duration' parameter (number, default 200ms).
    inputSchema: { type: 'object' as const, properties: { duration: { type: 'number', description: 'Vibration duration in milliseconds', default: 200 } }, required: [] },
  • src/index.ts:53-53 (registration)
    The DeviceCommands object containing the 'mqscript_device_vibrate' tool is spread into the ALL_TOOLS registry used for tool lookup and execution.
    ...PhoneCommands,

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/allegiant/MQScript_MCP'

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