Skip to main content
Glama
HexStrike AI MCP Agents

HexStrike AI MCP Agents

by liusc45

execute_python_script

Run Python script content in a chosen virtual environment on the HexStrike server and return execution results for security automation.

Instructions

Execute a Python script in a virtual environment on the HexStrike server.

Args: script: Python script content to execute env_name: Name of the virtual environment filename: Custom script filename (auto-generated if empty)

Returns: Script execution results

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": {
      "script": "<script>"
    },
    "name": "execute_python_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptYes
env_nameNodefault
filenameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden for an arbitrary-code-execution tool. It discloses nothing about sandboxing, network access, timeouts, error/exit-code behavior, or whether the environment is created or must already exist; 'Returns: Script execution results' only restates what the output schema already covers.

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

Conciseness4/5

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

Short, front-loaded, and organized into Args/Returns blocks with no filler. The Returns line is redundant against the output schema but costs little.

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

Completeness2/5

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

For an execution tool with zero annotation coverage and undocumented parameters, key facts an agent needs before calling are absent: environment prerequisites, execution limits, and failure behavior. The output schema covers return values, but the execution semantics are not.

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 0%, so the prose must compensate. It does describe all three parameters in one line each and adds real value for filename ('auto-generated if empty'), but leaves env_name semantics (existence, creation, what 'default' means) and script constraints (size, dependencies, allowed imports) unexplained.

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?

States a specific verb and resource: execute a Python script in a named virtual environment on the HexStrike server. It is reasonably distinguishable from a generic command runner, though it does not explicitly contrast itself with execute_command or install_python_package.

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 when-to-use guidance: it never says when to prefer this over execute_command, nor whether the environment must pre-exist or whether packages need installing first. Usage is only implied by the parameter list.

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

Deploy Server

Other Tools