Skip to main content
Glama

Delegate Task to Project Space Agent Panel

herdr_delegate_agent

Delegates a task to a chosen coding agent in a Herdr project space, reusing an idle panel or starting one, then submits the prompt and reads output.

Instructions

One-shot workflow for delegating tasks to claude, codex, agy, grok, etc. in the Herdr space matching 'project_name': stops with 'workspace_not_found' if the space does not exist; reuses an existing idle/done panel of 'agent_kind' in that space; stops with 'agent_busy_or_blocked' if an existing panel of that kind is busy/blocked; splits and starts a new agent panel only if none exists yet; aligns the agent's internal session name to 'session_name' (sending '/new' or '/clear' plus '/rename <session_name>' without --wait when mismatched); then submits 'prompt' and reads output.

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": {
      "project_name": "<project_name>",
      "agent_kind": "<agent_kind>",
      "prompt": "<prompt>"
    },
    "name": "herdr_delegate_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional absolute project working directory path.
waitNoWait for the agent turn to settle (default true).
linesNoNumber of output lines to read back upon completion (default 200).
promptYesTask instructions or prompt text to send to the agent.
agent_argsNoOptional extra CLI arguments passed if starting a new agent panel.
agent_kindYesCoding agent kind to use (for example 'claude', 'codex', 'agy', 'grok').
timeout_msNoMaximum wait duration in milliseconds (default 300000 = 5 minutes).
project_nameYesProject directory name matching the target Herdr space label (for example 'svg-motion-forge').
session_nameNoUnified session name matching the Gemini session title + 3-letter suffix (for example 'motion-forge-001-kpx').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.9/5.0
Behavior5/5

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

Discloses substantial behavior beyond the annotations: named error outcomes ('workspace_not_found', 'agent_busy_or_blocked'), the idle/done panel reuse policy, the start-only-if-none-exists fallback, the session-name alignment side effect of sending '/new' or '/clear' plus '/rename' without --wait, and that it reads output back. This tells the agent exactly what side effects to expect on a non-readOnly, non-idempotent tool.

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?

Purpose is front-loaded in the first clause, and the remaining semicolon-separated clauses each carry distinct operational value (error codes, reuse rule, fallback, rename behavior). It is dense and long for a single sentence but has little wasted wording.

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?

For a 9-parameter, no-output-schema tool, the description covers the decision flow, failure modes, and side effects an agent needs to call it correctly. It does not specify the exact shape of the returned output (implied only by the 'lines' parameter), which is the main remaining gap.

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 per-parameter meaning is already documented; baseline is 3. The description adds workflow-level meaning (how session_name is enforced, that prompt is submitted at the end) but does not add syntax or value constraints for cwd, wait, lines, timeout_ms, or agent_args beyond the schema.

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: delegating a task to a named agent_kind inside the Herdr space matching project_name, and frames it as a 'one-shot workflow'. It is clear what it does, though it never names a sibling (e.g. agent_dispatch_and_read or agent_prompt) to differentiate the composite workflow from single-step alternatives.

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 'one-shot workflow' framing implies this is the convenience path that handles space lookup, panel reuse/start, rename and prompt in one call. However, it gives no explicit when-not-to-use guidance or comparison to the granular siblings (agent_start, agent_prompt, agent_rename, agent_read) that an agent might prefer for finer control.

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