Skip to main content
Glama

delegate

Assign code edits to another agent and get a task handle (async) or wait (sync), with changed files returned for review; no commits are made.

Instructions

Another agent edits code here, no commits; returns task_handle (mode async default) or waits (sync), plus files seen changing. Review it.

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

Input Schema

NameRequiredDescriptionDefault
loopNoServer checks, review.
modeNoasync (default) or sync; see consult.
taskYesChange and acceptance; name files, do not paste.
modelNoOmit unless the user names a model or price limit. doctor lists models, efforts and prices; unknown names fail. Tag ask: ask the user first, a form follows; deny: never runs.
scopeNoPaths it may edit.
checksNoCommands.
backendNoAs in consult.
request_idNo
timeout_msNoMonotonic budget, ms: sync 15m/30m, async 60m/4h.
parent_taskNo
root_handleNo
session_handleNoFollow-up footer handle; else fresh agent.
workspace_pathNoRepo path; omit for client workspace.
reasoning_effortNoAs in consult.
output_price_belowNoUser limit, USD per million output tokens, strict (5 excludes 5). Only verified prices qualify; server picks default or newest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose the essentials: this mutates files on disk, commits are not made (so edits remain in the working tree), and the call either returns a handle immediately or blocks depending on mode, returning the files seen changing. It omits failure behavior, permission/auth requirements, and what happens on timeout, which keeps it from a 5.

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?

Three short clauses, front-loaded with the mutation and no-commit fact before the return semantics. It is efficient, though the telegraphic style ('Review it.') borders on under-specified rather than merely concise.

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 15-parameter mutating tool with no annotations and no output schema, the description covers the core contract but leaves meaningful gaps: how scope and checks constrain the edit, what session_handle/parent_task continuation means, and what a caller should do when the delegated task fails or times out.

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 80% and the per-parameter descriptions are already detailed (enum values, price semantics, timeout budgets), so the baseline of 3 applies. The description adds only the async-default note for mode; everything else is left to 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?

The description names a specific action and resource: another agent edits code in this workspace without committing, returning a task_handle (async) or blocking (sync). That is enough to distinguish it from read-oriented siblings like review, and the closing 'Review it' points at the follow-up tool. It stops short of explicitly contrasting with consult, which the schema only gestures at.

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?

Usage is implied rather than stated: async is declared the default, sync is flagged as the waiting variant, and 'Review it' hints at the review follow-up. There is no explicit when-to-use-this-vs-consult guidance, and the mode/backend/reasoning_effort fields just say 'as in consult,' pushing the agent to another tool's definition for selection criteria.

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