# Zep

The Foundational Memory Layer for AI. Equip your agents with the knowledge to complete tasks, from the mundane to monumental.

- **Category:** artificial intelligence
- **Auth:** API_KEY
- **Tools:** 43
- **Triggers:** 0
- **Slug:** `ZEP`
- **Version:** 00000000_00

## Tools

### Add Fact Triple

**Slug:** `ZEP_ADD_FACT_TRIPLE`

Tool to add a manually specified fact triple (subject-predicate-object) to the Zep knowledge graph. Use when you need to add explicit relationships between entities. Returns a task_id to monitor processing status.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `fact` | string | Yes | The fact relating the two nodes that this edge represents |
| `user_id` | string | No | Add data to a user graph by providing a user_id |
| `graph_id` | string | No | The graph ID to add data to (alternative to user_id/group_id) |
| `group_id` | string | No | Add data to a group graph by providing a group_id |
| `valid_at` | string | No | The time when the fact becomes valid (ISO 8601 format) |
| `fact_name` | string | Yes | The name of the edge to add. Should be all caps using snake case (e.g., RELATES_TO, WORKS_WITH) |
| `fact_uuid` | string | No | The UUID of the edge to add |
| `created_at` | string | No | The timestamp when the edge was created (ISO 8601 format) |
| `expired_at` | string | No | The time (if any) at which the edge expires (ISO 8601 format) |
| `invalid_at` | string | No | The time (if any) at which the fact stops being true (ISO 8601 format) |
| `source_node_name` | string | No | The name of the source node to add |
| `source_node_uuid` | string | No | UUID of the source node |
| `target_node_name` | string | Yes | The name of the target node to add |
| `target_node_uuid` | string | No | UUID of the target node |
| `source_node_summary` | string | No | The summary of the source node to add |
| `target_node_summary` | string | No | The summary of the target node to add |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Session Memory

**Slug:** `ZEP_ADD_SESSION_MEMORY`

Tool to add memory messages to a specified Zep session. Use when you need to store conversation history or context in a session.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `messages` | array | Yes | Collection of message objects to add to the session. |
| `session_id` | string | Yes | The ID of the session to which memory should be added. |
| `ignore_roles` | array | No | Optional list of role types to ignore when adding messages. |
| `return_context` | boolean | No | When enabled, instructs the API to return memory context relevant to the most recent messages in the response. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Thread Messages

**Slug:** `ZEP_ADD_THREAD_MESSAGES`

Tool to add chat messages to a thread in Zep and ingest them into the user knowledge graph. Use when you need to add conversation history to a thread - for best results, add messages on every chat turn in the order they were created.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `messages` | array | Yes | A list of message objects in chat message format to add to the thread. For best results, add chat history on every chat turn, including both AI and human messages in a single operation and in the order that the messages were created. |
| `thread_id` | string | Yes | The ID of the thread to which messages should be added. |
| `ignore_roles` | array | No | Optional list of role types to ignore when adding messages to graph memory. The message itself will still be added, retained and used as context for messages that are added to a user's graph. Valid values: 'user', 'assistant', 'tool'. Legacy values 'ai' and 'human' are also accepted. |
| `return_context` | boolean | No | Set to true to optionally return a context block relevant to the most recent messages. For latency sensitive applications, this makes the add operation return a context block in the same way that thread.get_user_context does. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Clone Graph

**Slug:** `ZEP_CLONE_GRAPH`

Tool to clone a user or group graph with new identifiers in Zep. Use when you need to create test copies of user data, migrate user graphs to new identifiers, or set up template graphs for new users. This is an asynchronous operation that returns a task_id for tracking progress.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `source_user_id` | string | No | The user_id of the user whose graph is being cloned. Must point to an existing user. Required if source_graph_id is not provided. Either source_graph_id OR source_user_id must be provided, but not both. |
| `target_user_id` | string | No | The user_id to be set on the cloned user. Must not point to an existing user. Required if target_graph_id is not provided. Can be omitted for auto-generation. Either target_graph_id OR target_user_id must be provided, or both can be omitted for auto-generation. |
| `source_graph_id` | string | No | The ID of the graph to be cloned. Required if source_user_id is not provided. Either source_graph_id OR source_user_id must be provided, but not both. |
| `target_graph_id` | string | No | The ID to be set on the cloned graph. Must not point to an existing graph. Required if target_user_id is not provided. Can be omitted for auto-generation. Either target_graph_id OR target_user_id must be provided, or both can be omitted for auto-generation. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Graph

