Skip to main content

Overview

AI Memory is exposed as MCP tools on both the Customer MCP (integration gateway /api/mcp) and the Partner MCP gateway (integration gateway /api/partner-mcp). These tools let AI agents and automation workflows read from and write to a customer’s long-term memory (Minds) across sessions.

Customer MCP tools

Customer MCP tools are available to any agent or Claude Code session authenticated with a customer MCP token.

Connection

Replace <integration-gateway> with your integration gateway URL and <customer_mcp_token> with a valid customer MCP token (obtainable from the customer portal or the partner portal API Keys page).

Available tools

internal_memory_remember

Writes a fact or text into the customer’s Mind. Parameters: Credit cost: Partner Knotie Credits + Customer AI Credits (if aiCreditsEnabled). Example usage in Claude Code:

internal_memory_recall

Retrieves the current state of a Mind — Profile, Snapshot, and recent stored messages. Parameters: Credit cost: Free — Recall never charges credits. Example response:

internal_memory_ask

Asks a natural-language question that is answered by reasoning over the Mind’s stored knowledge. Parameters: Credit cost: Partner Knotie Credits + Customer AI Credits. Higher reasoning level = higher cost.

Enablement gate

All three Customer MCP memory tools are gated by:
  1. The partner having AI Memory enabled.
  2. The specific customer having enableAiMemory = true.
If either condition is not met, the tool returns a 403 with a sanitized error message.

Partner MCP gateway tools

Partner MCP tools let you manage customer Minds and operate on them using a partner API key with the correct scopes. This is designed for automation workflows, n8n, Zapier, or custom integrations.

Authentication and scopes

Create a partner API key at Partner Portal → API Keys with the following scopes:

Connection

Available tools

All Partner MCP memory tools require a customerId parameter. The API key’s partner ID enforces tenant isolation — you cannot access another partner’s customers.

memory_list_minds

Lists all Minds for a given customer. Scope: memory:read | Parameters: customerId (string, required)

memory_create_mind

Creates a new Mind for a customer. Scope: memory:write | Parameters: customerId (string, required), name (string, required), description (string, optional)

memory_remember

Stores a fact into a customer’s Mind. Scope: memory:write | Parameters: customerId (string, required), content (string, required), mindId (string, optional) Credit cost: Partner Knotie Credits + Customer AI Credits.

memory_recall

Retrieves a customer’s Mind state (Profile, Snapshot, messages). Scope: memory:read | Parameters: customerId (string, required), mindId (string, optional) Credit cost: Free.

memory_ask

Poses a question answered from a customer’s Mind. Scope: memory:read | Parameters: customerId (string, required), question (string, required), reasoningLevel (string, optional), mindId (string, optional) Credit cost: Partner Knotie Credits + Customer AI Credits.

Error reference

Do not surface raw error messages from memory tool calls to end users. Error responses are already sanitized at the gateway before they reach client responses.