Skip to main content
Glama
ltxzs

Claude Code Subagent MCP

by ltxzs

Delegate Implementation To Claude Code

delegate_to_claude

Run implementation tasks in Claude Code CLI within a specified workspace, then return output, git status, diff stats, changed files, and stderr for review.

Instructions

Run Claude Code CLI in the explicit workspacePath so Claude implements changes while Codex receives Claude output, git status, diff stat, changed files, stderr, and raw output tail for review.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesImplementation task to pass to Claude Code.
timeoutMsNoClaude Code execution timeout in milliseconds. Defaults to 1200000.
allowDirtyNoWhen false, refuse to run Claude if git status --short is non-empty.
workspacePathYesAbsolute or resolvable path to the target Git repository. Required; the MCP server directory is never used as a default workspace.
resumeSessionIdNoOptional Claude Code session id passed with --resume.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
gitYes
errorNo
claudeYes
gitAvailableNo
workspacePathYes
claudeAvailableNo
Behavior4/5

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

Annotations already mark the tool as non-read-only and non-idempotent. The description adds value by disclosing that this executes an external CLI, mutates the workspace ('Claude implements changes'), and returns a bundle of review signals. It does not cover failure modes or side effects such as a dirty working tree, but the allowDirty parameter in the schema covers that boundary.

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, front-loaded sentence that packs the core behavior and output artifacts with no filler. The enumeration of returned items is long but each item is informative and earns its place.

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?

With an output schema present, the description need not detail return types, and it already lists the key delivered artifacts. It omits explicit sibling routing and some edge-case behavior, but annotations and a fully covered schema fill most gaps, making the description adequate for a tool of this complexity.

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?

Schema description coverage is 100%, so the parameters are already documented in the input schema. The description reinforces workspacePath ('explicit workspacePath') and the task concept, but does not add new meaning about parameters beyond what the schema provides.

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 states a specific action — run Claude Code CLI in an explicit workspacePath — and names the resource (the target Git repository). It also explains the result: Claude implements changes while Codex receives output, git status, diff stat, changed files, stderr, and raw output tail for review, which clearly distinguishes it from the sibling status tool.

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 establishes the intended context: delegate implementation work to Claude Code and get review artifacts back to Codex. It does not explicitly name get_claude_subagent_status or state when not to use this tool, but the context is clear enough for an agent to route appropriately.

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/ltxzs/claude-subagent-mcp'

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