Skip to main content
Glama

start_background_job

Start a command as a background job and retrieve a job ID to monitor its status.

Instructions

[Command Execution] Start a command as a background job

Example usage:

{
  "shell": "powershell",
  "command": "Start-Sleep -Seconds 30; Write-Output 'Done'",
  "timeout": 60
}

Returns job ID immediately. Use get_job_status to monitor progress.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoCustom environment variables for command execution (optional)
shellYesShell to use for command execution
commandYesCommand to execute
timeoutNoJob timeout in seconds (default: 300, max: 3600)
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses that the tool starts an async job and returns immediately. Does not mention timeout constraints, error conditions, or resource implications, which are moderately important for a command execution 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?

Very concise: one-sentence purpose, clear category heading, compact example, and two key instructions. No wasted 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?

Description covers return value (job ID) and suggests next tool. With no output schema, this is sufficient. Could mention max timeout (3600) or error handling edges, but schema covers those.

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% with good descriptions. The description adds an example showing shell, command, timeout usage but does not explain env or provide additional semantics beyond what the schema offers.

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?

Clearly states 'Start a command as a background job', specifying verb and resource. Distinguishes from siblings like execute_command (synchronous) and get_job_status (monitoring).

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?

Provides explicit guidance: 'Returns job ID immediately. Use get_job_status to monitor progress.' Also gives example usage. Lacks explicit when-not-to-use or alternative siblings, but context is clear.

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/quanticsoul4772/mcp-server-win-cli'

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