Skip to main content
Glama
allegiant

MQScript MCP Server

by allegiant

mqscript_delay

Pause mobile automation script execution for a specified duration in milliseconds to control timing between operations.

Instructions

Pause script execution for specified duration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
millisecondsYesDelay duration in milliseconds

Implementation Reference

  • The handler function that executes the tool logic, generating an MQScript 'Delay' command based on the provided milliseconds and returning a formatted response.
    handler: async (args: { milliseconds: number }) => { const { milliseconds } = args; const script = `Delay ${milliseconds}`; return { content: [ { type: 'text', text: `Generated MQScript delay command:\n\`\`\`\n${script}\n\`\`\`\n\nThis will pause execution for ${milliseconds}ms (${milliseconds/1000} seconds).` } ] }; }
  • The input schema defining the tool's parameters: a required 'milliseconds' number.
    inputSchema: { type: 'object' as const, properties: { milliseconds: { type: 'number', description: 'Delay duration in milliseconds' } }, required: ['milliseconds'] },
  • The tool registration within ControlCommands object, defining name, description, schema, and handler. This object is spread into the ALL_TOOLS registry in src/index.ts.
    delay: { name: 'mqscript_delay', description: 'Pause script execution for specified duration', inputSchema: { type: 'object' as const, properties: { milliseconds: { type: 'number', description: 'Delay duration in milliseconds' } }, required: ['milliseconds'] }, handler: async (args: { milliseconds: number }) => { const { milliseconds } = args; const script = `Delay ${milliseconds}`; return { content: [ { type: 'text', text: `Generated MQScript delay command:\n\`\`\`\n${script}\n\`\`\`\n\nThis will pause execution for ${milliseconds}ms (${milliseconds/1000} seconds).` } ] }; } },

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