Skip to main content
Glama

run_command

Executes a zsh command on the user's machine and waits for completion; long-running commands return a task ID so you can track and manage them.

Instructions

Run a zsh command. The server waits for it to finish. A long command returns a task id for manage_task.

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": {
      "CommandLine": "<CommandLine>",
      "toolSummary": "<toolSummary>",
      "WaitMsBeforeAsync": "<WaitMsBeforeAsync>"
    },
    "name": "run_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
ConfirmNoTrue only after the user agrees to a previously refused command.
IsDaemonNoTrue for a process that should stay running, such as a dev server.
CommandLineYesExact command line.
toolSummaryYesShort noun phrase describing the command.
WaitMsBeforeAsyncYesHint from 500 to 10000. The server may wait longer.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 the important behavior: the call blocks, and long commands transition to a task id handled by manage_task. It omits side-effect and risk context an agent would want before running arbitrary shell commands (destructive potential, output capture, working directory or shell state persistence).

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 short sentences with no filler, and the blocking-versus-async behavior is front-loaded where an agent will read it. Slightly clipped phrasing ('returns a task id for manage_task') costs a little clarity but nothing is wasted.

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?

An output schema exists, so return values need not be described, and the key control-flow fact (async handoff to manage_task) is covered. For a command-execution tool with no annotations, a sentence on side effects, shell state, or the Confirm/IsDaemon flags would close the remaining gap.

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 100%, so the schema itself documents CommandLine, toolSummary, Confirm, IsDaemon and WaitMsBeforeAsync. The description adds only an indirect hint about waiting behavior and says nothing about Confirm (re-consent after a refusal) or IsDaemon (long-lived processes), which are the semantics most likely to be misused. Baseline 3 applies.

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 states a concrete verb and resource ('Run a zsh command') plus the execution model (server blocks until completion, long runs return a task id). That is more specific than the bare name, but it does not distinguish this from the 'execute' sibling, so an agent cannot fully disambiguate on the description alone.

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?

It implies the usage pattern by pointing at manage_task for long-running commands, which tells the agent what to do after an async return. It gives no explicit when-to-use/when-not guidance, no mention of the 'execute' alternative, and no prerequisites such as required permissions.

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