Skip to main content
Glama

save_handoff

Save a structured handoff of the current task, next action, decisions, and constraints so the next session or agent can continue without losing context.

Instructions

Save a structured handoff so the next session or agent can continue. Call before stopping or when context is getting long.

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": "<task>",
      "next_action": "<next_action>"
    },
    "name": "save_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesThe task being worked on
agentNoYour agent name, e.g. claude-code, codex
testsNo
completedNoConcrete steps finished in this session
decisionsNoNew architecture or design decisions made this session
constraintsNoNew user rules that must not be broken; paths are globs the rule protects
in_progressNoWork started but not finished
next_actionYesThe single next concrete step, specific enough to start without re-reading the session
known_issuesNoFailing tests, errors, open questions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose a meaningful behavioral trait — the record is durable and readable by a *later* session or a different agent, which is not derivable from the schema. It omits other traits an agent would want: where the handoff is stored, whether repeated calls accumulate or replace, and what is returned on save.

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?

Two sentences, ~20 words, zero filler, with the action first and the trigger second. Nothing to cut and nothing buried mid-sentence.

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 a 9-parameter tool with nested objects (task, tests, constraints with path globs) and no output schema, the description is thin: it explains why to call but not what a well-formed handoff contains beyond the raw schema. Rich field descriptions partially compensate, keeping this at minimum-viable rather than inadequate.

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 89% and includes per-field prose (e.g. next_action must be "specific enough to start without re-reading the session"), so the schema does the heavy lifting and the baseline is 3. The description adds nothing parameter-specific — notably it never signals that task and next_action are required, which is the one gap that could cause an actual call failure.

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?

Specific verb ("Save") plus specific resource ("structured handoff") plus a stated purpose ("so the next session or agent can continue"). It is clearly a write/persist operation, distinguishable in kind from read-oriented siblings like get_context and list_handoffs, though the description never names an alternative explicitly.

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 trigger conditions: "Call before stopping" and "when context is getting long." That is real when-to-use guidance rather than implied usage. It stops short of a 5 because there are no exclusions and no comparison against the add_constraint / add_decision / update_memory siblings that overlap in the same session-state space.

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