Skip to main content
Glama

snapshot_thread_context

Freeze the assembled thread context pack into a tamper-evident, deduplicated artifact store, creating a verifiable record of exactly what the agent received. Fetch the frozen bytes later via the artifact SHA.

Instructions

Freeze the assembled context pack (live or as_of) into the content-addressed artifact store — a tamper-evident, deduped record of exactly what the agent was handed. Same params as get_thread_context; returns the artifact (kind=context_snapshot). Requires artifact:upload. Fetch the bytes via the artifact sha.

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": {
      "thread_id": "<thread_id>"
    },
    "name": "snapshot_thread_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoEvent-log id: freeze the thread as it stood at that point. Omit for the live pack.
thread_idYes
token_budgetNoCap the message page by estimated tokens before freezing (see get_thread_context).
include_editsNo
message_limitNo
include_glossaryNo
transition_limitNo
include_parent_groundingNoAttach parent grounding before freezing (see get_thread_context).
include_accepted_decisionsNoAttach in-channel accepted decisions before freezing (see get_thread_context).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the store is content-addressed, tamper-evident, and deduped, the call needs artifact:upload, and the return is an artifact of kind=context_snapshot whose bytes are fetched by sha. That tells an agent the side effect (persisting a record) and the follow-up workflow, which the readOnlyHint=false/openWorldHint=false flags alone do not convey.

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?

Three tight sentences, front-loaded with the core action, then the differentiation pointer, then the permission and retrieval note. No sentence is redundant and nothing is buried.

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?

With no output schema, the description correctly covers the return shape (kind=context_snapshot) and how to retrieve bytes, plus the auth prerequisite for a 9-parameter mutation. It stops short only on the semantics of the undocumented inclusion and limit parameters, which is the remaining gap for a tool of this complexity.

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 coverage is only 44%, and several parameters (thread_id, include_edits, message_limit, transition_limit) carry no schema description. The description compensates partially by pointing at get_thread_context for shared semantics and by clarifying live-vs-as_of, but it does not explain the undocumented paging and inclusion flags itself.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: freeze the assembled context pack into the content-addressed artifact store, in either live or as_of form. It cleanly separates itself from get_thread_context by declaring the same parameters but an artifact-returning outcome, so an agent can pick between the read and the persist path without opening either schema.

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 concrete context: requires artifact:upload, shares parameters with get_thread_context, and tells the caller how to retrieve the result (via the artifact sha). What it lacks is an explicit exclusion rule stating when to prefer get_thread_context over snapshotting; the choice is strongly implied but never spelled out.

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