memory_list_compact
List memories in compact format with ID, preview, and tags to reduce context usage and browse efficiently without loading full content.
Instructions
List memories in compact format (id, preview, tags only) to reduce context usage.
Returns minimal fields: id, content preview (first 80 chars), tags, and created_at. This tool is useful for browsing memories without loading full content and metadata.
Args: query: Optional text search query metadata_filters: Optional metadata filters limit: Maximum number of results to return (default: unlimited) offset: Number of results to skip (default: 0) date_from: Optional date filter (ISO format or relative like "7d", "1m", "1y") date_to: Optional date filter (ISO format or relative like "7d", "1m", "1y") tags_any: Match memories with ANY of these tags (OR logic) tags_all: Match memories with ALL of these tags (AND logic) tags_none: Exclude memories with ANY of these tags (NOT logic)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| metadata_filters | No | ||
| limit | No | ||
| offset | No | ||
| date_from | No | ||
| date_to | No | ||
| tags_any | No | ||
| tags_all | No | ||
| tags_none | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- memora/server.py:1735-1781 (handler)The implementation of the `memory_list_compact` tool, which retrieves a list of memories in a minimized format to save context tokens.
help="Show sync status and backend information" ) # Subcommand: info subparsers.add_parser( "info", help="Show storage backend information" ) # Subcommand: migrate-images migrate_parser = subparsers.add_parser( "migrate-images", help="Migrate base64 images to R2 storage" ) migrate_parser.add_argument( "--dry-run", action="store_true", help="Show what would be migrated without making changes" ) args = parser.parse_args(argv) # Handle subcommands if args.command == "sync-pull": _handle_sync_pull() elif args.command == "sync-push": _handle_sync_push() elif args.command == "sync-status": _handle_sync_status() elif args.command == "info": _handle_info() elif args.command == "migrate-images": _handle_migrate_images(dry_run=args.dry_run) else: # Default: start server mcp.settings.host = args.host mcp.settings.port = args.port # Pre-warm database connection (triggers cloud sync if needed) # This prevents "connection failed" on first MCP connection try: import sys print("Initializing database...", file=sys.stderr) conn = connect() conn.close() print("Database ready.", file=sys.stderr) except Exception as e: