Skip to main content
Glama

node_exec

Execute shell or PowerShell scripts on appliance, bastion, or target nodes with Base64 transport and automatic secret scrubbing for controlled remote command execution.

Instructions

Execute a shell/PowerShell script on '@appliance', '@bastion', or a configured TargetNode with Base64 transport and secret scrubbing.

Input Schema

NameRequiredDescriptionDefault
envNoOptional non-secret environment variables injected in-memory before running the script.
nodeYesTarget node identifier ('@appliance', '@bastion', or a target name from enclave.yaml).
tx_idNoOptional stable transaction id. Reuse retrieves the original operation and never replays ambiguous work.
scriptYesScript content to execute on the specified node.
as_rootNoExecute with elevated sudo privileges on a Linux TargetNode.
secret_envNoOptional mapping of target env var name -> SecretVault key name injected from OS Keychain/.env and auto-scrubbed from output.
timeout_secNoExecution timeout in seconds.
confirm_destructiveNoExplicitly authorize destructive commands (DROP, TRUNCATE, rm -rf, reboot).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and it does add real context: Base64 transport and secret scrubbing of output. It omits other traits an agent needs for arbitrary code execution — the destructive-command gate, sudo password requirements, timeout kill behavior, and output format — so the disclosure is partial rather than complete.

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?

A single front-loaded sentence with zero filler; the verb leads and the constraints follow. Nothing can be trimmed without losing information.

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?

This is an eight-parameter arbitrary code execution tool with no annotations and no output schema, so the description must explain return values, failure/timeout semantics, and the destructive-confirmation gate — it explains none of these. For a tool of this risk level the single sentence is materially under-specified.

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 baseline is 3 and the eight parameters are already documented individually. The description's mention of Base64 transport and secret scrubbing weakly reinforces the 'script' and 'secret_env' parameters but adds no syntax, format, or precedence detail beyond the schema.

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 names a specific verb and resource ('Execute a shell/PowerShell script') and constrains the targets to '@appliance', '@bastion', or a configured TargetNode, which separates it from file-oriented siblings like node_read_file and node_patch_file. It does not explicitly name a sibling it is not, so sibling differentiation is left partly to inference.

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?

It says where the script runs but never says when to choose node_exec over node_patch_file, node_transfer, or node_db_query, nor when it is inappropriate. The only guidance in the whole definition sits in the schema ('confirm_destructive'), not in the description.

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