Skip to main content
Glama

VBScript to PowerShell Migration

convert_vbscript_to_powershell

Converts a VBScript script to idiomatic PowerShell (Windows PowerShell 5.1 by default, or PowerShell 7), preserving behaviour, exit codes and side effects, replacing COM objects with native cmdlets where possible. Returns JSON: the PowerShell code, a review checklist of warnings (AI warnings + automatic static-scan findings), blockers, security flags and the risk score. The result is a draft for human review and testing, not a guaranteed drop-in replacement.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "convert_vbscript_to_powershell"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesVBScript source code (max 30000 characters).
targetNoTarget PowerShell version. Default: ps51 (Windows PowerShell 5.1, preinstalled).
contextNoOptional: how the script is run (logon script via GPO, scheduled task, SCCM/Intune, manual) and anything the converter should know (max 1000 characters).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and discloses substantive behavior: it preserves execution behavior, exit codes and side effects; replaces COM objects where possible; and returns JSON with warnings, blockers, security flags and a risk score. It also clearly frames the output as a draft rather than a guaranteed drop-in replacement, though it does not explicitly state whether any code is executed during conversion.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the conversion purpose, then covers return shape and the human-review caveat. Every sentence adds useful information with no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although there is no output schema, the description explains the JSON return contents and the review-oriented nature of the output. For a conversion tool with fully documented parameters, this is largely complete, with only minor gaps around failure modes and explicit sibling-tool routing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the input schema already documents all three parameters and their meanings. The description reinforces the default target as Windows PowerShell 5.1 or PowerShell 7, but adds little parameter-specific detail beyond the schema, and does not mention the context parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: converting a VBScript script to idiomatic PowerShell, with target-version and behavior-preservation details. It is clear what the tool does, but it does not explicitly distinguish itself from siblings such as scan_vbscript or powershell_equivalent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no explicit when-to-use or when-not-to-use guidance relative to alternatives. It includes a useful caveat that the result is a draft for human review and testing, but it does not tell an agent when this tool is the right choice versus scanning or readiness tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources