Skip to main content
Glama

Start background process

spawn

Start a detached process on a remote peer that outlives the call for servers or long builds, returning its PID and log file path to read later with shell.

Instructions

Start a detached process on the peer that outlives the call (servers, long builds). Returns its pid and log file path; read the log later with shell.

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

Input Schema

NameRequiredDescriptionDefault
peerYesThe peer's 9-digit rockd ID (from `devices` / `status`), or IP:port to dial directly
commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so safety profile is covered; the description adds the key behavioral trait that the process is detached and survives the call, plus its return values (pid, log file path) and how to retrieve output later. It does not disclose failure behavior when the peer is unreachable, auth requirements, or whether the process can be terminated.

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 front-loaded and dense: the first defines the operation and its distinguishing property, the second covers returns and a follow-up tool. No filler or redundant restatement of the annotations.

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 low-complexity two-parameter tool, the description covers purpose, key behavior, and return values (important since there is no output schema). The remaining gap is the undocumented command parameter and absence of error/failure guidance, which keeps it from being fully complete.

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 50%: the peer parameter is well documented in the schema while the command parameter has no description and the tool description adds no meaning about its expected form, quoting, shell environment, or execution context. With only half the parameters covered, the description does not compensate for the undocumented command field, leaving the baseline 3 appropriate.

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 — "Start a detached process on the peer" — and immediately clarifies the defining trait that separates it from a synchronous shell call: the process outlives the call. An agent can tell this apart from the sibling "shell" without opening either schema.

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?

Gives concrete when-to-use cases ("servers, long builds") and a follow-up path ("read the log later with shell"), which implicitly frames shell as the alternative for synchronous work. It stops short of an explicit when-not rule or named alternative for short-lived commands, so it is clear but not fully prescriptive.

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