Skip to main content
Glama

spawn_external_agent

Spawn a non-Claude CLI agent (Codex or Gemini) in a tmux pane, register it in the team config, and start an inbox watcher so it works autonomously and receives messages.

Instructions

Spawn a new external (non-Claude) agent in a tmux pane.

The agent is registered in the team config and begins working autonomously. An inbox watcher is started to deliver messages to the agent via tmux injection.

Args: backend_type: CLI backend to use. Currently supported: "codex". subagent_type: Role description for the agent (e.g., "code-reviewer"). cwd: Working directory (must be an absolute path).

Names must be unique within the team.

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": {
      "team_name": "<team_name>",
      "name": "<name>",
      "prompt": "<prompt>",
      "cwd": "<cwd>"
    },
    "name": "spawn_external_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYes
nameYes
promptYes
team_nameYes
backend_typeNocodex
subagent_typeNogeneral-purpose

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose real side effects: the agent is registered in the team config, starts working autonomously, and an inbox watcher is started to deliver messages via tmux injection. However it omits failure modes, whether spawning is reversible, what happens on duplicate names (beyond 'must be unique'), and any resource or permission implications of launching a background process.

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-loaded with the core action, then behavior, then a compact Args block plus a trailing constraint. Every sentence carries information; the only weakness is that the Args block covers a subset of the schema rather than the full set.

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?

This is a side-effecting process-launch tool, and the description does a fair job: it explains the resulting state (registered agent, autonomous work, watcher), which is what an agent needs before committing. An output schema exists, so return values need not be described, but the missing semantics for prompt and team_name, plus the stale backend_type list, keep this below complete.

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 coverage is 0% and six parameters exist, yet the description documents only three (backend_type, subagent_type, cwd) and adds a constraint only for cwd (absolute path). The most consequential parameters, prompt and team_name, are never explained, and the backend_type note ('Currently supported: "codex"') conflicts with the schema enum that also allows 'gemini'.

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?

The first line gives a specific verb and resource: spawn a new external (non-Claude) agent in a tmux pane. That is concrete and disambiguates it from check_external_agent and shutdown_external_agent, though the description never names those siblings explicitly.

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?

Use is implied by the opening sentence (create an external agent), and the uniqueness constraint hints at pre-conditions, but there is no explicit when-to-use vs when-not guidance or reference to the check/shutdown lifecycle siblings.

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