Skip to main content
Glama

delegate_task

Offload work to a headless CLI agent by specifying required capabilities, role, or agent. Run isolated worktrees and define shell checks to verify results before review.

Instructions

Delegate a task to a headless CLI agent or role.

The default agent='auto' selects an installed worker by capability. Pass required_capabilities when the orchestrator already knows what the task needs, and exclude_agents to keep the human-facing orchestrator out of the worker pool. Direct agent selection and static roles remain available as explicit overrides. If worktree is True, the agent runs in an isolated git worktree branching from cwd. checks are shell commands run after the agent finishes (for example a test command); read their outcome with job_review before spending anything on the job's output. Optional memory_project enables automatic local session-memory bootstrap and finalization for the given project key without storing raw prompts in memory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNo
roleNo
agentNo
modelNo
writeNo
checksNo
effortNo
promptNo
worktreeNo
agent_nameNodefault_agent
backgroundNo
exclude_agentsNo
memory_projectNo
required_capabilitiesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, behavioral transparency is carried by the prose; it does disclose worktree isolation, default agent auto-selection, post-run checks, and memory-project behavior. It does not explain the write flag, background behavior, or side effects/cost of delegation, leaving important execution behavior undisclosed.

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 front-loaded with a clear purpose and each sentence adds a distinct piece of parameter/behavior guidance with little fluff. It is dense and somewhat wall-of-text, but the complexity of 14 parameters justifies the length.

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

Completeness2/5

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

For a complex tool with 14 parameters, no annotations, and zero schema property descriptions, this description is incomplete: it leaves the task prompt, write mode, effort, model, and background behavior unexplained. An agent could call the tool but would likely need external knowledge to use those parameters correctly.

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% for 14 parameters, so the description must compensate. It explains agent, required_capabilities, exclude_agents, worktree, checks, memory_project, and cwd context, but omits core parameters like prompt, write, effort, model, agent_name, and background—prompt is especially important since it is the task payload.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line states a specific action ('Delegate a task') and target ('headless CLI agent or role'), so an agent can tell what the tool is for. It does not explicitly distinguish itself from siblings like route_task, but the delegated-vs-routed distinction is reasonably inferable.

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

Usage Guidelines3/5

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

The description gives conditional guidance for parameters ('Pass required_capabilities when...', 'exclude_agents to keep...') and mentions job_review for consuming checks. It does not say when to choose delegate_task over route_task or other siblings, so usage context is helpful but not alternative-focused.

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/adityarya24/mindsync-ai'

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