Skip to main content
Glama

Update task

update_task

Change an existing task's status, title, description, comments, links, attention flag, or verification verdict, and preview edits with dryRun before writing.

Instructions

Update an existing task. Supports status changes, title/description updates, adding comments, flagging needs-attention, and changing the task's links (parent/relates/blocks). Pass setAttention:true (with comment carrying the reason — refused without one) to flag the task, or clearAttention:true to clear the flag. Pass fields (e.g. ["id","status"]) for a compact answer instead of the full task object; pass dryRun to preview the edit without writing anything, and branch to record the work branch (required on the review transition when the project sets createBranch). REVIEW GATE (same rules as vibeflow tasks --edit, same codes): status "review" REQUIRES comment (refused REVIEW_COMMENT_REQUIRED); an ANNOTATED task (url + selector) additionally REQUIRES a verdict (setVerify pass/fail/cannot — refused VERIFY_REQUIRED); commitMessage is REQUIRED when auto-commit is ON (refused COMMIT_MESSAGE_REQUIRED); a Research task must NOT carry a verdict (refused RESEARCH_VERIFY_NOT_ALLOWED — submit Research with its .md report, no verdict). Pass setVerify to record your verification verdict: "pass" attests the task IS implemented correctly (verified=true, green badge — required for annotated tasks at the review transition, which vibeflow verify never sets itself), "fail" records that it is NOT implemented correctly (verified=false, amber badge, the review gate rejects it), and "cannot" clears the verdict back to absent (no badge) for a task that cannot be assessed here — "cannot" REQUIRES verifyReason, which is recorded in the task's activity. Use it to change a task you already hold; use add_comment to discuss without changing fields, and verify_task to actually RUN visual verification (a verdict here records an assessment, it runs nothing).

LINKS — everything merges, and clearLinks is the only destructive path. links and addLinks both MERGE: a link you do not name is PRESERVED, and re-sending a link that is already there is a no-op, so neither of them can destroy a link by being incomplete. removeLinks removes exactly the taskId+type pairs you name and leaves every other link alone. clearLinks: true is the ONLY way to remove links wholesale — to drop a single link, name that taskId+type in removeLinks rather than editing links. Omitting all four fields leaves links untouched. The CLI's --set-parent/--relates/--blocks/--unrelates/--unblocks behave the same way (each is surgical and preserves every link it does not name), so the CLI and MCP surfaces now agree on link semantics.

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

Input Schema

