Skip to main content
Glama

update_status

Destructive

Transitions a task to a new status, with optional lease renewal or attempt reset. Pass a version to prevent stale updates; on CONFLICT, re-read and retry.

Instructions

Transition status. version is an optional optimistic lock — read it via get_task fields:["version"] or the claim response; a stale one answers CONFLICT, so re-read and retry, except CONFLICT: lease held by , which means hand the task back. canceled withdraws any task still open for work; failed is closed for work and only withdrawable to canceled; epics stay open and close directly to done/failed/canceled, refused while children are not terminal. A non-renewal entry into in_progress is held to claim eligibility (not an epic, deps satisfied). renew:true with status=in_progress re-arms your own lease (heartbeat ~lease_ttl_min/3) and bumps version. reset_attempts:true rides any legal transition, requires a comment, zeroes attempts, and is refused on epics and closed tasks.

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>",
      "agent": "<agent>",
      "status": "<status>"
    },
    "name": "update_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
agentYesagent name; <=200 code points
renewNowith status=in_progress on an in_progress task: re-arm your own lease (heartbeat, ~lease_ttl_min/3)
statusYes
commentNotyped resolution when done/failed/canceled; <=10000 code points
versionNooptimistic lock; omit to skip the version check (a stale version still refuses)
reset_attemptsNowith any legal transition: zero attempts (budget refund, max_attempts untouched), requires comment, max_attempts untouched, echoes attempts in the response; not on epics, not on tasks closed for work

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well past the annotations (destructive/openWorld=false, idempotent=false) by disclosing the optimistic-lock protocol, the CONFLICT response classes, the `lease held by <other>` case that requires handing the task back, eligibility gating for entering `in_progress`, and epic/closed-task refusals. These are exactly the failure modes an agent must anticipate before calling a destructive mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly every clause earns its place — there is little filler — but the whole definition is a single run-on block of semicolon-separated rules that interleaves four distinct concerns (locking, cancellation semantics, epic gating, lease renewal). Front-loading is strong ("Transition status" plus the lock rule first), yet the structure makes it easy to miss a constraint like the epic refusal.

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?

For a 7-parameter destructive mutation with no output schema, it covers the hard parts: legality of transitions, conflict handling, and lease/renewal behavior. It doesn't describe what a successful call returns (version bump is only mentioned in the renew case) or that a typed `comment` is required for done/failed/canceled, leaving moderate gaps.

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?

Adds real meaning beyond the 71%-covered schema: `version` is explained as an optional optimistic lock with re-read-and-retry on staleness, `renew` is tied to heartbeat cadence (~lease_ttl_min/3) and version bumping, and `reset_attempts` is constrained (requires comment, zeroes attempts, refused on epics and closed tasks). The `status` values carry semantic weight too (canceled vs failed, epic restrictions), though `agent` and `comment` requirements are left largely 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?

Opens with a specific verb+resource ("Transition status") and immediately grounds it in the task state machine (open/in_progress/done/failed/canceled, epic handling, leases). An agent can tell this is a status-transition tool, not a general field updater. It stops short of a 5 because it never distinguishes itself from the sibling `update_task`, which plausibly also mutates tasks.

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?

Gives concrete when-to-use rules for each status: `canceled` withdraws any open task, `failed` is closed and only withdrawable to `canceled`, epics are refused while children are non-terminal, and `renew:true` re-arms a lease. What's missing is routing to alternatives — e.g. whether acquiring a lease initially belongs to `claim_task` rather than `update_status`.

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