Skip to main content
Glama

start_process

Destructive

Start a long-running or interactive command in the background (dev servers, long builds, REPLs, anything over 2 minutes) and return its session id as JSON. timeoutMs or waitForPrompt also waits for first output. Then process_output reads it, process_input types into it and stop_process stops it. The process keeps running past timeouts and reconnects.

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_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
commandYes
deviceIdNoComputer name or id
priorityNoScheduling priority. Use "low" for heavy or long-running work such as builds, training or test suites.normal
timeoutMsNo
waitForPromptNo
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / command / minLength
      Removed value: -1
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Changed2 schema fields changed
    • removedInput schema / properties / cwd / default
      Removed value: -"~"
    • addedInput schema / properties / workSessionId
      Added value: +{
      +  "description": "Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  4. 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 non-read-only, open-world and destructive, and the description adds genuinely new behavior: the process survives timeouts, reconnects, and timeoutMs/waitForPrompt block until first output before returning. It does not explain what makes the call destructive (e.g. side effects on the workspace, resource consumption, or what a failed start leaves behind), which is the main omission given destructiveHint=true.

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?

Front-loads the core action and return value in the first sentence, then the first-output behavior, then the sibling handoffs. No padding or restatement of the name; every sentence carries operational information.

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 7-parameter tool with no output schema, it covers the return value (session id as JSON), the async lifecycle, and the follow-up tools, which is the information an agent needs to chain calls. Minor gaps remain around cwd defaults and the destructive side effects flagged by annotations.

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 only 43%, so the description carries some burden, and it does explain the two otherwise-undocumented knobs (timeoutMs, waitForPrompt) by describing their effect. It adds nothing about cwd or command semantics, and leaves the interaction between timeoutMs and waitForPrompt ambiguous.

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+resource ('Start a long-running or interactive command in the background') and concretizes it with examples (dev servers, long builds, REPLs) plus a duration threshold. The agent can distinguish this from process_output, process_input and stop_process without opening a 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 clear selection criteria ('anything over 2 minutes', interactive/REPL work) and routes to the three lifecycle siblings, explaining what each does. It never states the negative case, e.g. that short blocking commands should be run some other way, so the guidance is clear but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources