Skip to main content
Glama
Platano78

Smart-AI-Bridge

by Platano78

parallel_agents

Run test-first development as a graph of parallel agents: a decomposer splits work, RED agents write failing tests, GREEN agents implement, and a reviewer iterates to quality.

Instructions

Run a test-first development workflow as a graph of parallel agents: a decomposer splits the task into atomic subtasks, RED-phase agents write failing tests, GREEN-phase agents implement to pass them, then a quality reviewer iterates the cycle until a threshold is met or max_iterations runs out. Use for self-contained features that benefit from test-first discipline and can be parallelized. For a single agent on a single task, use spawn_subagent. For a generate→review→fix loop on one code blob (no test infrastructure), use dual_iterate. ⚠️ DESTRUCTIVE when write_files:true (default): generated tests, implementation, and refactor outputs are written under work_directory in red/, green/, refactor/ subdirectories (defaults to /tmp/parallel-agents-<timestamp>). Returns: {success, task, decomposition (decomposer's plan), execution:{groups_executed, tasks_completed, tasks_failed, max_parallel_used, files_written, write_files_enabled}, router_info:{slots, model, status}, quality:{verdict, score, iterations}, synthesis (combined output), files:[absolute paths written], work_directory, processing_time_ms, metrics}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesHigh-level task to decompose and execute via TDD workflow
write_filesNoWrite generated code to files in work_directory (default: true). Files are organized by phase (red/green/refactor subdirectories).
max_parallelNoMaximum parallel agents (matches GPU slots, default: 2)
max_iterationsNoMaximum quality gate iterations (prevents infinite loops)
work_directoryNoOptional directory for generated files (default: /tmp/parallel-agents-{timestamp})
iterate_until_qualityNoWhether to iterate on failed quality checks
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it warns about destructive behavior when write_files is true, explains that files are written to work_directory subdirectories (red/green/refactor), and describes the iteration loop termination condition. It also includes the full return structure, adding useful context beyond annotations.

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?

The description is long but each sentence earns its place: it covers the workflow, use cases, alternatives, destructive warning, and return structure. It is well-organized and front-loaded with the core purpose, making it dense yet scannable. Not overly verbose for the complexity involved.

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 (6 parameters, no output schema, no annotations), the description is remarkably complete. It explains the process in enough detail to predict behavior, provides safety warnings, states alternatives, and lists the exact return fields. The only minor gap is not elaborating on cleanup or permissions, but the return structure and schema coverage fill most needs.

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 input schema already covers 100% of parameters with descriptions, providing a solid baseline of 3. The tool description enriches this by explaining the behavioral impact of write_files (destructive, writes to subdirectories) and mentions max_iterations as the loop limit. This extra context adds value beyond the schema.

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 runs a test-first development workflow as a graph of parallel agents, detailing the decomposer, RED/GREEN phases, and quality reviewer. It distinguishes itself from siblings by explicitly naming spawn_subagent and dual_iterate as alternatives, making its unique role obvious.

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?

It provides explicit when-to-use guidance: 'Use for self-contained features that benefit from test-first discipline and can be parallelized.' It also gives concrete alternatives: 'For a single agent on a single task, use spawn_subagent' and 'For a generate→review→fix loop on one code blob (no test infrastructure), use dual_iterate.' This is exemplary usage direction.

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