Skip to main content
Glama

save_token_handoff

Build a zero-LLM handoff snapshot from a transcript and selected state, persist chosen keys to SQLite kv_memory, and write a compact Markdown file to start a fresh chat.

Instructions

Build a zero-LLM session handoff snapshot: optionally extracts prompts/touched files/errors from a transcript, persists chosen state keys into SQLite kv_memory, and writes a compact .md file for starting a fresh chat.

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": {
      "title": "<title>"
    },
    "name": "save_token_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoCurrent primary goal.
titleYesShort title for the handoff snapshot.
projectNoOptional project name or path.
maxCharsNoMax characters for handoff Markdown (800..6000).
decisionsNoKey technical decisions.
nextStepsNoOrdered remaining next steps.
openRisksNoOpen issues or caveats.
saveStateKeysNoKeys from `state` to persist into kv_memory.
conversationIdNoOptional Antigravity conversationId to extract recent user prompts, touched files, and errors.
transcriptPathNoOptional explicit path to transcript_full.jsonl.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/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 behavioral burden. It usefully discloses that the tool optionally extracts transcript data, persists selected state keys into SQLite kv_memory, and writes a compact .md file. It does not cover overwrite semantics, permissions, error behavior, or what the tool returns, which are important for a mutating tool with no annotations.

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 description is a single front-loaded sentence that states the core purpose first, then enumerates the actions via a colon. It is dense but avoids filler, though the phrase 'zero-LLM' is slightly jargon-heavy and could be clearer.

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?

The definition covers the main multi-part behavior, but for a 10-parameter mutation tool with no annotations and no output schema, it leaves gaps around overwrite behavior, return value, and conflict handling. It is adequate but not complete.

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 all 10 parameters. The description links transcript extraction to conversationId/transcriptPath and state persistence to saveStateKeys, but it adds no format or constraint details beyond what the schema provides. 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 a specific verb and resource: 'Build a zero-LLM session handoff snapshot.' It also lists the three core actions (extract transcript data, persist state keys, write a Markdown file), which makes the tool's purpose clear. It does not explicitly contrast this with sibling tools such as save_token_resume, so it falls short of full sibling differentiation.

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?

The phrase 'for starting a fresh chat' provides clear context for when to use this tool. However, it does not name alternatives or state when not to use it, leaving comparison with siblings like save_token_resume to inference.

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