Skip to main content
Glama

Exec a command

herdr_exec

Runs a single short command locally or on another machine without a terminal, returning its exit code and exact output; use for non-interactive commands like git diff, ls, or cat.

Instructions

Run one command here or on another machine without a terminal and return its exit code and exactly what it wrote. For short commands (git diff, ls, cat). Everything it started ends with it at exit or timeout. Use herdr_run for anything long or interactive.

Input Schema

NameRequiredDescriptionDefault
onNoAnother machine (see herdr_machines); default: this one.
cwdNoWorking directory. Default: the core's; on another machine, its home.
envNo
argvNoProgram and arguments, run as given (no shell).
lineNoA shell line instead of argv.
inputNoText for its stdin.
timeoutNoSeconds before it is ended (default 60, at most 600).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden; it discloses non-interactive single-command execution, local/remote scope, exit-code and exact-output return, and termination at exit or timeout. It does not discuss permissions, authorization, or side-effect risk, which is a meaningful gap for an arbitrary command-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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the core action and return contract, followed by usage constraints and the sibling alternative. There is no wasted text.

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 the description explains the return contract (exit code and exact output) and timeout termination. With 86% schema coverage, parameters are largely self-documenting; remaining gaps are remote-machine prerequisites and safety/permission context.

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 86%, so the baseline is 3 even with no parameter details in the description. The description only loosely reinforces the `on` parameter via 'here or on another machine'; argv, line, env, cwd, input, and timeout 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 one command), scope (here or another machine, without a terminal), and return contract (exit code and exactly what it wrote). It explicitly names herdr_run as the alternative, making it clearly distinguishable from siblings.

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?

Gives concrete when-to-use examples (git diff, ls, cat) and an explicit when-not/alternative rule: use herdr_run for anything long or interactive. This is a clear routing decision for an agent.

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