Skip to main content
Glama
allegiant

MQScript MCP Server

by allegiant

mqscript_dim

Define variables or arrays for mobile automation scripts to store and manage data during device control operations.

Instructions

Define variables or arrays

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
variablesYesVariable names separated by commas (e.g., "a, b(), c")

Implementation Reference

  • The handler function that generates an MQScript 'Dim' command for declaring variables and returns a textual response with the generated script.
    handler: async (args: { variables: string }) => { const { variables } = args; const script = `Dim ${variables}`; return { content: [ { type: 'text', text: `Generated MQScript variable declaration:\n\`\`\`\n${script}\n\`\`\`\n\nThis declares variables: ${variables}.` } ] }; }
  • The input schema validating the 'variables' parameter as a required string.
    inputSchema: { type: 'object' as const, properties: { variables: { type: 'string', description: 'Variable names separated by commas (e.g., "a, b(), c")' } }, required: ['variables'] },
  • The complete tool definition object within ControlCommands, including name 'mqscript_dim', description, inputSchema, and handler.
    dimVariable: { name: 'mqscript_dim', description: 'Define variables or arrays', inputSchema: { type: 'object' as const, properties: { variables: { type: 'string', description: 'Variable names separated by commas (e.g., "a, b(), c")' } }, required: ['variables'] }, handler: async (args: { variables: string }) => { const { variables } = args; const script = `Dim ${variables}`; return { content: [ { type: 'text', text: `Generated MQScript variable declaration:\n\`\`\`\n${script}\n\`\`\`\n\nThis declares variables: ${variables}.` } ] }; } }

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