Skip to main content
Glama
g2zz
by g2zz

subagent_spawn

Start a subagent run to perform file operations and execute commands within a specified directory, supporting read-only exploration or writable work.

Instructions

Start an Open Subagent MCP run.

agent_type must be "explorer" for read-only exploration or "worker" for writable work. By default, Open Subagent MCP may only access files under cwd. Repository-external paths must be declared in allowed_external_roots and still pass realpath, symlink, and sensitive path checks.

Keep timeout_seconds <= 120 for normal tasks. For larger tasks, increase max_steps first and narrow the search scope. If timeout_seconds > 120 is required, pass explicit_authorizations=["long_running_commands"].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_typeYes
messageYes
cwdYes
itemsNo
fork_contextNo
modelNo
dry_runNo
max_stepsNo
timeout_secondsNo
allowed_external_rootsNo
explicit_authorizationsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations present, so description carries full burden. It discloses that only files under cwd are accessible, external paths must be declared and pass security checks, and that long timeouts need explicit authorization. This adds behavioral context beyond the basic 'start a run'.

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?

Description is a single paragraph of three sentences with no wasted words. It front-loads the purpose and then adds important behavioral details. Could benefit from slight structuring (e.g., bullet points for parameters) but overall efficient.

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?

The description covers key aspects like agent type, timeout, and external paths, but leaves many parameters (items, fork_context, dry_run, max_steps) undefined. With 11 parameters and no annotations, the description is incomplete for full autonomous selection. Output schema exists but doesn't compensate for missing parameter semantics.

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%, yet the description only clarifies agent_type, timeout_seconds, allowed_external_roots, and explicit_authorizations. Parameters like items, fork_context, dry_run, max_steps are left unexplained. Given the high parameter count, more parameter-level detail is needed.

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 the tool starts an Open Subagent MCP run. It distinguishes between 'explorer' (read-only) and 'worker' (writable) agent types, which differentiates it from sibling tools like subagent_close or subagent_rollback.

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?

Provides clear context: agent type selection based on need, default timeout guidelines (<=120 for normal tasks, >120 requires explicit authorizations), and note about file access. Does not explicitly list when-not-to-use, but the guidance is strong and implies appropriate use.

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/g2zz/open-subagent-mcp'

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