Skip to main content
Glama
Run Command MCP Server

Run Command MCP Server

by stilllovee

start_async_command

Start a command asynchronously to run background tasks without blocking; it returns a process_id for checking status and output later.

Instructions

Start a command asynchronously (non-blocking). Returns a process_id to check status and output later using get_command_output.

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": "start_async_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesThe full command to execute (e.g., "node server.js", "npm run dev", "func start")
timeoutNoTimeout in milliseconds. 0 means no timeout (default: 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the two most important traits: execution is non-blocking and the immediate return is a process_id. However, for an arbitrary-command-execution tool it says nothing about what happens when the timeout fires, whether partial output survives, or any permission/sandbox constraints, leaving material behavioral gaps.

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 sentences, both earning their place: the first states the action and its non-blocking nature, the second states the return value and the next tool to call. No filler and the behavioral qualifier is front-loaded.

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 two-parameter tool with full schema coverage and no output schema, the description supplies the one return-value fact an agent needs (a process_id) and the follow-up path. The remaining omission is timeout behavior on an async process, which is a modest gap rather than a blocking one.

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 both parameters are already documented in the schema, including examples for 'command' and the timeout semantics. The description adds nothing about either parameter and doesn't explain how a timeout interacts with the async model, so the baseline of 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 gives a specific verb and resource ('Start a command') plus a key qualifier ('asynchronously (non-blocking)') that separates it from a blocking execution tool. It also names the follow-up tool, get_command_output, so an agent can place it in a workflow. It stops short of 5 because it doesn't characterize what kind of command context this runs in (shell, workspace, cwd).

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

Usage Guidelines4/5

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

Usage is clear: this is the entry point for non-blocking execution, and the description explicitly routes status/output checks to get_command_output. It lacks an explicit 'when not to use' clause, e.g. short commands where waiting for output in-band would be simpler, so it does not reach the 5 bar.

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