Skip to main content
Glama

proxmox_exec

Destructive

Executes shell commands inside Proxmox LXC containers or QEMU VMs, returning stdout, stderr, and exit code. Set confirm to true to run.

Instructions

Run a shell command inside an LXC container (via SSH+pct exec) or QEMU VM (via direct SSH by default, or the qemu-guest-agent API when PROXMOX_EXEC_BACKEND=guest-agent - no in-guest SSH key needed). Returns stdout/stderr/exit_code. Tier-2 write; requires confirm:true.

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": {
      "vmid": "<vmid>",
      "command": "<command>",
      "confirm": "<confirm>"
    },
    "name": "proxmox_exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmidYesContainer or VM id.
commandYesShell command to run inside the resource.
confirmYesMust be true to execute. Tier-2 safe-write gate.
timeoutNoTimeout in seconds (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.2

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, destructive=true, openWorld=true) the description discloses the return shape (stdout/stderr/exit_code), the Tier-2 write classification with a required confirm gate, and the meaningful auth implication that guest-agent mode needs no in-guest SSH key. It stops short of saying what privileges the command runs with, whether output is truncated, or what happens on timeout/kill.

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?

Three compact sentences, front-loaded with what the tool does, followed by the return value and the safety gate. Parenthetical transport detail is dense but earns its place; no filler.

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?

For an arbitrary-command execution tool the annotations already flag the danger, and the description covers backend routing, return values, and the confirm requirement. Missing but relevant would be execution context (user/privilege, cwd) and output size limits, which an agent invoking this would likely want.

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 all four parameters are already documented in the schema; the description only restates the confirm:true gate and implies the default 30s timeout, both of which the schema already carries. Baseline 3 is appropriate — it adds framing but no new parameter detail.

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

Purpose5/5

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

Specific verb+resource: 'Run a shell command inside an LXC container ... or QEMU VM', with the two execution transports named explicitly (SSH+pct exec, direct SSH, qemu-guest-agent). This clearly distinguishes it from the lifecycle/CRUD siblings such as proxmox_create_container or proxmox_destroy_resource.

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

Usage Guidelines4/5

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

It states the scope of use (guest must be an LXC container or QEMU VM) and gives conditional mechanics for choosing the guest-agent backend via PROXMOX_EXEC_BACKEND. It does not name any alternative tool or state when *not* to use this, but no sibling in the provided list offers comparable behavior, so the guidance is adequate rather than complete.

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