Skip to main content
Glama
Passhold Agents

Passhold Agents

Official

run_command

Executes child commands with granted Passhold secrets injected as environment variables, then removes Passhold auth variables and redacts secret values from stdout and stderr.

Instructions

Run a child command (shell: false) with granted Passhold secrets injected via environment variables. Strips Passhold auth variables and redacts secrets from stdout and stderr.

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_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
envYesMap of env var name to granted item or passhold:// reference.
argvYes
reasonNo
timeoutNoTimeout in seconds (default 60).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 burden, and it does disclose three valuable traits: no shell interpretation, removal of Passhold auth vars from the child environment, and redaction of secrets in stdout/stderr. However, for an arbitrary-command-execution tool it is silent on failure semantics (non-zero exit handling), what is returned, and what sandboxing or approval gates exist.

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?

Two dense sentences with zero filler; the execution mode and secret-injection contract are front-loaded, and the sanitization behavior follows as supporting detail.

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?

There is no output schema, but 'redacts secrets from stdout and stderr' implicitly tells the agent the tool surfaces captured output. The remaining gap is what happens on non-zero exit and whether output is truncated, which matters for a command-running tool, but the core contract is present.

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 coverage is 40%, below half, so the description must compensate; it does explain the payload of the two most important parameters (argv as the child command, env as the secret-injection channel) and adds the important twist that Passhold auth vars are stripped from env. cwd, timeout, and reason remain undocumented in both places.

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 opens with a specific verb and resource ('Run a child command') and pins down the execution mode ('shell: false') plus the distinguishing feature (Passhold secrets injected via env vars). An agent can tell this apart from reveal or http_request, though it never explicitly names a sibling to contrast with.

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

Usage Guidelines3/5

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

Usage is only implied: the word 'granted' hints that secrets must first be obtained elsewhere (e.g. request_access), and the secret-injection framing suggests when this beats a plain HTTP call. There is no explicit when-to-use/when-not guidance and no named alternative for cases where shell features or network requests are needed.

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