{
"event": "PreToolUse",
"tool_name": "mcp__mcp-db__db_execute",
"tool_input": {
"statement": "CREATE TABLE IF NOT EXISTS entity_semantics (\n id INT AUTO_INCREMENT PRIMARY KEY,\n entity_id INT NOT NULL,\n definition TEXT NULL COMMENT 'Definition der Entität',\n context TEXT NULL COMMENT 'Kontext in dem die Entität verwendet wird',\n references_json JSON NULL COMMENT 'Quellenreferenzen',\n source_type ENUM('page', 'section', 'document', 'external') DEFAULT 'page',\n source_id INT NULL COMMENT 'ID der Quelle (page_id, section_id, document_id)',\n confidence FLOAT DEFAULT 1.0,\n model_used VARCHAR(100) NULL,\n validated TINYINT(1) DEFAULT 0,\n validated_at DATETIME NULL,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n FOREIGN KEY (entity_id) REFERENCES entities(id) ON DELETE CASCADE,\n INDEX idx_entity (entity_id),\n INDEX idx_source (source_type, source_id)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Semantik\/Bedeutung von Entitäten'",
"database": "ki_content"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"affected_rows\": 0,\n \"error\": null,\n \"execution_ms\": 1\n}"
}
]
}