{
"event": "PreToolUse",
"tool_name": "mcp__mcp-db__db_describe",
"tool_input": {
"table": "entity_relations",
"database": "ki_content",
"show_create": true
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"table\": \"entity_relations\",\n \"create_statement\": \"CREATE TABLE `entity_relations` (\\n `id` int(11) NOT NULL AUTO_INCREMENT,\\n `source_entity_id` int(11) NOT NULL,\\n `target_entity_id` int(11) NOT NULL,\\n `relation_type` varchar(100) NOT NULL,\\n `strength` float DEFAULT 1,\\n `context` text DEFAULT NULL,\\n `chunk_id` int(11) DEFAULT NULL,\\n `created_at` datetime DEFAULT current_timestamp(),\\n PRIMARY KEY (`id`),\\n KEY `idx_relation_type` (`relation_type`),\\n KEY `idx_source` (`source_entity_id`),\\n KEY `idx_target` (`target_entity_id`),\\n KEY `entity_relations_ibfk_3` (`chunk_id`),\\n KEY `idx_source_target` (`source_entity_id`,`target_entity_id`),\\n KEY `idx_target_source` (`target_entity_id`,`source_entity_id`),\\n CONSTRAINT `entity_relations_ibfk_1` FOREIGN KEY (`source_entity_id`) REFERENCES `entities` (`id`),\\n CONSTRAINT `entity_relations_ibfk_2` FOREIGN KEY (`target_entity_id`) REFERENCES `entities` (`id`),\\n CONSTRAINT `entity_relations_ibfk_3` FOREIGN KEY (`chunk_id`) REFERENCES `chunks` (`id`)\\n) ENGINE=InnoDB AUTO_INCREMENT=297 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci\",\n \"execution_ms\": 0\n}"
}
]
}