**Slug:** `ZEP_CREATE_GRAPH`

Tool to create a new graph by adding data to Zep. Use when you need to add text, message, or JSON data to a user's graph or a specific graph. The data is processed and an episode node is created in the graph.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | The content to add to the graph. Maximum 10,000 characters per request. |
| `type` | string ("message" | "text" | "json") | Yes | The data type - one of 'message', 'text', or 'json' |
| `user_id` | string | No | The user ID to associate the data with a user graph. One of user_id or graph_id should be provided. |
| `graph_id` | string | No | The graph ID to add data to a specific graph. One of user_id or graph_id should be provided. |
| `created_at` | string | No | ISO 8601 timestamp for when the data was created. Optional field. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Group

**Slug:** `ZEP_CREATE_GROUP`

Tool to create a new group in Zep for multi-user graph management. Use when you need to create a namespace for shared context across multiple users.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Display name for the group |
| `group_id` | string | Yes | Unique identifier for the group. This is required to create a group. |
| `description` | string | Yes | Description of the group's purpose |
| `fact_rating_instruction` | object | No | Model for fact rating instruction. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Session

**Slug:** `ZEP_CREATE_SESSION`

Tool to create a new session in Zep for storing conversation memory. Use when you need to establish a new conversation context linked to an existing user. The user must be created first before creating a session.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `user_id` | string | Yes | The unique identifier of the user associated with the session. The user must already exist before creating a session. |
| `metadata` | object | No | Deprecated. Additional metadata as key-value pairs. |
| `session_id` | string | Yes | The unique identifier of the session. Arbitrary identifier that you can map to relevant business objects in your app. |
| `fact_rating_instruction` | object | No | Deprecated. Contains instruction for rating facts and examples with high, medium, and low rating examples. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Thread

**Slug:** `ZEP_CREATE_THREAD`

Tool to create a new thread in Zep for a specific user. Use when you need to start a new conversation thread. The user must be created first before creating a thread. Zep automatically warms the cache for that user's graph data in the background to improve query latency.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `user_id` | string | Yes | The unique identifier of the user associated with the thread. The user must already exist before creating a thread. |
| `thread_id` | string | Yes | The unique identifier of the thread. This is an arbitrary identifier that you can map to relevant business objects in your app. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create User

**Slug:** `ZEP_CREATE_USER`

Tool to create a new user in Zep with properties like user_id, email, and metadata. Use when you need to add a new user to the system. It is recommended to provide at least first_name and ideally last_name for better user association.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `email` | string | No | The email address of the user |
| `user_id` | string | Yes | The unique identifier of the user. This is required to create a user. |
| `metadata` | object | No | The metadata associated with the user. Supports any type of key-value pairs. |
| `last_name` | string | No | The last name of the user. Recommended to provide along with first_name for better user association. |
| `first_name` | string | No | The first name of the user. Recommended to provide to ensure Zep can correctly associate the user with references in the data. |
| `fact_rating_instruction` | object | No | Optional instruction for fact rating (includes instruction text and examples) |
| `disable_default_ontology` | boolean | No | When enabled, disables default ontology for the user's graph |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Graph

**Slug:** `ZEP_DELETE_GRAPH`

Tool to delete a graph from Zep. Use when you need to permanently remove a graph and all associated data.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `graph_id` | string | Yes | The unique identifier of the graph to delete |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Group

**Slug:** `ZEP_DELETE_GROUP`

