Skip to main content
Glama

Update pending task

update_task

Edit a pending ad-hoc task's title, brief, dependencies, dependency mode, or pinned worker settings before it is claimed, and pass expectedEditCount to avoid overwriting concurrent edits.

Instructions

Edit an ad-hoc task that is still pending (including one waiting on dependencies): its title, brief, dependencies, dependency mode, or pinned harness/model/effort. Refused once the worker has claimed it. Pass expectedEditCount (editCount from get_task) so an edit made meanwhile is not overwritten. Same as devintern worker task update.

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": {
      "taskKey": "<taskKey>"
    },
    "name": "update_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoReplacement brief (at most 20000 characters)
afterNoTask keys to add as dependencies
modelNo
titleNo
effortNo
harnessNo
taskKeyYesAd-hoc task key (`local-…`), from get_queue
clearAfterNoDrop every dependency first
removeAfterNoDependencies to remove
dependencyModeNostacked: once a same-repo dependency succeeded, branch from its branch and open this PR against it; the worker retargets and rebases the PR after the dependency merges. merged: wait for the dependency's PR to merge. Default: the workspace's [defaults].dependency_mode
expectedEditCountNo

Output Schema

NameRequiredDescriptionDefault
messageNo
outcomeNo
taskKeyNo
errorCodeNoSet on failure: stable error code
nextStepsNoSet on failure: steps to run next (`command` runs on the worker host)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent, non-destructive mutation, so safety is covered; the description adds genuinely new behavior: the operation is rejected after worker claim, and expectedEditCount guards against lost updates from a concurrent edit. That optimistic-concurrency contract is exactly the kind of trait annotations cannot express. It does not say what an editCount mismatch returns, which keeps it below 5.

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?

Four tight sentences, each carrying distinct information: what is editable, the refused-after-claim constraint, the concurrency guard, and a CLI equivalent. The scope and refusal conditions are front-loaded, and no sentence merely restates the tool name.

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?

With 11 parameters, a mutation annotation profile, and an output schema that presumably covers return values, the description supplies the missing decision-critical pieces: pending-only eligibility, refusal after claim, and the concurrency token source. The one real gap is the failure mode on an expectedEditCount mismatch, which an agent would want stated rather than inferred.

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?

At 55% schema coverage with 11 parameters, the description compensates well: it maps the editable fields to body, the dependency trio (after/removeAfter/clearAfter), dependencyMode, harness, model, and effort. Most valuably, it explains that expectedEditCount should carry the "editCount from get_task," giving the parameter a purpose the bare schema lacks. It leaves the after/removeAfter/clearAfter distinctions to the schema's own descriptions.

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 opens with a specific verb and resource ("Edit an ad-hoc task") and constrains the scope to tasks that are "still pending (including one waiting on dependencies)," then enumerates the editable surface (title, brief, dependencies, dependency mode, pinned harness/model/effort). It does not explicitly contrast itself with siblings like cancel_task or propose_task, so an agent must infer that those handle cancellation and creation, but the operation itself is unambiguous.

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?

The description states a clear applicability boundary: use it while the task is pending, and it is "Refused once the worker has claimed it" — a concrete when-not condition an agent can check. It also points at get_task as the source for expectedEditCount. It stops short of naming alternatives for the claimed-task or new-task cases, which is the only missing routing information.

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