Skip to main content
Glama

run_with_secrets

Run commands with KeePassXC secrets injected as environment variables, restricted to approved commands and hosts, with user approval per run and secret values redacted from output.

Instructions

Run a command (no shell) with KeePassXC secrets in environment variables, e.g. GH_TOKEN for gh or a curl --variable/--expand-header token. Only commands and hosts listed in the entry's 'KPH: agent-commands' and 'KPH: agent-hosts' attributes are allowed, the user approves each run, and secret values are removed from the output.

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": {
      "argv": "<argv>",
      "env": "<env>"
    },
    "name": "run_with_secrets"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
envYesVARIABLE -> KeePassXC entry lookup
argvYes
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does substantial work: no shell interpretation, allowlist enforcement on commands and hosts, per-run user approval, and redaction of secret values from output. It stops short of describing what is returned (exit status, stdout/stderr handling) or what failure looks like, which matters for an execution tool.

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?

Two sentences, front-loaded with the action and immediately followed by the two constraints that govern success or failure. The inline curl example is dense but earns its place by showing a non-obvious usage; nothing is redundant.

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 execution tool with nested params, no annotations and no output schema, this covers the critical behavioral facts: sandboxing, allowlisting, human approval and output redaction. The remaining gap is the shape of the result (exit code, captured output), which an agent needs to interpret a run.

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 coverage is 25% across 4 parameters, and the description compensates partially: 'no shell' clarifies that argv is exec'd without shell parsing, and the env examples convey that the map is VARIABLE -> secret lookup. cwd and timeout receive no mention, and the env value object's url/entry/field semantics are left to the schema.

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?

States a specific verb and resource: run a command (explicitly without a shell) with KeePassXC secrets injected as environment variables. The concrete examples (GH_TOKEN for gh, curl --variable/--expand-header) make it immediately distinguishable from find_entries and request_login, which cannot execute anything.

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?

Gives real invocation preconditions: the command and host must appear in the entry's 'KPH: agent-commands' and 'KPH: agent-hosts' attributes, and the user approves each run, so the agent knows to expect a gate. It does not explicitly contrast with request_login or say when a plain command run is preferable, so no explicit alternative routing.

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