Skip to main content
Glama

delegate_claude

Runs coding or file tasks on a Claude worker with configurable read/edit/auto permissions, model choice, allowed commands, budgets, timeouts, and resumable sessions for controlled delegation.

Instructions

Run a task on the Claude worker account (claude -p). permission_mode: 'read' (default: read files and run read-only shell commands), 'edit' (also edit files; no other commands), 'auto' (edit and run commands that pass Claude Code's safety classifier). model: '' (worker default), 'haiku', 'sonnet', 'opus'. allowed_commands: comma-separated command prefixes the worker may run, e.g. 'dotnet test,git diff'. resume_session_id continues an earlier worker session; prompt_file reads the prompt from a file.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "delegate_claude"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
modelNo
effortNo
promptYes
prompt_fileNo
max_budget_usdNo
permission_modeNoread
timeout_secondsNo
allowed_commandsNo
resume_session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are present, so the description must carry the full behavior burden. It does well on the security profile: permission_mode's read/edit/auto levels and the allowed_commands allowlist are concrete capability disclosures. However, it never says whether the call blocks until completion or returns a handle, how timeout_seconds and max_budget_usd affect the run, or what happens on budget/timeout exhaustion.

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?

Dense and front-loaded: the core action lands in the first clause, followed by a parameter legend in priority order. No filler sentences, and every clause carries operative information.

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?

For a 10-parameter execution tool with no annotations and no output schema, key gaps remain: the return value shape is unstated, and the caller cannot tell whether this is synchronous or job-based despite a 300-second default timeout. The capability/permission model is well covered, but cost and timeout semantics are not.

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?

Schema description coverage is 0%, so the description must compensate, and it does for the security-critical parameters: permission_mode values, model options, allowed_commands syntax with an example, plus resume_session_id and prompt_file semantics. Five of the 10 parameters—cwd, effort, prompt, max_budget_usd, timeout_seconds—are left to their names, which is a real but partial gap.

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?

States a specific verb and resource: 'Run a task on the Claude worker account (claude -p)'. Naming the Claude worker distinguishes it from delegate_codex/delegate_antigravity at a glance. It stops short of explicitly contrasting behavior with those siblings, which keeps it from a 5.

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

Usage Guidelines2/5

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

The description explains how to configure a run but never says when to pick this tool over the sibling tools (for example, delegate_codex, delegate_local_agent, or run_parallel_agents), nor does it describe a when-not condition. The only usage-like cue is for resume_session_id, which explains continuing an earlier worker session.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.