Skip to main content
Glama
MatthewDegtyar

Claude Project History MCP Server

Sync Context

cph_context_sync
Read-onlyIdempotent

Keep project context up-to-date across sessions. Call at session start and after each task to get full snapshots or incremental updates, and resolve conflicts.

Instructions

Synchronize project context with the database.

Call this at the start of every session and after completing each task.

First call (or full_refresh=true): returns full context snapshot like session_init. Subsequent calls: returns only changes (deltas) since last sync, within token budget.

If a tool returns a conflict error, call this to get current state before retrying.

Args:

  • workflow_id: The workflow for this project (from CLAUDE.md)

  • cwd: Current working directory for git context

  • depth: How much context to load (minimal | standard | deep)

  • full_refresh: Force a full snapshot instead of deltas

Returns: { context, deltas, synced_at }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYesWorkflow ID from CLAUDE.md
cwdNoCurrent working directory for git context
depthNostandard
full_refreshNoForce full snapshot instead of deltas
Behavior5/5

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

Annotations already provide readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds valuable behavioral context: first call returns full snapshot, subsequent calls return deltas within token budget, and conflict recovery behavior.

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?

The description is concise and well-organized: a single-line purpose, then bulleted usage instructions, then parameter list. It avoids redundancy, though the parameter list repeats schema info.

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 tool with 4 parameters and no output schema, the description covers usage timing, behavioral modes (full vs delta), and error recovery. It lacks return format details but annotations and description provide sufficient context for an agent.

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 has 75% coverage with parameter descriptions. The description adds extra meaning like workflow_id from CLAUDE.md and cwd for git context. However, some parameters like depth only have enum values, and the description does not elaborate further.

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 clearly states the tool synchronizes project context with the database, using specific verbs and resources. It distinguishes from siblings like 'cph_session_init' by explaining its delta-based update behavior and conflict recovery role.

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?

Explicitly instructs to call at start of every session and after each task, and to use on conflict errors. However, it does not explicitly state when not to use or provide alternatives, though siblings suggest other tools.

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/MatthewDegtyar/claude-project-history'

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