Skip to main content
Glama

claude_handoff

Generate a zero-LLM-cost, read-only handoff packet from local .agents/state to help agents resume work, address open verification issues, or plan updates without duplicating effort.

Instructions

Zero-LLM-cost portable handoff packet from local .agents/state (L1 workspace-brief + L2 plan-history + L3 run archives): current checkpoint, active artifact and interface map, open verification issues, git status. Read-only; never creates .agents/state. Use when switching agents or planning a new 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": {
      "workspace_dir": "<workspace_dir>"
    },
    "name": "claude_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoHandoff intent: 'continue' (default: resume the current work), 'fix_review' (focus on open verification issues), or 'new_plan' (plan a follow-up update without duplicating prior work).
max_bytesNoMaximum packet size in bytes (default: 3072).
search_queryNoOptional case-insensitive local search across state files to include matching excerpts.
workspace_dirYesAbsolute path to the target project workspace directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it declares read-only behavior, guarantees it never creates .agents/state, notes zero LLM cost, and describes what the packet contains. Remaining gaps are error behavior when state is absent and how truncation to max_bytes affects the packet.

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?

The core value and the read-only guarantee come first, followed by contents and then the when-to-use clause. It is dense with jargon (L1 workspace-brief, L2 plan-history) but no sentence is 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?

For a four-parameter read tool with no output schema and no annotations, the definition covers source, contents, side-effect safety, and usage context. Only failure modes and output packaging are unaddressed, which is a minor gap.

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 the schema already documents mode, max_bytes, search_query, and workspace_dir. The description adds only indirect context via the L1/L2/L3 layering that search_query scans, so a baseline 3 is appropriate.

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 names the resource (a handoff packet built from .agents/state) and enumerates its contents: checkpoint, artifact/interface map, open verification issues, git status. It is clearly distinct from the execution/verify siblings because it only reads state and produces a summary, though it never names a sibling directly.

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?

'Use when switching agents or planning a new update' gives a concrete triggering context, and the read-only framing implies when not to reach for it (i.e., instead of a mutating tool). It stops short of naming an explicit alternative such as the verify tool for deep issue triage.

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