NameRequiredDescriptionDefault
idYesTask id — a full id, or any unique prefix of one, of the task to update. An id that matches nothing is refused with TASK_NOT_FOUND and changes nothing.
linksNoADD the listed links without touching the rest (merge, same as the CLI's --relates/--blocks). A pair already present is a no-op. `links: []` is REFUSED — use clearLinks:true to clear. Combining `links` with `addLinks` merges their union once.
titleNoReplacement title. Omit to keep the current one.
branchNoBranch for this task's work. REQUIRED on the review transition when the project sets createBranch (refused BRANCH_REQUIRED); stored as branchName.
dryRunNoPreview only: validate the edit and report what WOULD change without writing the task file.
fieldsNoReturn only these task fields (e.g. ["id","status"]) instead of the full task object — a status flip need not cost a full ticket dump. Omit for the full object.
parentNoSet/replace the parent task link (full id or unique prefix; same as the CLI's --set-parent). Empty string clears the parent (same as --no-parent). Applied after clearLinks/links/addLinks/removeLinks.
statusNoNew status. Moving to review triggers the review gate (comment, and for annotated tasks a verdict, may be required).
commentNoComment to attach (same as the CLI's --comment). REQUIRED when status is "review" — the review transition is refused with REVIEW_COMMENT_REQUIRED without one.
addLinksNoADD links without touching the rest (merge). Same semantics as `links` — sending both merges their union once. Use clearLinks:true to drop the whole set.
setVerifyNoYour verification verdict: "pass" = the task IS implemented correctly (required for an annotated task at review), "fail" = it is NOT (the review gate blocks it), "cannot" = unverifiable here, which REQUIRES verifyReason. Omit to leave any stored verdict untouched.
clearLinksNoRemove EVERY link from the task. Applied BEFORE the merge: clearLinks -> (links + addLinks) -> removeLinks. `true` clears; `false` or absent is a no-op.
descriptionNoReplacement task body. Omit to keep the current one.
removeLinksNoREMOVE the listed links without touching the rest. Applied after clearLinks and after the links/addLinks merge.
setAttentionNoFlag the task as needing attention (same as the CLI's --set-attention). Only `true` acts; REQUIRES `comment` on the same call — the comment carries the reason and the call is refused with E_USAGE without one. Omit to leave the flag untouched.
verifyReasonNoWhy the task cannot be verified. REQUIRED with setVerify:"cannot", and refused as E_USAGE on its own — a reason belongs to a "cannot" verdict.
commitMessageNoCommit message for the review auto-commit (same as the CLI's --commit-message). REQUIRED when status is "review" and auto-commit is ON (refused with COMMIT_MESSAGE_REQUIRED); ignored when auto-commit is off.
clearAttentionNoClear the needs-attention flag (same as the CLI's --clear-attention). Only `true` acts; needs no comment. Refused with E_USAGE together with setAttention. Omit to leave the flag untouched.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.27.1
    • addedInput schema / properties / clearAttention
      Added value: +{
      +  "description": "Clear the needs-attention flag (same as the CLI's --clear-attention). Only `true` acts; needs no comment. Refused with E_USAGE together with setAttention. Omit to leave the flag untouched.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / setAttention
      Added value: +{
      +  "description": "Flag the task as needing attention (same as the CLI's --set-attention). Only `true` acts; REQUIRES `comment` on the same call — the comment carries the reason and the call is refused with E_USAGE without one. Omit to leave the flag untouched.",
      +  "type": "boolean"
      +}
  2. Changed5 schema fields changedv0.22.0
    • addedInput schema / properties / branch / description
      Added value: +"Branch for this task's work. REQUIRED on the review transition when the project sets createBranch (refused BRANCH_REQUIRED); stored as branchName."
    • addedInput schema / properties / description / description
      Added value: +"Replacement task body. Omit to keep the current one."
    • addedInput schema / properties / dryRun / description
      Added value: +"Preview only: validate the edit and report what WOULD change without writing the task file."
    • addedInput schema / properties / status / description
      Added value: +"New status. Moving to review triggers the review gate (comment, and for annotated tasks a verdict, may be required)."
    • addedInput schema / properties / title / description
      Added value: +"Replacement title. Omit to keep the current one."
  3. Changed5 schema fields changedv0.21.1
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / comment / description
      Added value: +"Comment to attach (same as the CLI's --comment). REQUIRED when status is \"review\" — the review transition is refused with REVIEW_COMMENT_REQUIRED without one."
    • addedInput schema / properties / commitMessage / description
      Added value: +"Commit message for the review auto-commit (same as the CLI's --commit-message). REQUIRED when status is \"review\" and auto-commit is ON (refused with COMMIT_MESSAGE_REQUIRED); ignored when auto-commit is off."
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "Return only these task fields (e.g. [\"id\",\"status\"]) instead of the full task object — a status flip need not cost a full ticket dump. Omit for the full object.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / parent
      Added value: +{
      +  "description": "Set/replace the parent task link (full id or unique prefix; same as the CLI's --set-parent). Empty string clears the parent (same as --no-parent). Applied after clearLinks/links/addLinks/removeLinks.",
      +  "type": "string"
      +}
  4. First observedv0.20.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes far past the annotations by disclosing the review gate in full with literal error codes (REVIEW_COMMENT_REQUIRED, VERIFY_REQUIRED, COMMIT_MESSAGE_REQUIRED, RESEARCH_VERIFY_NOT_ALLOWED, BRANCH_REQUIRED), the meaning of each verdict including badge side effects, and that a verdict runs nothing. It also explains that links/addLinks merge non-destructively and that clearLinks is the sole wholesale-removal path — a destructive escape hatch that the destructiveHint:false annotation would otherwise leave undisclosed, so the description adds transparency rather than contradicting it.

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?

Front-loaded with purpose and alternatives, then clearly sectioned into review-gate and LINKS blocks, so the density is navigable. It is long and partly duplicative of the already-rich schema text (the links semantics appear in the prose and again on three properties), which costs it a point, but little of the content is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 18-parameter, non-idempotent mutation with no output schema, the definition covers everything an agent needs to call it correctly: gates and their refusal codes, dryRun preview, field projection, link merge/clear semantics, and the CLI parity note. Nothing material is left for the caller to guess.

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 coverage is already 100%, so the schema does the heavy lifting; the description still adds cross-parameter meaning the schema cannot express as cleanly — the ordering 'clearLinks -> (links + addLinks) -> removeLinks', the refusal of `links: []`, and the fact that clearAttention+setAttention together is refused. Some of this is restated from the schema descriptions rather than genuinely new, which keeps it below a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Update an existing task') and immediately enumerates the mutation surface: status, title/description, comments, attention flag, links, verdicts. It distinguishes itself from siblings by name ('use add_comment to discuss without changing fields, and verify_task to actually RUN visual verification'), so an agent can pick it without opening a schema.

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

Usage Guidelines5/5

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

Explicitly states the selecting condition ('Use it to change a task you already hold') and names two alternatives with the exact boundary that routes away from this tool: add_comment for discussion, verify_task for actually running verification versus merely recording a verdict here. It also gives when-not conditions for parameter choices (setAttention requires a comment, Research tasks must not carry a verdict).

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