{
"event": "PreToolUse",
"tool_name": "mcp__mcp-db__db_execute",
"tool_input": {
"statement": "CREATE TABLE IF NOT EXISTS provenance (\n id INT AUTO_INCREMENT PRIMARY KEY,\n artifact_type ENUM('document', 'chunk', 'entity', 'relation', 'statement', 'embedding') NOT NULL,\n artifact_id INT NOT NULL,\n source_type ENUM('file', 'extraction', 'analysis', 'merge', 'manual') NOT NULL,\n source_id INT NULL,\n pipeline_run_id INT NULL,\n pipeline_step VARCHAR(50),\n model_used VARCHAR(100),\n prompt_version VARCHAR(20),\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n INDEX idx_artifact (artifact_type, artifact_id),\n INDEX idx_pipeline (pipeline_run_id)\n)",
"database": "ki_content"
}
}
{
"tool_response": [
{
"type": "text",
"text": "{\n \"status\": \"success\",\n \"affected_rows\": 0,\n \"error\": null,\n \"execution_ms\": 1\n}"
}
]
}