Skip to main content
Invoke retrieve_memory via JSON-RPC tools/call on POST /v1/mcp/memory.
Read-only tool. Retrieves company memory context — does not write to chat history or modify your PAM workspace.

When to call

Pass a prompt when the task may depend on company-specific context. Prefer retrieval before guessing about:
  • People, teams, and ownership
  • Projects, decisions, and priorities
  • Processes, customers, and internal terminology
  • Documents, meetings, and historical context

Parameters

string
required
Natural-language description of the context your agent needs.Maximum length: 8,000 characters.
string
Optional stable conversation ID. You can omit it — the server falls back to the MCP handshake Mcp-Session-Id (one per user account, 30-day TTL). When a session ID is resolved (explicit or fallback), the server stores your last 5 prompts in Redis (30-day TTL) and may include the last 3 prior prompts in the triage step only when triage is enabled on the server. It does not carry prior retrieval results or maintain agent-side conversation memory.
Only prompt and session_id are accepted. Any other argument returns invalid_arguments.

Response fields

On success, the tool returns HTTP 200 with content (agent-readable text) and structuredContent (machine-readable metadata).

content

structuredContent

Key fields inside retrieval: On error, structuredContent includes:

Examples

Tool arguments

Full JSON-RPC request

Successful response (abbreviated)

The content[].text field is a markdown report your agent can read directly. Document excerpts in production responses may be long; they are shortened here.
Large responses can take tens of seconds and thousands of tokens. Use the summary and top-ranked facts first; drill into documents only when your agent needs source-level detail.

Session ID behavior

session_id is optional. Most clients only need to pass prompt. For whichever session ID applies:
Your MCP client or agent is still responsible for conversation memory. Pass a stable session_id per thread only if you want separate Redis prompt history from the default MCP session — for example, multiple concurrent chats under one account.
Retrieval must complete within 120 seconds. Exceeding the limit returns retrieval_timeout.

Request history

Every counted call stores the full prompt and response for your review on Request Log in the PAM app, or via GET /v1/dev/mcp-requests.