Skip to main content
Glama

Run command via SignalTrim

signaltrim_run
Destructive

Run build, test, or install commands and compress verbose output by stripping progress bars, warnings, and repeated lines while preserving every error line to save context.

Instructions

Run a build/test/install command (npm, python/pytest, go test, docker build, terraform) through SignalTrim, which strips noise (progress bars, deprecation warnings, repeated lines) from the output while guaranteeing every error-shaped line survives untouched. Use to save context on a verbose command whose full raw output isn't needed. Only single, non-compound commands are supported (no shell pipes/redirects/&&); subject to the same allowed_commands/require_approval_for policy as any other command execution.

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": {
      "command": "<command>"
    },
    "name": "signaltrim_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesArgv to run, e.g. ["npm", "install"] or ["python", "-m", "pytest", "-v"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent, so the mutation risk is covered. The description adds behavior annotations do not carry: output is filtered of progress bars, deprecation warnings and repeated lines, while every error-shaped line is guaranteed to survive — a meaningful guarantee when deciding whether trimmed output is trustworthy. It does not cover failure/exit-code reporting, which keeps it at 4.

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?

Three sentences, front-loaded with the action and examples, then the context-saving rationale, then constraints. The parenthetical tool list is justified as scoping evidence, though it is the one place a reader must scan past before reaching the key usage condition.

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 a one-parameter tool with no output schema, the description covers invocation form, output transformation guarantees, and policy constraints. The main residual gap is what the returned payload actually looks like (trimmed stdout vs. structured result, exit status), which an agent may want before parsing results.

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 100% and the schema already supplies argv examples, so the baseline is 3. The description goes further by clarifying that the array must represent a single non-compound command with no pipes or redirects, which prevents the common mistake of passing a shell string.

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 ('Run') plus the resource class ('build/test/install command') and names concrete examples (npm, pytest, go test, docker build, terraform). It also distinguishes itself from plain command execution by explaining that output passes through SignalTrim noise stripping, so an agent knows exactly what this tool is versus a raw exec.

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 an explicit when-to-use condition ('verbose command whose full raw output isn't needed') and explicit exclusions ('Only single, non-compound commands are supported (no shell pipes/redirects/&&)'). It also flags that the same allowed_commands/require_approval_for policy applies, which tells the agent to expect approval gates.

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