Learn how to connect directly to the Jean Memory MCP API for advanced use cases and building autonomous agents.
client_name
: A unique identifier for your application (e.g., my-agent
, claude
).user_id
: The unique identifier for the end-user.Authorization
header.
method
: Should always be tools/call
.tool_name
: The name of the tool you want to execute. Use jean_memory
for all interactions.tool_params
: An object containing the parameters for the specified tool.jean_memory
Tooluser_message
(string, required): The user’s complete message or query.is_new_conversation
(boolean, required): Set to true
only for the very first message in a new conversation.depth
(integer, optional, default: 2
): The desired context depth level.
0
: No context retrieval. Use for generic knowledge questions that don’t require personal context.1
: Fast search for quick personal facts or simple lookups (sub-second response time).2
: Balanced synthesis for conversational responses using AI-powered memory synthesis (3-5 seconds).3
: Comprehensive analysis with deep document search and extensive memory correlation (20-30 seconds).Accept: text/event-stream
header in your request.
Example JavaScript Client:
:heartbeat
) periodically to keep the connection alive, especially through proxies like Cloudflare. Your client should be prepared to ignore these messages.POST
request will receive a JSON response like this: