{
"event": "PreToolUse",
"tool_name": "mcp__mcp-db__db_execute",
"tool_input": {
"statement": "CREATE TABLE entity_types (\n id INT AUTO_INCREMENT PRIMARY KEY,\n code VARCHAR(50) NOT NULL UNIQUE,\n name VARCHAR(100) NOT NULL,\n description TEXT,\n criteria TEXT,\n indicators TEXT,\n examples TEXT,\n parent_type_id INT NULL,\n sort_order INT DEFAULT 0,\n is_active BOOLEAN DEFAULT TRUE,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n FOREIGN KEY (parent_type_id) REFERENCES entity_types(id)\n)",
"database": "ki_content"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"affected_rows\": 0,\n \"error\": null,\n \"execution_ms\": 2\n}"
}
]
}