kg_admin
Maintain knowledge graph health by checking status, backing up data, validating integrity, repairing issues, migrating data, managing tags, and regenerating embeddings.
Instructions
Unified admin tool for maintenance operations. Supports: 'health' for system status, 'backup' for data protection, 'validate' for integrity checks, 'repair' for fixing issues, 'export'/'import' for data migration, 'rename_tag'/'merge_tags' for tag management, 'migrate_embeddings' for backfilling OpenAI embeddings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | [migrate_embeddings] Regenerate embeddings even for nodes that already have them. | |
| dryRun | No | [rename_tag, merge_tags] Preview changes without applying. | |
| newTag | No | [rename_tag] New tag name. | |
| oldTag | No | [rename_tag] Tag to rename (exact match). | |
| payload | No | [import] JSON string of exported knowledge graph data. | |
| batchSize | No | [migrate_embeddings] Number of nodes to process per batch. | |
| operation | Yes | Admin operation: 'health', 'backup', 'validate', 'repair', 'export', 'import', 'rename_tag', 'merge_tags'. | |
| targetTag | No | [merge_tags] Tag to merge into. | |
| sourceTags | No | [merge_tags] Tags to merge (will be removed). | |
| retentionDays | No | [backup] Days to keep backups before deletion (0 = forever). |