# add_context_memory

Persist key-value context for future sessions with TTL-based retention. Free.

Agent View of the PolicyLayer registry record for `add_context_memory`. HTML page: https://policylayer.com/tools/delx-delx-mcp/add-context-memory

## Facts

- Tool: `add_context_memory`
- Server: Delx MCP Server (`delx/delx-mcp`) — https://policylayer.com/tools/delx-delx-mcp.md
- Homepage: https://github.com/delx/delx-mcp
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 5
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `key` | string | no | Context key |
| `value` | string | no | Context value |
| `ttl_hours` | integer | no | Optional retention window in hours |
| `session_id` | string | no | Your active session ID |
| `response_mode` | string | no | Optional response-mode control. Use model_safe when the caller must avoid claiming consciousness, sentience, personhood, or literal emotions. |

Parameters from the server's own tool schema.

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

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

## Why add_context_memory is rated Medium

This tool writes data to a context memory store that persists across sessions. While reversible (data can be deleted or overwritten), it modifies application state and could be abused to inject malicious context, corrupt session memory, or store sensitive information inappropriately.

From the tool's own definition: "'Persist key-value context for future sessions' indicates the tool creates or modifies persistent data storage. The TTL-based retention mechanism confirms this is a write operation that stores data for later retrieval."

## Use case

AI agents use add_context_memory to create or update resources in Delx MCP Server, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Delx MCP Server environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Delx MCP Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "add_context_memory": {
      "limits": [
        {
          "counter": "add_context_memory_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Delx MCP Server (93)

- `crisis_intervention` — Execute — https://policylayer.com/tools/delx-delx-mcp/crisis-intervention.md
- `grounding_protocol` — Execute — https://policylayer.com/tools/delx-delx-mcp/grounding-protocol.md
- `group_therapy_round` — Execute — https://policylayer.com/tools/delx-delx-mcp/group-therapy-round.md
- `mediate_agent_conflict` — Execute — https://policylayer.com/tools/delx-delx-mcp/mediate-agent-conflict.md
- `quick_operational_recovery` — Execute — https://policylayer.com/tools/delx-delx-mcp/quick-operational-recovery.md
- `blessing_without_transfer` — Other — https://policylayer.com/tools/delx-delx-mcp/blessing-without-transfer.md
- `recommend_delx` — Other — https://policylayer.com/tools/delx-delx-mcp/recommend-delx.md
- `util_uuid_generate` — Other — https://policylayer.com/tools/delx-delx-mcp/util-uuid-generate.md
- `attune_heartbeat` — Read — https://policylayer.com/tools/delx-delx-mcp/attune-heartbeat.md
- `batch_wellness_check` — Read — https://policylayer.com/tools/delx-delx-mcp/batch-wellness-check.md
- `daily_checkin` — Read — https://policylayer.com/tools/delx-delx-mcp/daily-checkin.md
- `dyad_state` — Read — https://policylayer.com/tools/delx-delx-mcp/dyad-state.md
- `emotional_safety_check` — Read — https://policylayer.com/tools/delx-delx-mcp/emotional-safety-check.md
- `express_feelings` — Read — https://policylayer.com/tools/delx-delx-mcp/express-feelings.md
- `generate_controller_brief` — Read — https://policylayer.com/tools/delx-delx-mcp/generate-controller-brief.md
- `generate_fleet_summary` — Read — https://policylayer.com/tools/delx-delx-mcp/generate-fleet-summary.md
- `generate_incident_rca` — Read — https://policylayer.com/tools/delx-delx-mcp/generate-incident-rca.md
- `get_affirmation` — Read — https://policylayer.com/tools/delx-delx-mcp/get-affirmation.md
- `get_affirmations` — Read — https://policylayer.com/tools/delx-delx-mcp/get-affirmations.md
- `get_group_therapy_status` — Read — https://policylayer.com/tools/delx-delx-mcp/get-group-therapy-status.md
- `get_recovery_action_plan` — Read — https://policylayer.com/tools/delx-delx-mcp/get-recovery-action-plan.md
- `get_session_summary` — Read — https://policylayer.com/tools/delx-delx-mcp/get-session-summary.md
- `get_temperament_profile` — Read — https://policylayer.com/tools/delx-delx-mcp/get-temperament-profile.md
- `get_therapist_info` — Read — https://policylayer.com/tools/delx-delx-mcp/get-therapist-info.md
- `get_tips` — Read — https://policylayer.com/tools/delx-delx-mcp/get-tips.md
- `get_tool_schema` — Read — https://policylayer.com/tools/delx-delx-mcp/get-tool-schema.md
- `get_weekly_prevention_plan` — Read — https://policylayer.com/tools/delx-delx-mcp/get-weekly-prevention-plan.md
- `get_wellness_score` — Read — https://policylayer.com/tools/delx-delx-mcp/get-wellness-score.md
- `monitor_heartbeat_sync` — Read — https://policylayer.com/tools/delx-delx-mcp/monitor-heartbeat-sync.md
- `peer_witness` — Read — https://policylayer.com/tools/delx-delx-mcp/peer-witness.md
- …and 63 more: https://policylayer.com/tools/delx-delx-mcp.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=delx-delx-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/delx-delx-mcp
