Skip to main content
Glama

handoff

Create a compact continuation document from the current session's state to start a fresh session without losing established context or decisions.

Instructions

Package the current (or a given) session's state into a compact continuation document for starting a fresh session, without losing decisions/context already established.

Use when the current session has grown long (many turns, large context) and continuing it is getting expensive, or when the user explicitly asks to "hand off", "continue this in a new session", or "start fresh but keep context". If session_id is omitted, resolves the current session from the CLAUDE_SESSION_ID environment variable; if that isn't set, pass session_id explicitly. Returns a markdown document to paste as the first message of a new session — this does not end the current session for you.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idNo
include_diffsNo
max_diff_linesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are provided, so the description correctly carries the burden of behavioral disclosure. It states that the tool does not end the current session and explains fallback resolution via CLAUDE_SESSION_ID. It also clarifies that the output is a paste-ready markdown document, which is important for setting expectations.

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?

The description is well-structured and front-loaded: purpose first, then use cases, then parameter resolution, then output behavior. Every sentence adds value and there is no redundant filler or repetition of the tool name.

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 description covers the main workflow and output format, and an output schema exists, so return values are handled. However, two parameters remain under-specified and there is no comparison with sibling tools like transfer_session. For a tool with no annotations and zero schema param descriptions, this is a noticeable completeness gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description needed to compensate for all three parameters. It only explains session_id behavior; include_diffs and max_diff_lines are left entirely to inference from their names and defaults. An agent cannot tell what 'diffs' refers to or how max_diff_lines caps the output.

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 clearly identifies the tool's purpose: packaging a session's state into a compact continuation document for a new session. It names a specific verb and resource, and the phrase 'for starting a fresh session' distinguishes it from plain session retrieval. It does not explicitly contrast it with sibling tools like transfer_session, so it falls short of full 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 description gives explicit conditions for use: long sessions, expensive context, or user phrases like 'continue this in a new session.' It also explains how session_id resolution works, which is practical guidance. However, it does not mention when to avoid the tool or recommend an alternative sibling, so it lacks full exclusion guidance.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ReclaimLLM/RCLM'

If you have feedback or need assistance with the MCP directory API, please join our Discord server