Skip to main content
Glama

generate_custom_script

Create custom PowerShell scripts for system automation, file operations, and service management based on your requirements with optional logging and error handling.

Instructions

Generate a custom PowerShell script based on description.

Args: description: Natural language description of what the script should do script_type: Type of script to generate (file_ops, service_mgmt, etc.) parameters: List of parameters the script should accept include_logging: Whether to include logging functions include_error_handling: Whether to include error handling output_path: Where to save the generated script (optional) timeout: Command timeout in seconds (1-300, default 60) Returns: Generated script content or path where script was saved

Input Schema

NameRequiredDescriptionDefault
descriptionYes
script_typeYes
parametersNo
include_loggingNo
include_error_handlingNo
output_pathNo
timeoutNo

Input Schema (JSON Schema)

{ "properties": { "description": { "title": "Description", "type": "string" }, "include_error_handling": { "default": true, "title": "Include Error Handling", "type": "boolean" }, "include_logging": { "default": true, "title": "Include Logging", "type": "boolean" }, "output_path": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Output Path" }, "parameters": { "anyOf": [ { "items": { "additionalProperties": true, "type": "object" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Parameters" }, "script_type": { "title": "Script Type", "type": "string" }, "timeout": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 60, "title": "Timeout" } }, "required": [ "description", "script_type" ], "type": "object" }

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/DynamicEndpoints/PowerShell-Exec-MCP-Server'

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