Skip to main content
Glama

execute_command

Run a shell command on a devbox and block until completion. Reuse a named shell for stateful sessions that preserve environment and working directory.

Instructions

Execute a command on a devbox and block until it completes.

Each call spawns an isolated shell by default - env vars and CWD do not persist between calls. Pass the same shell_name to reuse a stateful named shell session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe shell command to run.
devbox_idYesThe id of the devbox.
shell_nameNoOptional named shell for stateful sessions (same name reconnects to the same live session).
timeout_secondsNoMaximum time to wait for completion (HTTP timeout).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: blocking execution, isolated shell by default, env var/CWD non-persistence, and reuse of stateful named sessions. It doesn't mention permissions or potentially destructive effects, but for a command executor this is adequate.

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 brief and front-loaded with the main purpose. Every sentence adds essential information about behavior and stateful sessions, with 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?

The description covers the key nuances of the tool (blocking, shell isolation, stateful reuse) and is sufficient for an agent to select and invoke it. An output schema exists, so omitting return format details is acceptable. It could mention the timeout parameter, but that is already in the schema.

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 the baseline is 3. The description adds value by explaining that the default is an isolated shell and that using the same shell_name reuses a stateful session, enriching the schema's parameter descriptions. This goes beyond what the schema alone provides.

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 uses a specific verb ('Execute') and resource ('a devbox'), and clearly states the blocking behavior ('block until it completes'), which differentiates it from the async sibling. It also explains the isolated shell default, adding scope clarity.

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?

It gives clear context on when to use the default isolated shell vs. a named stateful shell, which is helpful for invocation. However, it does not explicitly name alternatives like 'execute_command_async' or 'pty_connect', though the blocking distinction implies when to choose 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/contributory/runloop-mcp'

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