MCP Tools Reference
All 98 MCP Tools available to your AI
memory, search, snapshot) plus 80 legacy named tools (maintained for backward compatibility). The sections below document the legacy tools individually. New integrations should prefer the consolidated API.Core Memory (6 tools)
store_memory
Store a new memory with metadata and category
content(required) - The content to remembercategory(required) - One of 12 categoriesmetadata(optional) - Additional key-value pairsrelevance_score(optional) - 0.0-1.0 relevance score
search_memory
Search memories using hybrid text and semantic search
query(required) - Search querycategory(optional) - Category filterlimit(optional) - Max results (1-50, default 10)min_similarity(optional) - Minimum score (default 0.7)search_mode(optional) - "hybrid", "semantic", "text", "phrase"metadata_filter(optional) - Filter by metadata fields (e.g., {"topic": "auth"})
get_memory, update_memory, delete_memory, list_memories
CRUD operations for managing memories
Enhanced Memory (3 tools)
find_similar_memories
Find memories similar to a specific memory using semantic similarity
get_stats, get_embedding_stats
Get memory statistics and usage information
Context Management (4 tools)
create_context, list_contexts
Create and manage context workspaces
search_context
Search within a specific context using scoped hybrid search
add_memory_to_context
Link existing memories to contexts (many-to-many)
Snapshots & Temporal (8 tools)
create_snapshot, get_snapshot, list_snapshots
Create immutable snapshots for time-travel debugging
create_temporal_snapshot, list_temporal_snapshots
Named snapshots for fast temporal queries
search_at_time, get_memory_history, compare_snapshots
Query memories as they existed at specific times
Graph Analytics (4 tools)
get_memory_graph
Get relationship graph for a context
detect_contradictions
Find contradicting memory pairs within a context
get_context_insights, classify_query_intent
Get insights and classify query intent
Context Intelligence (3 tools)
infer_memory_relationships
Infer semantic relationships for a specific memory
enhanced_search
Smart search with intent classification and relationship expansion
get_memory_insights
Get insights about memory patterns and relationships
Advanced Analytics (4 tools)
detect_memory_contradictions
Detect contradictions with confidence scoring
generate_context_graph
Generate interactive context graph with clusters
generate_memory_insights
Generate insights about memory usage patterns
get_predictive_analytics
Forecast memory growth and quality trends
Personal Memory (2 tools)
set_memory_visibility
Change visibility scope (personal, shared, project)
list_personal_memories
List personal memories for current user only
Causal Reasoning (4 tools)
trace_causality
Trace causal reasoning chain from a memory
infer_causality
Infer causal relationship between two memories
get_causal_links, validate_causal_link
Get and validate causal relationships
Audit & Compliance (3 tools)
query_audit_log
Query audit logs with filters
generate_compliance_report
Generate SOC2/compliance audit report
get_audit_stats
Get audit logging statistics and health metrics
Attachments (5 tools)
upload_attachment
Upload a file attachment to a memory (images, documents, PDFs, etc.)
list_attachments
List all file attachments for a memory
get_attachment_url
Get a presigned download URL for an attachment (time-limited)
delete_attachment
Delete a file attachment (only the owner can delete)
get_storage_usage
Get storage usage statistics for the current tenant (used bytes, file count, quota)
Task Management (4 tools)
manage_task
Task CRUD and assignment. Operations: create, get, update, delete, list, assign.
task_state
Task state machine. State flow: pending → in_progress → blocked / completed / failed; blocked → in_progress / failed.
task_dependencies
Task dependency DAG management with cycle detection. Operations: add, remove, blocked_by, blocking, all.
task_search
Task search, filter, and aggregation. Operations: search (full-text), filter (by status/assignee/tag), aggregate (counts by status/assignee).
RLM Session Tools (4 tools)
rlm_session
Manage Ralph-RLM sessions: create with acceptance criteria and plan, get or list sessions, update status, export/import full session state.
rlm_evaluate_ac
Evaluate acceptance criteria for an RLM session. Provide pass/fail status and evidence for each criterion. Session auto-completes when all AC are met or skipped.
rlm_iteration
Track RLM iteration cycles: start a new iteration with plan and approach, or complete an existing one with outcomes and findings.
rlm_regenerate
Request plan regeneration for a stuck RLM session. Provide the reason, evidence of being stuck, failed approaches, and constraints for the new plan.
PII & Privacy (4 tools)
pii
Detect, redact, and audit personally identifiable information (PII) in memories. Supports email, phone, SSN, credit card, and more. Operations: detect, redact, audit, compliance_report, batch_scan.
pii_nlp_detect
Detect PII using combined pattern + NLP heuristic engine. Supports 21 PII types including person names and org names beyond regex patterns.
pii_nlp_redact
Detect and redact PII from text. Four redaction modes: mask (***), hash ([TYPE_REDACTED]), label ([TYPE]), or remove.
pii_nlp_score
Quickly score text for PII risk (0.0–1.0). Useful for filtering or ranking without running full detection.
Enhanced Snapshots (4 tools)
snapshot_timeline
Get a chronological timeline of context snapshots showing how memory evolved over time, with adjacent snapshot deltas.
snapshot_diff
Diff two named snapshots: see memory delta, growth %, and categories added, removed, or changed between them.
snapshot_nearest
Find the nearest snapshot to a given timestamp. Returns the snapshot plus distance in seconds and direction (before/after).
snapshot_category_evolution
Track how each memory category evolved across all snapshots, showing per-snapshot counts for every category.
Reporting & Analytics (6 tools)
get_usage_analytics
Time-series breakdown of memory and search usage: memories stored, searches performed, tool calls, and PII detections grouped by hour/day/week/month.
get_performance_metrics
Performance metrics over time: average and p95 latency for store_memory and search_memory, tool call counts, and error rates.
get_memory_growth
Memory growth statistics for a time window: start/end counts, net change, growth rate %, and average per-day.
get_category_breakdown
Breakdown of stored memories by category: count, percentage of total, PII count, and average content length per category.
get_pii_analytics
PII analytics: total memories, PII count and percentage, breakdown by PII type (email/phone/etc.) and category.
build_report
Custom report builder. Assemble a report from selected metrics (usage, performance, growth, categories, pii_summary) for a time range, with export in JSON, CSV, or Markdown.
Extended Audit Tools (6 tools)
audit_health
Real-time audit health dashboard: current metrics (failure rate, event rate, denied count), active alerts, and system health status.
audit_metrics
Current audit metrics snapshot: event counts, failure/error rates, events/min, unique users, and top event types.
audit_alerts
List active or historical alerts. Operations: active (currently firing), history (resolved alerts with timestamps).
audit_evaluate_thresholds
Evaluate all alert thresholds against current metrics. Returns any fired alerts using built-in thresholds.
audit_anomaly_detect
Run anomaly detection on recent audit events. Returns anomaly score (0–1), risk level (low/medium/high/critical), and detected patterns.
audit_metrics_prometheus
Export current audit metrics in Prometheus text format for scraping by monitoring systems.
Utility Tools (7 tools)
filter_memories
Advanced memory filtering with date range, multi-category, metadata conditions, content length, and PII flag filters. Returns paginated results.
export_memories
Export filtered memories to JSON, CSV, or Markdown. Supports the same filter options as filter_memories.
batch_memories
Batch operations on a filtered set of memories: delete or update (category/metadata) all matching memories in one call.
saved_searches
Manage saved search queries: save a filter for reuse, list saved searches, or execute a saved search by name.
work_queue
Multi-agent work queue with priority scheduling and handoff payloads. Operations: enqueue, claim, complete, fail, peek, stats.
gdpr
GDPR compliance tools: right to erasure (forget-me), data retention policies, consent audit trail, and data export for data subject access requests.