Tool to delete a group from Zep. Use when you need to permanently remove a group and its associated data.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_id` | string | Yes | The unique identifier of the group to delete |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Session Memory

**Slug:** `ZEP_DELETE_SESSION`

Tool to delete a session and its memory from Zep. Use when you need to permanently remove all memory data associated with a specific session.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `session_id` | string | Yes | Identifier for the session whose memory should be deleted |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Thread

**Slug:** `ZEP_DELETE_THREAD`

Tool to delete a thread and its messages from Zep. Note that deleting a thread removes the thread and its messages from the thread history but does not delete associated data in the user's knowledge graph.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `thread_id` | string | Yes | The unique identifier of the thread to delete |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete User

**Slug:** `ZEP_DELETE_USER`

Tool to delete a user and all associated threads and artifacts from Zep. Use when you need to permanently remove a user and handle Right To Be Forgotten requests. Deleting a user will delete all threads and thread artifacts associated with that user.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `user_id` | string | Yes | User ID to delete. This is the unique identifier for the user. Can be any string value such as a username, email address, or UUID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Edge by UUID

**Slug:** `ZEP_GET_EDGE`

Tool to retrieve a specific edge by its UUID from the Zep knowledge graph. Use when you need to fetch detailed information about a relationship between nodes, including the semantic fact, connected nodes, and temporal metadata.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `edge_uuid` | string | Yes | The UUID of the edge to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Graph by ID

**Slug:** `ZEP_GET_GRAPH_BY_ID`

Tool to retrieve a graph by its unique identifier from Zep. Use when you need to fetch details about a specific graph including its name, description, and timestamps.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `graph_id` | string | Yes | The unique identifier of the graph to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Group by ID

**Slug:** `ZEP_GET_GROUP`

Tool to retrieve a group by ID from Zep. Use when you need to fetch detailed information about a specific group including its configuration and metadata.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `group_id` | string | Yes | The unique identifier of the group to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Node Entity Edges

**Slug:** `ZEP_GET_NODE_EDGES`

Tool to retrieve all entity edges for a specific node in the Zep knowledge graph. Use when you need to fetch relationship information, facts, and connections for a given node UUID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `node_uuid` | string | Yes | The UUID of the node for which to retrieve entity edges |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Project Info

**Slug:** `ZEP_GET_PROJECT_INFO`

Tool to retrieve project information based on the provided API key. Use when you need to fetch project details including UUID, name, description, and creation timestamp.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Session by ID

**Slug:** `ZEP_GET_SESSION`

Tool to retrieve a session by its unique identifier from Zep. Use when you need to fetch details about a specific session including user association, timestamps, classifications, and metadata.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `session_id` | string | Yes | The unique identifier of the session to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Session Memory

**Slug:** `ZEP_GET_SESSION_MEMORY`

Tool to retrieve memory for a given session including relevant facts and entities. Use when you need contextual information and historical data from a session.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `lastn` | integer | No | The number of most recent memory entries to retrieve |
| `minRating` | number | No | The minimum rating by which to filter relevant facts |
| `session_id` | string | Yes | The ID of the session for which to retrieve memory |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Session Message by UUID

**Slug:** `ZEP_GET_SESSION_MESSAGE`

Tool to retrieve a specific message by UUID from a Zep session. Use when you need to fetch a single message's details by its unique identifier from a particular session.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `session_id` | string | Yes | The unique identifier of the session containing the message |
| `message_uuid` | string | Yes | The UUID of the specific message to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Session Messages

**Slug:** `ZEP_GET_SESSION_MESSAGES`

Tool to retrieve messages for a given session from Zep. Use when you need to fetch the message history for a specific session with optional pagination support.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Controls the number of messages to return |
| `cursor` | integer | No | Enables pagination through message sets |
| `session_id` | string | Yes | The unique identifier of the session for which to retrieve messages |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Task Status

**Slug:** `ZEP_GET_TASK_STATUS`

Tool to check the status of asynchronous operations in Zep. Use when monitoring batch adds, clone operations, or fact triple additions. Returns comprehensive task information including status, progress, timestamps, and error details if applicable.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `task_id` | string | Yes | The unique identifier of the task to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Thread Messages

**Slug:** `ZEP_GET_THREAD_MESSAGES`

Tool to retrieve conversation history for a specific thread from Zep. Use when you need to fetch the chat message history with optional pagination support via limit, cursor, or lastn parameters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `lastn` | integer | No | Number of most recent messages to return. When provided, this parameter overrides both limit and cursor parameters |
| `limit` | integer | No | Limit the number of results returned for pagination |
| `cursor` | integer | No | Cursor value for pagination to retrieve the next set of results |
| `thread_id` | string | Yes | The unique identifier of the thread to retrieve messages from |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Thread User Context

**Slug:** `ZEP_GET_THREAD_USER_CONTEXT`

Tool to retrieve the most relevant user context from the user graph based on thread messages. Use when you need to get context including memory from past threads that is most relevant to the current thread.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string ("summary" | "basic") | No | Context retrieval mode. 'summary' (default) returns summarized natural language context. 'basic' returns raw facts and entities with faster response time (P95 < 200ms) |
| `thread_id` | string | Yes | The unique identifier of the thread for which context is being retrieved |
| `template_id` | string | No | Optional template ID to use for custom context rendering |
| `min_fact_rating` | number | No | The minimum rating by which to filter relevant facts |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get User by ID

**Slug:** `ZEP_GET_USER`

Tool to retrieve a user by their user ID from Zep. Use when you need to fetch detailed information about a specific user including their profile, metadata, and configuration settings.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `user_id` | string | Yes | The user_id of the user to get. This is the unique identifier for the user. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get User Node

**Slug:** `ZEP_GET_USER_NODE`

Tool to retrieve a user's graph node and summary from Zep. Use when you need to access the user summary generated from instructions, build custom context blocks, or retrieve facts and information associated with a specific user.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `user_id` | string | Yes | The user_id of the user to get the node for. This is a path parameter that must be included in the URL. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get User Nodes

**Slug:** `ZEP_GET_USER_NODES`

Tool to retrieve all nodes for a specific user from their graph in Zep. Use when you need to fetch entity information, preferences, and knowledge graph data for a user. Supports pagination via limit and uuid_cursor parameters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of items to return for pagination |
| `user_id` | string | Yes | The user ID to retrieve nodes for |
| `uuid_cursor` | string | No | UUID based cursor for pagination, should be the UUID of the last item in the previous page |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get User Sessions

**Slug:** `ZEP_GET_USER_SESSIONS`

Tool to retrieve all sessions for a user from Zep. Use when you need to fetch session history for a specific user ID. Returns an array of session objects with metadata, classifications, and timestamps.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `user_id` | string | Yes | User ID for sessions |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get User Threads

**Slug:** `ZEP_GET_USER_THREADS`

Tool to retrieve all threads for a specific user from Zep. Use when you need to fetch thread history for a specific user ID. Returns an array of thread objects with identifiers and timestamps.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `user_id` | string | Yes | User ID to retrieve threads for |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Graph Search

**Slug:** `ZEP_GRAPH_SEARCH`

Tool to perform hybrid graph search combining semantic similarity and BM25 full-text search across the Zep knowledge graph. Use when you need to search for entities, relationships, or episodes within a user, group, or specific graph. Supports various reranking methods and filtering options.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return (default: 10, max: 50) |
| `query` | string | Yes | The search text/query string (max 256-400 characters) |
| `scope` | string ("edges" | "nodes" | "episodes") | No | Search target scope - 'edges' (relationships and facts, default), 'nodes' (entities), or 'episodes' (individual messages/chunks) |
| `user_id` | string | No | Search within a specific user's graph. One of user_id, group_id, or graph_id must be provided. |
| `graph_id` | string | No | The graph_id to search in. One of user_id, group_id, or graph_id must be provided. |
| `group_id` | string | No | Search within a group graph. One of user_id, group_id, or graph_id must be provided. |
| `reranker` | string ("rrf" | "mmr" | "node_distance" | "episode_mentions" | "cross_encoder") | No | Reranking method - 'rrf' (Reciprocal Rank Fusion, default), 'mmr' (Maximal Marginal Relevance), 'node_distance', 'episode_mentions', or 'cross_encoder' |
| `mmr_lambda` | number | No | Diversity vs relevance balance for MMR reranker (required when using mmr reranker) |
| `search_filters` | object | No | Model for search filters. |
| `min_fact_rating` | number | No | Minimum fact rating filter (edges scope only, 0.0-1.0) |
| `center_node_uuid` | string | No | Center node UUID for distance-based reranking (required when using node_distance reranker) |
| `bfs_origin_node_uuids` | array | No | Node UUIDs for breadth-first search seeding |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Groups Ordered

**Slug:** `ZEP_LIST_GROUPS_ORDERED`

Tool to retrieve all groups from Zep with pagination support. Use when you need to fetch a list of groups with optional pagination via pageNumber and pageSize parameters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `pageSize` | integer | No | Number of groups per page |
| `pageNumber` | integer | No | Page number, starting from 1 |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Sessions Ordered

**Slug:** `ZEP_LIST_SESSIONS_ORDERED`

Tool to retrieve all sessions from Zep with pagination and ordering support. Use when you need to fetch a list of sessions with optional pagination via page_number and page_size parameters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page_size` | integer | No | Number of sessions per page |
| `page_number` | integer | No | Page number, starting from 1 |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Threads

