Skip to main content
Glama

task_handoff

Record work status—completed steps, stopping point, decisions, and next action—so the next session or agent resumes without losing context. Keeps the run lease alive or releases the task.

Instructions

Record where the work stands for the next session: done, where it stopped, decisions, next step. The latest handoff is current; task_start returns it. Keeps your run lease alive; with release, ends your run instead and leaves the task open for another agent.

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_id": "<task_id>",
      "note": "<note>"
    },
    "name": "task_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteYesWhere the work stands: done, where it stopped, decisions, next step.
releaseNoAlso end your run and leave the task open, so another agent can task_start it now. Use it when the user hands the task to another agent.
task_idYesCanonical UUIDv7 task identifier.

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
released_runNo
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false, openWorld=false. The description adds real behavior beyond that: the call keeps the run lease alive, and with release it ends the run and leaves the task open for another agent. It also implies handoffs accumulate ('the latest handoff is current'), though it doesn't say whether older handoffs are retained or overwritten.

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?

Two sentences, front-loaded with the core purpose, then the lease/release behavior. Dense but every clause carries information; no filler.

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?

An output schema exists, so return values need not be explained. For a three-parameter mutation tool, the description covers purpose, lease interaction, and the release side effect, leaving only the sibling-choice guidance and handoff retention semantics unaddressed.

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 description coverage is 100%, so all three parameters are already documented. The description's phrasing for note and release largely restates the schema text, adding little parameter-level meaning beyond what the schema provides; baseline 3 applies.

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?

Names a specific verb and resource ('Record where the work stands for the next session') and enumerates the content it captures (done, where it stopped, decisions, next step). It also names task_start as the consumer of the handoff, which separates it from sibling task tools, though it doesn't explicitly contrast with task_progress or task_commit.

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?

Gives a clear condition for the optional release flag ('Use it when the user hands the task to another agent' via the schema), and states that task_start surfaces the latest handoff. However, it never says when to use a handoff rather than task_progress or task_commit, so the choice among sibling recording tools is left to inference.

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