Skip to main content
Glama

context_checkpoint

Durably checkpoint host deltas and structured task state at stable boundaries, before compaction, or when stopping. Reuse the same idempotency key to prevent conflicts and allow safe retries.

Instructions

Checkpoint host deltas and structured task state durably.

Use at stable boundaries, before compaction, and when stopping. Every retry must reuse the same unique idempotency_key. base_revision is the last revision returned by open/pack/status/checkpoint; a stale revision fails with a conflict instead of overwriting another session. Events are a JSON array of type, optional role, content, optional token_count and metadata. State is a JSON object containing any of objective, plan, decisions, constraints, open_loops, next_actions, summary and metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
space_refYes
state_jsonNo{}
company_refNo
events_jsonNo[]
project_refNo
session_refYes
base_revisionYes
idempotency_keyYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It reveals concurrency semantics (stale revision fails with a conflict rather than overwriting another session), idempotency requirements (reuse the same idempotency_key), and durable persistence intent. It does not mention permissions or reversiblity, but the key failure and concurrency behaviors are surfaced well.

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 dense but well-oranized: purpose first, then usage timing, then critical parameter semantics. Every sentence carries useful information, and there is no filler. The structure front-loads the most important decision information.

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?

Despite the complexity of 8 parameters and no annotations, the description covers the non-obvious aspects: when to call, retry behavior, revision conflict rules, and the shape of both JSON payloads. An output schema exists so return-value description is not needed; the main gap is a lack of explicit sibling differentiation and partially undocumented ref params, but the essential call contract is well covered.

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 description coverage is 0%, so the description must compensate for the 8 parameters. It meaningfully explaines idempotency_key, base_revision semantics with conflict behavior, and the JSON schemas for events_json and state_json inclucing allowed fields. It leaves space_ref, session_ref, company_ref, and project_ref implicit, though their names and the task/state context make them reasonably inferrable.

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?

The description opens with a specific verb and resource: "Checkpoint host deltas and structured task state durably." This clearly identifies the tool's action and distinguishes it from read-oriented siblings like context_open, context_pack, context_status, and context_search by emphasizing durable persistence of deltas/state at stable boundaries.

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 explicitly instructs when to use the tool: "Use at stable boundaries, before compaction, and when stopping." It also gives operational guidance for retries and base_revision, but does not state explicit exclusions or name direct alternatives with a "use X instead" pattern.

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

Install Server

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/RPasquale/lightbulb-mcp'

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