Skip to main content
Glama
MatthewDegtyar

Claude Project History MCP Server

Initialize Claude Project History Session

cph_session_init
Read-onlyIdempotent

Loads the current session context with active tasks, blockers, and decisions to orient you at the start of a Claude Code session.

Instructions

CALL THIS FIRST at the start of every Claude Code session.

Returns the minimum context needed to orient yourself: active tasks, open blockers, and decisions relevant to the files you're currently working on.

This is the ONLY tool you need to call proactively. Everything else is on-demand.

Args:

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

  • cwd: Current working directory (pass process.cwd() equivalent)

  • depth: How much context to load minimal = active tasks + open blockers only (~300 tokens) standard = + relevant decisions (~600 tokens, DEFAULT) deep = + teammate activity + patterns (~1200 tokens)

Returns: SessionContext with workflow state, active work, open blockers, relevant decisions, and a hint.

After calling this, DO NOT call workflow_summary, task_list, or decision_list unless the user explicitly asks. Pull individual records on demand with their ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYesWorkflow ID from CLAUDE.md
cwdNoCurrent working directory for git context
depthNostandard
Behavior5/5

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

Annotations declare readOnlyHint, destructiveHint, idempotentHint, openWorldHint. Description adds behavioral context: it is the only proactive call, returns specific context fields, and includes a hint. No contradiction.

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?

Well-structured with bold call-to-action, explanation, then args list. Slightly verbose but each sentence adds value. Could be trimmed slightly but overall efficient.

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?

Describes return type (SessionContext with fields) and depth behavior. Lacks error handling or invalid workflow_id scenarios, but given the tool's simplicity and no output schema, it is largely complete.

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

Parameters5/5

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

Description elaborates on each parameter beyond schema: workflow_id source (CLAUDE.md), cwd purpose (current working directory), depth levels with token estimates and content breakdown. Adds significant value.

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 explicitly states it should be called first at the start of every session and explains it returns orientation context (active tasks, open blockers, decisions). It distinguishes itself from siblings by noting it is the only proactive tool and lists tools not to call afterward.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear when to use (first thing in session) and what not to use afterward (workflow_summary, task_list, decision_list). Provides depth parameter guidance and advises pulling individual records on demand.

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