Skip to main content
Glama

delegate

Assign a coding task to Claude Code or Codex and retrieve the final output. Use this to pass work between agents.

Instructions

Delegate a task to another coding agent (Claude Code or Codex) and return its final output. Use this to hand work to the other agent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoWorking directory for the target agent
taskYesThe task prompt for the target agent
targetYesWhich agent to delegate to
timeoutMsNoMax wait for the target agent in milliseconds (default 120000)
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It only states the high-level behavior of delegation and returning output, but omits important behavioral traits such as waiting behavior, timeouts, potential side effects, or failure modes. This is insufficient for a tool that delegates to an external agent.

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 two sentences, concise and front-loaded. It conveys the primary action and a usage hint without any unnecessary words, earning a high score for structure.

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 the tool has 4 parameters and no output schema, the description provides a basic understanding but lacks details on the return value structure, error behavior, or how cwd/timeout affect execution. It is adequate but leaves gaps 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 schema fully documents all parameters. The tool description adds no parameter-specific meaning beyond, which is acceptable as the baseline for full schema coverage.

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 identifies the action ('Delegate a task') and the resource ('another coding agent (Claude Code or Codex)'), and states the outcome ('return its final output'). It is specific and leaves no ambiguity about what the tool does.

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 provides clear context for use ('Use this to hand work to the other agent'), indicating when the tool should be invoked. However, it lacks explicit exclusions or comparisons to alternatives, so it does not fully earn 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/Ming0429/bridge-mcp-server'

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