Skip to main content
Glama

pg_host_exec

Run a pinned system developer binary inside a project directory with guardrail checks against destructive flags and paths to safely execute commands such as git status.

Instructions

Execute a pinned system developer binary (shell=False, guardrail-checked against destructive flags/paths) inside a project directory.

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": {
      "cwd": "<cwd>",
      "argv": "<argv>"
    },
    "name": "pg_host_exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesWorking directory inside user workspace.
argvYesCommand argv list (e.g. ['git', 'status', '-s']).
timeoutNoTimeout in seconds (default: 120).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

B3.4/5.0
Behavior3/5

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

With zero annotations the description carries the full burden, and it does add real behavioral context: no shell interpretation (`shell=False`), a guardrail layer against destructive flags/paths, and confinement to a project directory. It omits what an executing tool most needs to disclose: whether the call blocks, how stdout/stderr and exit codes are surfaced, and what happens when a guardrail rejects the command.

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?

A single sentence with the action front-loaded and the safety qualifiers in a tight parenthetical; nothing is redundant. It is dense but not padded, with only the trailing directory-scoping clause slightly competing for attention.

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

Completeness3/5

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

This is a high-consequence execution tool with no annotations and no output schema, so the description must do more work than it does. It establishes the guardrail model but leaves the return contract (stdout/stderr/exit code) and rejection/error behavior undefined, which an agent needs in order to invoke it confidently.

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. The description only lightly reinforces the schema, clarifying that `cwd` is the in-project working directory and that execution is argv-based with no shell, but adds no syntax, path-resolution, or timeout-semantics detail beyond what the schema already states.

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 uses a specific verb ('Execute') plus a precise resource ('a pinned system developer binary') and scopes it to a project directory, so an agent knows exactly what class of action this performs. It does not name or contrast with any sibling tool, so the differentiation part of the rubric is only partly met.

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 implied rather than stated: 'pinned system developer binary' and 'guardrail-checked' signal that this is for developer CLI commands, not arbitrary tooling, and 'inside a project directory' implies workspace-scoped use. There is no explicit when-to-use, when-not-to-use, or reference to an alternative for cases the guardrails would reject.

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