Skip to main content
Glama

WhiteMagic — governed local memory for agent continuity

Session Continuity

session.continuity

Recall where the previous session left off: recent turns, salient anchors, unresolved DiAML arcs, related track crystals, checkpoints, and open queues.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "session.continuity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoNumber of recent turns to recall (default: 5)
sinceNoTime-range floor: epoch seconds, RFC 3339, or YYYY-MM-DD
trackNoOptional track slug to surface prior crystallized codex memories and select the latest prior session on this track
untilNoTime-range ceiling: epoch seconds, RFC 3339, or YYYY-MM-DD
session_idNoTarget session (default: most recent)
token_budgetNoOptional cap for compact agent_context.text: UTF-8 byte cap is token_budget × 4; estimated_tokens is a byte-based heuristic, not tokenizer-guaranteed. Zero produces empty context. Newest checkpoint summary and next_queue are reserved first; if they cannot fit, budget_completeness is insufficient and text is empty.
max_content_bytesNoPer-turn content cap in bytes (default 8192)
current_session_idNoSession to exclude (optional)
max_response_bytesNoTurns budget in bytes (default 49152)
include_briefing_textNoInclude the ready-to-inject briefing.text block

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / token_budget / description
      Previous value: -"Optional cap for compact agent_context.text: UTF-8 byte cap is token_budget × 4; estimated_tokens is a byte-based heuristic, not tokenizer-guaranteed. Zero produces empty context."New value: +"Optional cap for compact agent_context.text: UTF-8 byte cap is token_budget × 4; estimated_tokens is a byte-based heuristic, not tokenizer-guaranteed. Zero produces empty context. Newest checkpoint summary and next_queue are reserved first; if they cannot fit, budget_completeness is insufficient and text is empty."
  2. Changed9 schema fields changed
    • changedInput schema / properties / include_briefing_text / description
      Previous value: -"Include the ready-to-inject briefing.text block (default false; adds bytes outside the turns budget)"New value: +"Include the ready-to-inject briefing.text block"
    • changedInput schema / properties / max_content_bytes / description
      Previous value: -"Per-turn content cap in bytes (256-262144, default 8192)"New value: +"Per-turn content cap in bytes (default 8192)"
    • changedInput schema / properties / max_response_bytes / description
      Previous value: -"Turns budget in bytes (256-262144, default 49152)"New value: +"Turns budget in bytes (default 49152)"
    • changedInput schema / properties / n / description
      Previous value: -"Number of prior turns (default 10)"New value: +"Number of recent turns to recall (default: 5)"
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Target session (default: most recent)",
      +  "type": "string"
      +}
    • addedInput schema / properties / token_budget
      Added value: +{
      +  "description": "Optional cap for compact agent_context.text: UTF-8 byte cap is token_budget × 4; estimated_tokens is a byte-based heuristic, not tokenizer-guaranteed. Zero produces empty context.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / track
      Added value: +{
      +  "description": "Optional track slug to surface prior crystallized codex memories and select the latest prior session on this track",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[]
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "description": "Recent turns plus the latest checkpoint handoff for the prior session.",
      -  "properties": {
      -    "checkpoint": {
      -      "description": "Latest checkpoint handoff, or null",
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "checkpoint_id": {
      -      "description": "Memory UUID of the checkpoint, or null",
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "count": {
      -      "description": "Turns returned",
      -      "type": "integer"
      -    },
      -    "max_content_bytes": {
      -      "description": "Per-turn byte cap applied",
      -      "type": "integer"
      -    },
      -    "max_response_bytes": {
      -      "description": "Total response byte budget applied",
      -      "type": "integer"
      -    },
      -    "previous_session": {
      -      "description": "Session the turns were read from",
      -      "type": "string"
      -    },
      -    "status": {
      -      "description": "Operation status",
      -      "type": "string"
      -    },
      -    "truncated": {
      -      "description": "Whether the response hit its byte budget",
      -      "type": "boolean"
      -    },
      -    "turns": {
      -      "description": "Turns (memory_id, role, turn_type, sequence, content, content_bytes, content_truncated, importance)",
      -      "items": {
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "turns_omitted": {
      -      "description": "Turns dropped by the response budget",
      -      "type": "integer"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  3. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed1 schema field changed
    • addedInput schema / properties / include_briefing_text
      Added value: +{
      +  "description": "Include the ready-to-inject briefing.text block (default false; adds bytes outside the turns budget)",
      +  "type": "boolean"
      +}
  5. Changed2 schema fields changed
    • changedOutput schema / description
      Previous value: -"Result envelope for this tool; fields vary by operation."New value: +"Recent turns plus the latest checkpoint handoff for the prior session."
    • addedOutput schema / properties
      Added value: +{
      +  "checkpoint": {
      +    "description": "Latest checkpoint handoff, or null",
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  },
      +  "checkpoint_id": {
      +    "description": "Memory UUID of the checkpoint, or null",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "count": {
      +    "description": "Turns returned",
      +    "type": "integer"
      +  },
      +  "max_content_bytes": {
      +    "description": "Per-turn byte cap applied",
      +    "type": "integer"
      +  },
      +  "max_response_bytes": {
      +    "description": "Total response byte budget applied",
      +    "type": "integer"
      +  },
      +  "previous_session": {
      +    "description": "Session the turns were read from",
      +    "type": "string"
      +  },
      +  "status": {
      +    "description": "Operation status",
      +    "type": "string"
      +  },
      +  "truncated": {
      +    "description": "Whether the response hit its byte budget",
      +    "type": "boolean"
      +  },
      +  "turns": {
      +    "description": "Turns (memory_id, role, turn_type, sequence, content, content_bytes, content_truncated, importance)",
      +    "items": {
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "turns_omitted": {
      +    "description": "Turns dropped by the response budget",
      +    "type": "integer"
      +  }
      +}
  6. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and idempotentHint=false, which is notable for a tool whose description frames it purely as "recall" — the description explains none of the likely side effects (e.g. writing a briefing or continuity state) that justify those hints. It also says nothing about cost, ordering of results, or how token_budget failure modes affect outcomes beyond what the schema already states. With annotations covering only the safety flags, this gap matters.

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?

A single front-loaded sentence with no filler; the verb and the payload list come first. It is dense but every clause names a distinct artifact type. The only weakness is that the jargon-heavy enumeration ("DiAML arcs", "track crystals") is not anchored to any actionable guidance.

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?

With 10 optional parameters, no output schema, and a mutation-flagged annotation, one sentence is thin. The content list partially compensates for the missing output schema by naming what comes back, but nothing describes response structure, defaults in practice, or what happens when no prior session exists. It is adequate to attempt a call but not to predict results.

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 parameters like token_budget, since/until, and current_session_id are already fully documented in the schema and the description adds no syntax or behavior detail. The mention of "related track crystals" loosely maps to the track parameter, which is a small increment. Baseline 3 applies when the schema does the heavy lifting.

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 ("Recall") plus a precise enumeration of the resource being retrieved: recent turns, salient anchors, DiAML arcs, track crystals, checkpoints, and open queues. That is far more specific than a name restatement. It never contrasts itself with close siblings such as session.recall or session.digest, so the agent must infer the boundary.

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 statement of when to call this instead of session.recall, session.digest, session.replay, or session.checkpoint, and no prerequisites or exclusions are given. The listing of returned content implies a "resume work" scenario but the agent has to construct that context itself; multiple siblings share overlapping semantics and the definition does not disambiguate them.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources