Skip to main content
Glama

shell_bg_start

Run a shell command in the background and get a job ID to monitor, log, or stop it later.

Instructions

Start a command in the background and return immediately with a job ID. Use shell_bg_status, shell_bg_log, and shell_bg_stop to manage the job. Default timeout is 30 minutes. Commands run in /bin/sh.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesShell command to run in the background
timeoutNoTimeout in seconds (default: 1800 / 30 min, max: 86400 / 24h)
Behavior3/5

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

With no annotations, the description carries full burden. It reveals that the command runs in /bin/sh, has a 30-minute default timeout, and returns immediately with a job ID. However, it does not disclose error handling, permissions, or potential side effects, leaving gaps for a background process tool.

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?

The description is three concise sentences, each adding unique value: purpose, sibling usage guidance, and operational details. No unnecessary words.

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?

Given no output schema and moderate complexity, the description covers purpose, management tools, timeout, and shell. It could mention the return format (job ID) more explicitly, but it already implies that. Overall, it is adequately complete.

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%, so baseline is 3. The description adds context: 'Default timeout is 30 minutes' and 'Commands run in /bin/sh,' which goes beyond the schema's default value description. This helps agents understand typical usage.

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?

The description clearly states 'Start a command in the background and return immediately with a job ID,' specifying the verb (start), resource (background command), and output (job ID). It distinguishes itself from sibling tools like shell_bg_status, shell_bg_log, and shell_bg_stop.

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?

The description explicitly advises using shell_bg_status, shell_bg_log, and shell_bg_stop to manage the job, providing clear alternatives. It also mentions the default timeout and shell environment, giving sufficient context for when to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/erquier/better-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server