Skip to main content
Glama

load_handoff

Restore a saved session state from a session ID and return compressed context for efficient session restoration, so AI coding agents can resume tasks with prior decisions and next steps intact.

Instructions

Load a previously saved session state. Returns compressed context for efficient session restoration.

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": {
      "session_id": "<session_id>"
    },
    "name": "load_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYesThe session identifier to load

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return shape at a high level ('compressed context for efficient session restoration'), but says nothing about what happens when session_id is unknown or expired, whether loading consumes or invalidates the saved state, or whether it is strictly read-only.

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 short sentences with no filler, and the core action is front-loaded ahead of the return-value note. Nothing is redundant or padding.

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 single-parameter tool with no output schema and no nested structures, the definition covers the action and the general nature of the return. The remaining gap is failure and lifecycle behavior on an unknown session_id, which is the main thing a caller would still want to know.

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% for the single session_id parameter, so the schema already documents it adequately. The description adds only the qualifier that the session was 'previously saved', without format, provenance, or validation details beyond that.

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 gives a specific verb and resource ('Load a previously saved session state') and additionally characterizes the return as 'compressed context'. That is enough to distinguish it from save_handoff and list_handoffs by implication, but the siblings are never named, so differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no statement of prerequisites (e.g., that session_id must come from save_handoff or list_handoffs), and no exclusions or alternatives. The phrase 'previously saved' hints that it only applies to existing sessions, but an agent must infer everything else.

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

Deploy Server

Other Tools