**Slug:** `ZEP_LIST_THREADS`

Tool to retrieve all threads from Zep with pagination support. Use when you need to fetch a list of threads with optional pagination and sorting via page_number, page_size, order_by, and asc parameters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `asc` | boolean | No | Order direction - true for ascending, false for descending |
| `order_by` | string | No | Field to order results by. Options: created_at, updated_at, user_id, thread_id |
| `page_size` | integer | No | Number of threads to retrieve per page |
| `page_number` | integer | No | Page number for pagination, starting from 1 |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Users Ordered

**Slug:** `ZEP_LIST_USERS_ORDERED`

Tool to retrieve all users from Zep with pagination support. Use when you need to fetch a list of users with optional pagination via pageNumber and pageSize parameters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `pageSize` | integer | No | Number of users per page |
| `pageNumber` | integer | No | Page number, starting from 1 |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Graph

**Slug:** `ZEP_UPDATE_GRAPH`

Tool to update graph information in Zep including name and description. Use when you need to modify graph properties after creation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | The updated name for the graph. Optional field to update. |
| `graph_id` | string | Yes | The unique identifier of the graph to update |
| `description` | string | No | The updated description for the graph. Optional field to update. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Group

**Slug:** `ZEP_UPDATE_GROUP`

Tool to update group information in Zep including name, description, and fact rating instructions. Use when you need to modify an existing group's properties.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New name for the group |
| `group_id` | string | Yes | The unique identifier of the group to update |
| `description` | string | No | New description for the group |
| `fact_rating_instruction` | object | No | Model for fact rating instruction. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Message

