Skip to content
Documentation

Reference

ctx_memory

Input contract and parameters for ctx_memory.

Status by featureReviewed September 2026

MCP tool · Knowledge tools

Call this tool through your MCP client. Its availability depends on your active configuration and profile.

This registry contract is separate from the SDK. For terminal commands, use the CLI reference.

Parameters

Generated from the registered input schema. “Required” reflects the schema; individual actions can impose additional requirements.

actionstringRequired

Memory operation

Accepted: putgetliststatsprune

agentstring

Agent identity for put; defaults to unknown

categorystring

Category for put or list filter

Accepted: factdecisionblockerpattern

contentstring

Fact content (required for put)

limitinteger

Schema default: 10

max_age_secondsinteger

Maximum idle age for prune

max_entriesinteger

Maximum entries retained by prune

querystring

Keyword query (required for get)

Exact JSON schema

Inspect the complete input schema
{
  "properties": {
    "action": {
      "description": "Memory operation",
      "enum": [
        "put",
        "get",
        "list",
        "stats",
        "prune"
      ],
      "type": "string"
    },
    "agent": {
      "description": "Agent identity for put; defaults to unknown",
      "type": "string"
    },
    "category": {
      "description": "Category for put or list filter",
      "enum": [
        "fact",
        "decision",
        "blocker",
        "pattern"
      ],
      "type": "string"
    },
    "content": {
      "description": "Fact content (required for put)",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "minimum": 0,
      "type": "integer"
    },
    "max_age_seconds": {
      "description": "Maximum idle age for prune",
      "minimum": 0,
      "type": "integer"
    },
    "max_entries": {
      "description": "Maximum entries retained by prune",
      "minimum": 0,
      "type": "integer"
    },
    "query": {
      "description": "Keyword query (required for get)",
      "type": "string"
    }
  },
  "required": [
    "action"
  ],
  "type": "object"
}

Runtime description

The following is the tool's own agent-facing description, reproduced from the reviewed registry. It can contain implementation terminology; it does not expand the public stability commitment.

Read the agent-facing description
Store and retrieve durable cross-agent facts with BLAKE3 deduplication.
Sources & versions3 references Reviewed
  • mcp_manifest.rsrust/src/core/mcp_manifest.rsReviewed checkout
  • registry.rsrust/src/server/registry.rsReviewed checkout
  • dynamic_tools.rsrust/src/server/dynamic_tools.rsReviewed checkout
Core checkout
50fbff09c9
Installed runtime
3.10.2
SDK release
1.1.0

Separate baselines for source, CLI/configuration and SDK contracts. Review does not certify every platform or integration.

Versions & compatibility