Skip to main content
Glama
allegiant

MQScript MCP Server

by allegiant

mqscript_file_delete

Remove files from mobile devices during automation to manage storage and clean up temporary data generated by MQScript mobile automation processes.

Instructions

Delete file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesFile path to delete

Implementation Reference

  • The async handler function that implements the core logic of the mqscript_file_delete tool. It receives the filePath argument, constructs an MQScript 'File.Delete' command string, and returns a formatted text response describing the generated script.
    handler: async (args: { filePath: string }) => { const { filePath } = args; const script = `File.Delete("${filePath}")`; return { content: [ { type: 'text', text: `Generated MQScript file delete command:\n\`\`\`\n${script}\n\`\`\`\n\nThis deletes file "${filePath}".` } ] }; }
  • The inputSchema defining the structure and requirements for the tool's arguments, specifying that 'filePath' (string) is required.
    inputSchema: { type: 'object' as const, properties: { filePath: { type: 'string', description: 'File path to delete' } }, required: ['filePath'] },
  • The complete definition of the mqscript_file_delete tool object (including name, description, schema, and handler), which is exported as part of FileCommands and spread into the global ALL_TOOLS registry for MCP server registration.
    delete: { name: 'mqscript_file_delete', description: 'Delete file', inputSchema: { type: 'object' as const, properties: { filePath: { type: 'string', description: 'File path to delete' } }, required: ['filePath'] }, handler: async (args: { filePath: string }) => { const { filePath } = args; const script = `File.Delete("${filePath}")`; return { content: [ { type: 'text', text: `Generated MQScript file delete command:\n\`\`\`\n${script}\n\`\`\`\n\nThis deletes file "${filePath}".` } ] }; } },
  • src/index.ts:57-60 (registration)
    The spreading of FileCommands (containing mqscript_file_delete) into the ALL_TOOLS object used by the MCP server for tool listing and execution.
    ...CJsonCommands, ...DateTimeCommands, ...FileCommands, ...TuringCommands,

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