**Slug:** `ZEP_UPDATE_MESSAGE`

Tool to update a message in a Zep thread. Use when you need to modify message content, metadata, role, or other properties of an existing message. Particularly useful for adding or modifying metadata after a message has been created.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Customizable name of the sender of the message. |
| `role` | string ("user" | "system" | "assistant") | No | The role of message sender. |
| `content` | string | No | The content of the message to update. |
| `metadata` | object | No | The metadata associated with the message as key-value pairs. |
| `created_at` | string | No | The timestamp of when the message was created in RFC3339 format. |
| `message_uuid` | string | Yes | The UUID of the message to update. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Session Metadata

**Slug:** `ZEP_UPDATE_SESSION`

Tool to update session metadata in Zep. Use when you need to modify or add metadata to an existing session. Metadata is merged, so existing keys are preserved unless explicitly overwritten.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `metadata` | object | Yes | Session metadata as key-value pairs. Metadata is merged with existing metadata, so only provided keys will be updated. To delete a key, set its value to None or empty string. |
| `session_id` | string | Yes | The unique identifier of the session to update |
| `fact_rating_instruction` | object | No | Optional instruction to use for fact rating. This field is deprecated. Note: Fact rating instructions cannot be unset once set. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update User

**Slug:** `ZEP_UPDATE_USER`

Tool to update an existing user's information in Zep including email, metadata, and ontology settings. Use when you need to modify user properties after creation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `email` | string | No | The email address of the user. Optional field to update. |
| `user_id` | string | Yes | The unique identifier of the user to update (max 500 characters). This is the user that will be modified. |
| `metadata` | object | No | A map of key-value pairs for storing additional user information. Optional field to update. |
| `last_name` | string | No | The last name of the user. Optional field to update. |
| `first_name` | string | No | The first name of the user. Optional field to update. |
| `fact_rating_instruction` | object | No | Optional instruction to use for fact rating. Can include instruction text and examples. |
| `disable_default_ontology` | boolean | No | When true, disables the use of default/fallback ontology for the user's graph. Optional field to update. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
