Skip to main content
Glama

fleet_run

Delegate tasks to configured local or remote AI coding agents, resume sessions, collect quick results, and keep attachable tmux sessions with sandbox egress checks.

Instructions

Delegate a task (or resume native session_id) on a configured target harness.

  • Use wait_sec (e.g. 20-45) to collect quick tasks in one call; longer tasks return run_id & resume_cmd.

  • Set use_tmux=True on remote servers to keep an attachable live tmux pane.

  • Respects each host's native tool configuration; enforces fail-closed sandbox egress checks on ssh+sbc.

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": {
      "target": "<target>",
      "prompt": "<prompt>"
    },
    "name": "fleet_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
modeNoasync
modelNo
titleNo
callerNo
effortNo
promptYes
targetYes
use_tmuxNo
wait_secNo
raw_promptNo
session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose some real behavior: fail-closed sandbox egress checks on ssh+sbc, per-host native tool configuration, and that longer tasks return run_id plus resume_cmd. Unexplained are the async-vs-sync mode semantics, whether a run is destructive or cancellable, and permissions required to target a host.

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?

Front-loads the purpose in one line and follows with three short operational bullets; no filler. Some bullets are subject-less fragments ('Respects each host's native tool configuration'), which marginally hurts scannability but not enough to waste space.

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

Completeness2/5

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

For a 12-parameter tool with no annotations and no output schema, the description should define the mode/model/effort/cwd dimensions and return shape. It covers only a couple of parameters and the return contract, so an agent still cannot fill most fields confidently.

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?

Schema description coverage is 0% across 12 parameters, so the description must compensate and mostly does not. It explains wait_sec, use_tmux and session_id usage, but cwd, mode, model, title, caller, effort and raw_prompt are left entirely undocumented, leaving over half the surface undefined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: delegate a task (or resume a session_id) on a configured target harness. An agent can tell this launches work on a remote host, though it never explicitly contrasts with siblings like fleet_runs or fleet_output, so differentiation rests on inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete conditional advice for two parameters: use wait_sec (e.g. 20-45) to collect quick tasks in one call, and set use_tmux=True on remote servers for an attachable pane. It gives no guidance on when to use fleet_run versus fleet_output/fleet_status for retrieving results, and no mention of when not to use it.

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