Skip to main content
Glama

procexec

Execute commands as new processes with options for background operation or suspended state initiation. Manage process execution directly from the agent-tool MCP server environment.

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 (default false)
suspendedNoStart process in suspended state. Windows: CREATE_SUSPENDED, Linux: SIGSTOP. Implies background=true (default false)

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