Skip to main content
Glama

post_handoff

Atomically record a session handoff on the shared git-common-dir board using optimistic revision locking, then regenerate HANDOFF.live.md for the next agent.

Instructions

Atomically record a session handoff on the shared git-common-dir board with optimistic rev locking and regenerate HANDOFF.live.md.

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": {
      "agent": "<agent>",
      "worktree_branch": "<worktree_branch>",
      "rev": "<rev>",
      "changed_files": "<changed_files>",
      "contracts_changed": "<contracts_changed>",
      "next_tasks": "<next_tasks>"
    },
    "name": "post_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
revYesExpected current board revision for optimistic concurrency check.
agentYesIdentifier of the agent posting the handoff (e.g. claude-code, antigravity).
blockersNoOptional list of open blockers or risks.
repo_pathNoOptional path to the git repository or worktree (defaults to server working directory).
next_tasksYesActionable next tasks for the receiving agent.
changed_filesYesList of files created or modified in this session.
worktree_branchYesActive git branch or worktree name.
contracts_changedYesShared APIs, types, or schemas changed that other worktrees must rebase on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does useful work: it discloses atomicity, optimistic concurrency via rev, and the concrete side effect of regenerating HANDOFF.live.md. It stops short of stating what happens on a rev mismatch (error shape, retry), whether existing board entries are overwritten, or what the response contains — significant gaps for an unannotated write tool.

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?

A single densely packed sentence that front-loads the action and its scope, then adds concurrency and side-effect details without filler. Every clause contributes distinct information.

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

Completeness3/5

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

For an 8-parameter, 6-required mutation tool with no annotations and no output schema, the description covers purpose, atomicity, concurrency control, and the regenerated file. It leaves out failure semantics on rev conflict, overwrite behavior on the shared board, and return information, which an agent needs before calling it safely.

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 eight parameters are already documented, and this sets the baseline at 3. The description adds only the linkage that rev drives the optimistic concurrency check; the other parameters (agent, worktree_branch, changed_files, contracts_changed, next_tasks, blockers, repo_path) get no extra meaning from the prose.

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 states a specific verb and resource ('record a session handoff') plus its location ('shared git-common-dir board'), and adds the mechanism ('optimistic rev locking') and a side effect ('regenerate HANDOFF.live.md'). It does not name or differentiate from siblings such as read_board, so an agent must infer the write-vs-read split from names alone.

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?

Usage is implied by 'record a session handoff' — the ending agent posts, the receiving agent reads — but there is no explicit when-to-use/when-not statement, no mention of reading the board first to obtain a current rev, and no guidance on what to do after a locking failure.

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