Skip to main content
Glama

delegate

Runs a task on a worker in a specified workdir, verifies output with declared checks, and returns structured results; agent mode produces code patches from a private copy.

Instructions

Run a task on a worker in the absolute workdir, verified by checks. wait=False: then collect. agent=True: a local agent changes code in a private copy and returns a patch; one change per item of steps, what they share in task.

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": {
      "task": "<task>",
      "workdir": "<workdir>"
    },
    "name": "delegate"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYes
waitNo
agentNo
stepsNo
checksNo
backendNo
profileNohelper
workdirYes
max_turnsNo

Output Schema

NameRequiredDescriptionDefault
flagsNo
answerNo
checksNo
run_idYes
statusYes
files_writtenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses async behavior, checks verification, and that agent mode modifies code in a private copy and returns a patch, but it omits permissions, side effects on the worker, failure behavior, and other operational constraints.

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 and compact, with no wasted filler. However, the shorthand and sentence fragments make it denser and slightly harder to parse than necessary.

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 complex nine-parameter delegation tool with no annotations, the description covers the main modes but leaves important operational parameters unexplained. The output schema is present, so return-value details need not be described, but the parameter and behavioral gaps keep it from being complete.

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 coverage is 0%, so the description must compensate. It adds meaning for task, workdir, checks, wait, agent, and steps, but says nothing about backend, profile, or max_turns, leaving a third of the parameters undocumented.

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 description states a specific action: running a task on a worker in an absolute workdir, with checks verification. It distinguishes the async path by naming collect and the agent path by describing local code changes in a private copy, though the worker concept remains somewhat abstract.

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?

It gives clear conditional guidance: when wait=False, use collect afterwards, and when agent=True, expect a patch from a private copy with one change per step item. It lacks explicit exclusions or guidance on when to prefer other siblings such as status or feedback.

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

Deploy Server

Other Tools