Skip to main content
Glama
wundervault

wundervault

Official

vault_exec

Execute shell commands with vault secrets injected as environment variables, never exposing secrets to the agent. Supports local and remote execution with automated secret injection and audit logging.

Instructions

Execute a shell command with a vault secret injected as an env var. The secret is never returned to the agent — it is injected into the subprocess and the Buffer is zeroed immediately after spawn.

Tier 1 and Tier 2 secrets execute automatically based on server-side access policy.

The vault entry's exec_config (set in dashboard) provides the injection recipe (env_key, pre_command, post_command). You may override it with inject_as if needed. For LOCAL exec an injection recipe is required; for REMOTE exec it is optional.

To run a remote command using only a vaulted SSH key (no secret injected), omit entry_id and pass remote_host with ssh_key_entry_id.

NEVER use shell escape patterns in command ($(), backticks, bash -c, sh -c, eval) — these are rejected before the secret is decrypted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entry_idNoVault entry ID (from vault_entries_list) of the secret to inject. Optional: omit it to run a remote command using only a vaulted SSH key (remote_host.ssh_key_entry_id) with no secret injected.
purposeYesWhy this secret is needed (audit log).
commandYesFull shell command to run (no escape patterns).
working_dirNoOptional working directory for the command.
inject_asNoOverride exec_config injection recipe. Omit to use vault entry's exec_config.
remote_hostNoRun the command on a remote machine via SSH. The secret is injected inside the remote shell via SSH stdin — no AcceptEnv/SendEnv configuration required on the remote host. Use ssh_key_entry_id (preferred) to load the SSH key from the vault so it is never exposed on the filesystem. Use ssh_key as a fallback path if the key is already on disk.
Behavior5/5

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

Discloses critical security behaviors: secret never returned, buffer zeroed, injection via exec_config, and rejection of escape patterns. Explains remote SSH key handling without disk exposure.

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?

Efficiently structured with primary purpose first, then security, then execution details, and finally constraints. No superfluous sentences; every sentence contributes.

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

Completeness5/5

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

Given the complexity (6 params, nested objects, no output schema), the description thoroughly covers execution modes, security, injection, and constraints. No gaps for correct usage.

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

Parameters4/5

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

Schema already covers 100% of parameters with descriptions. The description adds value by explaining the overall flow, when parameters are optional, and how inject_as overrides work.

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?

The description clearly states 'Execute a shell command with a vault secret injected as an env var.' It specifies the action, resource, and security context, distinguishing it from other vault tools.

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

Usage Guidelines5/5

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

Provides explicit when-to-use, when-not (omit entry_id for remote-only), and prohibitions (no shell escape patterns). Also distinguishes between LOCAL and REMOTE execution modes.

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

Install Server

Other Tools

Latest Blog Posts

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/wundervault/wundervault-mcp'

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