Skip to main content
Glama

procexec

Execute commands as new processes with background and suspended state support. Control timeout, working directory, and environment variables.

Instructions

Execute a command as a new process. Supports background execution and starting in suspended state. WARNING: This tool executes arbitrary commands on the host system. Use with caution. Use suspended=true to start a process in suspended state (Windows: CREATE_SUSPENDED, Linux: SIGSTOP). Use prockill with signal=cont to resume a suspended process.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesCommand to execute (required)
argsNoCommand arguments
cwdNoWorking directory (default: current directory)
envNoEnvironment variables in KEY=VALUE format. Inherits parent environment by default
timeout_secNoTimeout in seconds (default 30, max 300). Ignored for background/suspended execution
backgroundNoStart process in background and return PID immediately: true or false. Default: false
suspendedNoStart process in suspended state. Windows: CREATE_SUSPENDED, Linux: SIGSTOP. Implies background=true: true or false. Default: false
Behavior4/5

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

The description details behavioral traits: executes on host system, supports background execution, suspended state with OS-specific methods, and warns about security. This is sufficient given no annotations, but could mention return value or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is multi-sentence but each sentence adds value: purpose, features, warning, usage hints. It is front-loaded and compact without unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 7 parameters and no output schema, the description covers execution behavior but does not explain what the tool returns (e.g., PID, error codes). Could be more complete for a complex tool, but adequate for basic use.

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%, so baseline is 3. The description adds context for suspended implying background=true and timeout being ignored for background/suspended, but does not significantly enhance beyond schema descriptions.

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 the tool executes a command as a new process, and mentions background and suspended state support. It distinguishes from siblings like prockill which is for killing processes.

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 provides a warning about arbitrary command execution and explains when to use suspended state and how to resume with prockill. However, it does not explicitly compare to alternative tools like bash or specify when not 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/knewstimek/agent-tool'

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