Skip to main content
Glama

delegate_implementation

Plan, implement, and review code changes in one call. Delegates tasks to CLI agents to automate the full development cycle.

Instructions

Plan → implement → review in one MCP call.

The composite tool runs three stages sequentially:

  1. Plan via the planner tool (planner_agent).

  2. Implement via the implement tool (implementer_agent; mutation flags enabled). base_path must be allow-listed via CONSULT_MCP_ALLOWED_BASE exactly as for implement.

  3. Review via diff_review or codereview (reviewer_agents, in parallel). Choice is automatic based on implement's output: a unified git diff routes to diff_review; otherwise the list of modified files routes to codereview.

Returns one of:

  • {"status": "success", ...} — all three stages ok

  • {"status": "partial_success", ...} — implement ok, ≥1 reviewer failed or review skipped

  • {"status": "partial_error", "stage_failed": "implement", ...} — implement failed; review run best-effort against any partial diff

  • {"status": "error", "stage_failed": "plan", ...} — planner failed, downstream stages skipped

The tool never raises — all errors are surfaced as structured fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYes
base_pathYes
planner_agentNoclaude
implementer_agentNocodex
reviewer_agentsNo
plan_depthNotree
plan_timeoutNo
implement_timeoutNo
review_timeoutNo
constraintsNo
Behavior4/5

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

Disclosures include all possible return statuses with structured fields, that it never raises, the auto-selection of review based on output, and mutation flags for implement. No annotations provided, so description carries full burden. Lacks explicit mention of authorization or side effects beyond mutation.

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?

Well-structured with bullet points and code blocks for return types. Efficiently conveys complex workflow without redundancy. Slightly lengthy but justified by complexity.

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?

Given 10 parameters, no output schema, and no annotations, the description covers workflow and error handling well but lacks parameter guidance. Incomplete for full parameter understanding.

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%, so description must compensate. Only base_path's allow-listing is mentioned; task, agent selections, timeouts, plan_depth, constraints are not explained. Users must infer most parameter meanings from context or external knowledge.

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?

Description clearly states the tool's purpose as a three-stage pipeline (plan → implement → review) in one MCP call. It distinguishes itself from sibling tools like planner, implement, diff_review, and codereview that handle individual stages.

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 explicit context: when you want a complete pipeline, notes that base_path must be allow-listed, explains automatic routing between diff_review and codereview, and states that it never raises errors. Could be more explicit about when to use composite vs individual tools.

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/oblogin/consult-mcp'

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