Skip to main content
Glama

spawn_agent

Launch an AI agent to execute a specified task, requesting clarification if needed and returning results upon completion.

Instructions

Spawn an AI agent to work on a task. Returns a question if the agent needs clarification, or a result when done.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agentYesAgent name (e.g. "claude", "codex", "gemini", "aider")
taskYesTask description to send to the agent
contextNoOptional task context
cwdNoWorking directory for the agent process
modelNoModel to use (e.g. "o3", "gpt-5.4", "claude-sonnet-4", "gemini-2.5-pro"). Passed via --model flag to the agent CLI.
thinkingNoThinking/reasoning depth level (e.g. "low", "medium", "high", "max"). Controls how deeply the agent reasons.
retryNoAuto-retry on failure (default: false).
escalateNoOn retry, escalate thinking level automatically (default: false). Requires retry: true.
timeoutMsNoTimeout in milliseconds (default: 3600000)
Behavior3/5

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

Annotations indicate it's not read-only (readOnlyHint: false) and not destructive (destructiveHint: false), with open-world behavior (openWorldHint: true). The description adds value by explaining the return behavior ('returns a question if the agent needs clarification, or a result when done'), which isn't covered by annotations. However, it doesn't detail other behavioral traits like error handling, rate limits, or authentication needs, keeping it at a moderate score.

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 front-loaded with the core purpose in the first sentence and efficiently explains the return behavior in the second. Both sentences earn their place by providing essential information without redundancy or fluff, making it appropriately sized and well-structured.

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?

Given the tool's complexity (9 parameters, nested objects, no output schema) and rich annotations, the description is mostly complete. It covers the purpose and return behavior but could improve by mentioning potential side effects (e.g., resource usage) or linking to sibling tools for better context, preventing a perfect score.

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

Parameters3/5

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

With 100% schema description coverage, the input schema fully documents all 9 parameters, including their types, descriptions, and constraints. The description adds no parameter-specific information beyond what's in the schema, so it meets the baseline of 3 without compensating for any gaps.

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 specific action ('spawn an AI agent') and the resource ('to work on a task'), distinguishing it from siblings like 'list_agents' (listing), 'kill_agent' (terminating), and 'reply' (responding). It also specifies the outcome ('returns a question if the agent needs clarification, or a result when done'), making the purpose explicit and differentiated.

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?

The description implies usage for delegating tasks to AI agents, with context from sibling tools suggesting it's part of an agent management system. However, it lacks explicit guidance on when to use this tool versus alternatives like 'spawn_agents' (plural) or prerequisites, such as agent availability or system requirements, which would elevate it to a 5.

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/mikusnuz/agent-link-mcp'

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