Skip to main content
Glama

save_model_handoff

Save exact messages and all known project state before switching models; pass the returned handoff_id to let the next model resume work without losing context.

Instructions

Save before switching models. Pass exact messages and all known project state.

State requires goal, messages (string-valued objects), decisions, constraints, facts, tasks, acceptance_criteria, and open_questions. Each task has task/status, failure_reason if failed, and evidence if completed. Include relevant file paths. Give the returned handoff_id to the next model. Existing snapshots are immutable.

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": {
      "source_model": "<source_model>",
      "session_id": "<session_id>",
      "state": "<state>",
      "files": "<files>"
    },
    "name": "save_model_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
stateYes
session_idYes
project_rootNo
source_modelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.9/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. It does add real behavioral context: existing snapshots are immutable, and a handoff_id is returned that the next model needs. It omits what happens on a repeated session_id, any size or storage limits, permissions, and whether prior state is merged or replaced.

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?

Front-loads the trigger in the first sentence, then spends the remaining lines entirely on the non-obvious payload structure. Telegraphic phrasing like 'Each task has task/status' is dense but every sentence carries information an agent needs.

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 5-parameter tool with a free-form nested object and no annotations or output schema, the description covers the state contract, file paths, immutability, and the returned handoff_id. Gaps remain around duplicate-session behavior and error cases, but the critical call-shaping information is present.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it does for the hardest part: it enumerates the required state keys (goal, messages, decisions, constraints, facts, tasks, acceptance_criteria, open_questions) and the per-task shape including failure_reason and evidence, plus that messages are string-valued objects. source_model, session_id, and project_root are left uncharacterized, which keeps it from a 5.

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?

States a specific verb and resource ('Save ... handoff') plus the triggering moment ('before switching models'), and the line about giving handoff_id to the next model implicitly pairs it with the load counterpart. It stops short of naming load_model_handoff, so the distinction is inferred rather than explicit.

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 a clear usage trigger: save before switching models. It also implies the follow-up flow by instructing the caller to pass handoff_id onward. It does not state when NOT to use this (e.g., versus save_chat_context for lighter context persistence), so no exclusions are offered.

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