Skip to main content
Glama
Platano78

Smart-AI-Bridge

by Platano78

spawn_subagent

Execute a focused task using a role-specific AI agent that returns a structured verdict. Provide file paths and acceptance criteria for audits, tests, or documentation.

Instructions

Spawn one AI agent with a predefined role + system prompt and run it to completion on a single task. The agent runs once and returns its verdict; there is no memory between calls. Use when the work fits a clear role (security audit on one module, generate tests for one function, write docs for one API). For multi-agent TDD parallelism with quality gates, use parallel_agents. For multi-backend consensus on a question, use council. Pass file paths and acceptance criteria in task — the agent has no other context. ⚠️ DESTRUCTIVE when write_files:true: code blocks the agent emits are saved into work_directory (auto-created if missing, defaults to /tmp/subagent-<role>-<timestamp>). The default write_files:false is non-destructive — code is returned inline in the response. Returns: {success, role, task, backend_used, response (agent's full output), verdict (structured findings, depth controlled by verdict_mode), files_analyzed (paths the agent read), files_written:[paths] (only when write_files), work_directory, suggested_tools:[follow-up tool names], processing_time_ms, metrics}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleYesSubagent role: code-reviewer (quality review), security-auditor (vulnerability detection), planner (task breakdown), refactor-specialist (code improvement), test-generator (test creation), documentation-writer (docs generation), tdd-decomposer (break task into TDD subtasks), tdd-test-writer (RED phase), tdd-implementer (GREEN phase), tdd-quality-reviewer (quality gate)
taskYesTask description for the subagent to perform
contextNoAdditional context object for the subagent
write_filesNoWhen true, code blocks the agent emits are saved into `work_directory` as separate files. Default false — code is returned inline in the response, which keeps disk state clean but adds tokens.
verdict_modeNo`summary` returns the agent's key findings + recommended actions only (faster, less for Claude to read). `full` returns the agent's complete structured verdict including reasoning trace.summary
file_patternsNoOptional glob patterns for files to analyze (e.g., ["src/**/*.js", "*.test.ts"])
work_directoryNoDestination directory when `write_files:true`. Auto-created if missing. Defaults to `/tmp/subagent-<role>-<timestamp>`.
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does this thoroughly: no memory between calls, the agent has no other context than the task, side effects of `write_files:true` (saving code blocks into a work_directory that is auto-created), the default non-destructive behavior, and a detailed list of return fields. It even explicitly flags the destructive condition with a warning emoji. This goes well beyond what a typical description provides.

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 a single dense paragraph with five sentences, each earning its place: the core action, usage guidance, alternatives, a critical side-effect warning, and a complete return specification. It is front-loaded with the primary purpose and never meanders. No word is wasted.

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

Completeness5/5

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

Despite having 7 parameters, nested objects, and no output schema, the description provides a comprehensive picture: use cases, alternatives, side effects, default behavior, and a full enumeration of return fields. This equips the agent to decide when to invoke the tool and understand its consequences, making it contextually complete for the tool's complexity.

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

Parameters4/5

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

The schema has 100% parameter description coverage, so the baseline is 3. The description adds meaningful semantic context that enriches the schema: it explains that `task` should contain file paths and acceptance criteria because the agent has no other context, clarifies the default behavior of `write_files` in terms of resource usage ('adds tokens'), and states the auto-creation/default path for `work_directory`. These additions improve parameter understanding, though not every parameter gets extra treatment, hence a 4.

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 opens with a specific verb ('Spawn') and resource ('one AI agent with a predefined role + system prompt') and clearly states the action ('run it to completion on a single task'). It also distinguishes the tool from siblings by naming `parallel_agents` and `council` as alternatives for different use cases, which removes ambiguity about what this tool is for.

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

Usage Guidelines5/5

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

The description explicitly states when to use the tool ('Use when the work fits a clear role...') and provides concrete examples. It also tells the agent when NOT to use it and what to use instead ('For multi-agent TDD parallelism with quality gates, use `parallel_agents`. For multi-backend consensus on a question, use `council`.'). This is exactly the kind of when/when-not guidance the rubric rewards.

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/Platano78/Smart-AI-Bridge'

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