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.prompt and session_id are accepted. Any other argument returns invalid_arguments.
Response fields
On success, the tool returns HTTP 200 withcontent (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)
Thecontent[].text field is a markdown report your agent can read directly. Document excerpts in production responses may be long; they are shortened here.
Session ID behavior
session_id is optional. Most clients only need to pass prompt.
For whichever session ID applies:
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 viaGET /v1/dev/mcp-requests.