Skip to main content
Glama

execute_command_async

Run long-running commands in the background and get a task ID to check status, fetch output, or cancel the operation.

Instructions

Execute a command asynchronously in the background. Returns a task ID immediately that can be used to check status, get output, or cancel the command. Use this for long-running commands. / 在后台异步执行命令。立即返回任务ID,可用于检查状态、获取输出或取消命令。用于长时间运行的命令。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoCommand arguments as a list of strings.
userNoThe user to execute the command as. Leave empty to use the current user.
commandYesThe command to execute asynchronously.
timeoutNoCommand timeout in seconds. 0 means no timeout limit.
work_dirYesThe working directory for command execution.
permission_levelNoPermission level for the command (0-3). Higher levels allow more privileged operations.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes
task_idYes
Behavior4/5

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

With no annotations, the description carries the burden. It discloses the async background execution, immediate task ID return, and ability to check status/output/cancel. It does not mention permission implications, but the core behavior is well communicated.

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 English text is two concise sentences, but the Chinese translation duplicates the content without adding new information. Still, it is not verbose and front-loads the key behavior.

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 an output schema exists, the description appropriately focuses on the async workflow. It explains the task ID mechanism and long-running use case, which is sufficient for selection. It could mention how to cancel or get status, but sibling tools cover 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 descriptions for all parameters. The tool description adds no parameter-specific details beyond the schema, which is the baseline for this dimension.

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 it executes a command asynchronously in the background and returns a task ID. It distinguishes from the sibling 'execute_command' by highlighting the async behavior and long-running use case.

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?

Explicitly says 'Use this for long-running commands,' giving a clear context. It does not name alternatives like 'execute_command' for synchronous use, but the sibling list provides that distinction.

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/shibingli/mcp-toolkit'

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