Skip to main content
Glama

task_update

Destructive

Update the current Task Passport by appending or replacing constraints, next actions, tags, write scope, repositories, objective, and risk while preserving omitted fields and lifecycle status.

Instructions

Patch the current Task Passport without changing lifecycle status. List fields (constraints, writeScope, nextActions, tags) append and deduplicate; repositories upsert by id; omitted fields are preserved; empty or no-op updates fail. Pass clearNextActions to replace the next-actions list instead of appending, e.g. to clear a stale plan before finalizing. Pass replaceConstraints to replace constraints that are obsolete or superseded; removed constraints stay in the task history.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "task_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
riskNoNew risk level for the task.
tagsNoFree-form labels to append.
objectiveNoReplacement objective text.
writeScopeNoRepo-relative prefix paths to append to the write scope. A directory path includes its children; globs are not supported.
constraintsNoConstraints to append, or the full replacement list when replaceConstraints is true.
nextActionsNoNext steps to append, or the full replacement list when clearNextActions is true.
repositoriesNoAdditional checkouts keyed by id; the ledger root is primary. Local updates append scopes; imported bindings use only the supplied local scope. Requires an active task with pending or unknown verification.
clearNextActionsNoReplace the next actions with the provided nextActions (or clear them) instead of appending.
replaceConstraintsNoReplace the constraints with the provided constraints (or clear them) instead of appending; removed ones are recorded in the task-update event.
repositoryRecoveryNoRecover an unavailable local binding. Supply one replacement in repositories with the same id, or omit repositories to detach a missing path. Resets verification to pending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.12.0
    • addedInput schema / properties / repositoryRecovery
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Recover an unavailable local binding. Supply one replacement in repositories with the same id, or omit repositories to detach a missing path. Resets verification to pending.",
      +  "properties": {
      +    "id": {
      +      "description": "Existing binding id.",
      +      "type": "string"
      +    },
      +    "reason": {
      +      "description": "Reason recorded in the local task history.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "reason"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv1.11.0
    • addedInput schema / properties / repositories
      Added value: +{
      +  "description": "Additional checkouts keyed by id; the ledger root is primary. Local updates append scopes; imported bindings use only the supplied local scope. Requires an active task with pending or unknown verification.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "id": {
      +        "description": "Stable unique repository id; primary is reserved.",
      +        "type": "string"
      +      },
      +      "worktree": {
      +        "description": "Local Git checkout root, absolute or relative to the pack root.",
      +        "type": "string"
      +      },
      +      "writeScope": {
      +        "description": "Non-empty repository-relative prefix paths; dot means the whole checkout.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "minItems": 1,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "worktree",
      +      "writeScope"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Changed2 schema fields changedv1.9.0
    • changedInput schema / properties / constraints / description
      Previous value: -"Constraints to append."New value: +"Constraints to append, or the full replacement list when replaceConstraints is true."
    • addedInput schema / properties / replaceConstraints
      Added value: +{
      +  "description": "Replace the constraints with the provided constraints (or clear them) instead of appending; removed ones are recorded in the task-update event.",
      +  "type": "boolean"
      +}
  4. Changed7 schema fields changedv1.4.0
    • addedInput schema / properties / clearNextActions / description
      Added value: +"Replace the next actions with the provided nextActions (or clear them) instead of appending."
    • addedInput schema / properties / constraints / description
      Added value: +"Constraints to append."
    • addedInput schema / properties / nextActions / description
      Added value: +"Next steps to append, or the full replacement list when clearNextActions is true."
    • addedInput schema / properties / objective / description
      Added value: +"Replacement objective text."
    • addedInput schema / properties / risk / description
      Added value: +"New risk level for the task."
    • addedInput schema / properties / tags / description
      Added value: +"Free-form labels to append."
    • addedInput schema / properties / writeScope / description
      Added value: +"Repo-relative prefix paths to append to the write scope. A directory path includes its children; globs are not supported."
  5. First observedv1.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses important mutation behavior: list fields append and deduplicate, repositories upsert by id, omitted fields are preserved, and empty or no-op updates fail. It also explains replacement semantics and that removed constraints remain in task history.

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?

The description is front-loaded with the core operation, then covers field behavior and special flags efficiently. The dense compound sentence is justified by the number of distinct behaviors being documented, and no sentence is wasted.

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 a complex mutation tool with ten parameters and nested repository objects, the description covers the critical edge cases an agent needs: append/replace semantics, omitted-field preservation, no-op failure, repository recovery, and verification reset. No output schema exists, so return-value documentation is not required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema description coverage is already 100%, the description adds substantial meaning about parameter interactions and effects. It explains append versus replace behavior, repository upsert semantics, preservation of omitted fields, and repositoryRecovery's verification reset.

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?

The description states a specific verb and resource: patch the current Task Passport. It also scopes the operation by excluding lifecycle status changes, which distinguishes it from lifecycle-related siblings such as task_finalize or task_start.

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 context for using the tool and specific scenarios for clearNextActions and replaceConstraints, including clearing a stale plan before finalizing. It does not explicitly name alternative sibling tools or state when not to use this tool, so it falls short of the highest level.

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