Skip to main content
Glama
contextstream

ContextStream MCP Server

Initialize conversation session

init

Start new conversation sessions by retrieving relevant context, recent decisions, and workspace information to provide AI assistants with project-specific background.

Instructions

Initialize a new conversation session and automatically retrieve relevant context. This is the FIRST tool AI assistants should call when starting a conversation. Returns: workspace info, project info, recent memory, recent decisions, relevant context, high-priority lessons, and ingest_recommendation.

The ingest_recommendation field indicates if the project needs indexing for code search:

  • If [INGEST_RECOMMENDED] appears, ask the user if they want to enable semantic code search

  • Benefits: AI-powered code understanding, dependency analysis, better context retrieval

  • If user agrees, run: project(action="ingest_local", path="<project_path>")

IMPORTANT: Pass the user's FIRST MESSAGE as context_hint to get semantically relevant context! Example: init(folder_path="/path/to/project", context_hint="how do I implement auth?")

This does semantic search on the first message. You only need context on subsequent messages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_pathNoCurrent workspace/project folder path (absolute). Use this when IDE roots are not available.
workspace_idNoWorkspace to initialize context for
project_idNoProject to initialize context for
session_idNoCustom session ID (auto-generated if not provided)
context_hintNoRECOMMENDED: Pass the user's first message here for semantic search. This finds relevant context from ANY time, not just recent items.
include_recent_memoryNoInclude recent memory events (default: true)
include_decisionsNoInclude recent decisions (default: true)
auto_indexNoAutomatically create and index project from IDE workspace (default: true)
allow_no_workspaceNoIf true, allow session_init to return connected even if no workspace is resolved (workspace-level tools may not work).
skip_project_creationNoIf true, skip automatic project creation/matching. Use for parent folders containing multiple projects where you want workspace-level context but no project-specific context.
is_post_compactNoControls context restoration from recent snapshots. Defaults to true (always restores). Set to false to skip restoration. Can also be controlled via CONTEXTSTREAM_RESTORE_CONTEXT environment variable.
Behavior4/5

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

The description adds valuable behavioral context beyond the annotations. While annotations indicate this is not read-only, idempotent, or destructive, the description explains the tool's role in session initialization, automatic context retrieval, and the ingest_recommendation field with specific follow-up actions. It also mentions semantic search capabilities and the need for the user's first message. No contradiction with annotations exists.

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 well-structured and front-loaded with the core purpose and usage guidelines. Most sentences earn their place by providing essential information about when to call the tool, what it returns, parameter usage, and follow-up actions. However, the section about ingest_recommendation could be slightly more concise, and some repetition exists in explaining context_hint.

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?

Given the complexity of an 11-parameter initialization tool with no output schema, the description does a good job of explaining the tool's role, critical parameters, and expected outcomes. It covers the ingest_recommendation field thoroughly with actionable guidance. However, without an output schema, more detail on the structure of returned data (workspace info, project info, etc.) would be helpful for completeness.

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?

With 100% schema description coverage, the baseline is 3. The description adds some semantic value by emphasizing the importance of the context_hint parameter ('RECOMMENDED: Pass the user's first message here for semantic search') and providing an example. However, it doesn't significantly enhance understanding of most parameters beyond what the schema already documents thoroughly.

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's purpose: 'Initialize a new conversation session and automatically retrieve relevant context.' It specifies this is the 'FIRST tool AI assistants should call when starting a conversation' and distinguishes it from siblings by emphasizing its role as the initial setup tool. The description goes beyond the title by explaining the automatic context retrieval and return values.

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?

The description provides explicit usage guidelines: 'This is the FIRST tool AI assistants should call when starting a conversation.' It also gives specific instructions about when to use the context_hint parameter ('Pass the user's FIRST MESSAGE as context_hint') and clarifies temporal scope ('You only need context on subsequent messages'). The description effectively guides when and how to use this tool versus alternatives.

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/contextstream/mcp-server'

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