# memory_lookup

A read tool on the 0CompactMem MCP server.

Agent View of the PolicyLayer registry record for `memory_lookup`. HTML page: https://policylayer.com/tools/soolaugust-0compactmem/memory-lookup

## Facts

- Tool: `memory_lookup`
- Server: 0CompactMem (`soolaugust/0compactmem`) — https://policylayer.com/tools/soolaugust-0compactmem.md
- Homepage: https://github.com/soolaugust/0CompactMem
- Risk category: Read (Low risk)
- Registry record: grade B, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "memory_lookup",
    "arguments": {}
  }
}
```

## Why memory_lookup is rated Low

The tool name 'memory_lookup' strongly implies a read operation that retrieves or queries persistent memory state. Although the description is empty and reduces certainty, the naming convention aligns with diagnostic/informational tools rather than write, delete, or execution operations.

From the tool's own definition: "Tool name 'memory_lookup' suggests a retrieval operation. The description is empty, which limits confidence, but the name pattern and context among sibling tools (list_pinned, memory_stats, memory_applied) indicates query/retrieval without modification."

## Use case

AI agents call memory_lookup to retrieve information from 0CompactMem without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches 0CompactMem:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "memory_lookup": {}
  }
}
```

## Other tools on 0CompactMem (7)

- `list_pinned` — Read — https://policylayer.com/tools/soolaugust-0compactmem/list-pinned.md
- `memory_applied` — Read — https://policylayer.com/tools/soolaugust-0compactmem/memory-applied.md
- `memory_hook_health` — Read — https://policylayer.com/tools/soolaugust-0compactmem/memory-hook-health.md
- `memory_stats` — Read — https://policylayer.com/tools/soolaugust-0compactmem/memory-stats.md
- `memory_write` — Write — https://policylayer.com/tools/soolaugust-0compactmem/memory-write.md
- `pin_memory` — Write — https://policylayer.com/tools/soolaugust-0compactmem/pin-memory.md
- `unpin_memory` — Write — https://policylayer.com/tools/soolaugust-0compactmem/unpin-memory.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=soolaugust-0compactmem · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/soolaugust-0compactmem
