Skip to main content
Glama

run

Destructive

Execute user-authorized native programs or discovered shell commands with native OS permissions, supporting one-shot, interactive, and service lifetimes and reliable operation receipts.

Instructions

Execute a user-authorized native program (exact executable + argv) or discovered shell command (shell_id), with native OS permissions and possible filesystem, process and network effects. Supports oneshot, interactive and service lifetimes. Read core, project rules and guide:native-exec first. Requires a stable operation_id; query the original receipt after an unknown outcome instead of resending.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "context_id": "<context_id>",
      "operation_id": "<operation_id>",
      "execution": "<execution>"
    },
    "name": "run"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
ttyNo
stdinNo
lifetimeNooneshot
executionYes
context_idYes
operation_idYes
env_overridesNo
yield_time_msNo
execution_deadline_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructive and open-world, and the description adds real value on top: native OS permissions, possible filesystem/process/network effects, the three lifetime modes, and idempotency semantics via operation_id. It does not explain timeout behavior, what a receipt contains, or how yield_time_ms affects return timing, leaving some operational gaps.

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?

Four dense sentences, front-loaded with the verb and resources before the safety and retry caveats. No wasted phrasing, though the prerequisite list is compressed into a terse string that assumes familiarity with 'guide:native-exec'.

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?

Covers purpose, side effects, lifetimes, prerequisites and retry semantics for a complex destructive tool, which is substantial. However, with no output schema it should say more about what a call returns (e.g., the receipt/anchor the description tells the agent to query later), and the undocumented optional parameters leave an agent guessing on cwd, env and timeout handling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage across 10 parameters, the description carries the full burden yet only explains the execution union, the lifetime enum values, and operation_id stability. Key behaviorally significant parameters such as cwd, env_overrides, tty, stdin, yield_time_ms and execution_deadline_ms are wholly undocumented in both places, which is a serious gap for a destructive tool.

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?

States a specific verb (Execute) and both resource modes precisely: a native program given exact executable + argv, or a discovered shell command given a shell_id. The parenthetical disambiguation tells an agent immediately which branch of the execution union applies, distinguishing it from siblings like read/edit/computer_use.

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?

Gives explicit prerequisites (read core, project rules, guide:native-exec first) and concrete retry doctrine: require a stable operation_id and query the original receipt after an unknown outcome rather than resending. It stops short of naming a specific sibling to use instead when execution is not warranted, but the routing intent is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.