save_investigation_result
Store root cause analysis, research sources, and fix details for an error incident to build an audit trail for learning from past fixes after investigating and deploying a solution.
Instructions
Save AI investigation results for an error incident.
Used to store investigation results for audit trail and learning from past fixes.
Call this after investigating an error and proposing/deploying a fix.
USAGE:
- Call after completing investigation and deploying fix
- Stores root cause analysis, research sources, proposed changes
- Creates audit trail for learning from past investigations
REQUEST FIELDS:
- incident_id: UUID of the error incident (from get_acknowledged_errors)
- root_cause_analysis: Your analysis of what caused the error
- similar_incidents_analyzed: Array of similar incident IDs found
- research_sources: Array of URLs used (search_web_ai, Context7 docs)
- fix_type: Type of fix - 'code_change', 'config_update', 'deployment', 'migration', 'documentation'
- proposed_changes: Object with file paths and changes made
- confidence_score: Your confidence in the fix (0.0-1.0)
- risk_level: Risk assessment - 'low', 'medium', 'high'
- test_plan: How you tested the fix
- rollback_plan: How to roll back if needed
- deployment_commit_hash: Git commit hash of the fix
- deployment_results: Object with deployment success/failure details
EXAMPLE:
save_investigation_result({
incident_id: "550e8400-e29b-41d4-a716-446655440000",
root_cause_analysis: "Timeout set to 5s, too short for slow networks",
fix_type: "code_change",
confidence_score: 0.85,
risk_level: "low",
deployment_commit_hash: "abc123def456"
})
RETURNS:
- investigation_id: UUID of saved investigation
- incident_id: UUID of the error incident
- investigation_status: 'in_progress' or 'completed'
- deployment_status: 'not_started', 'in_progress', 'completed'
- success: true if saved successfullyInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix_type | No | Type of fix applied | |
| test_plan | No | How the fix was tested | |
| risk_level | No | Risk assessment of the fix | |
| incident_id | Yes | UUID of the error incident from get_acknowledged_errors | |
| rollback_plan | No | How to roll back if fix fails | |
| confidence_score | No | AI confidence in proposed fix (0.0-1.0) | |
| proposed_changes | No | Object with file paths and changes made | |
| research_sources | No | Array of research sources used (URLs from search_web_ai, Context7) | |
| deployment_results | No | Deployment success/failure details | |
| root_cause_analysis | No | Your analysis of what caused the error | |
| deployment_commit_hash | No | Git commit hash of the deployed fix | |
| similar_incidents_analyzed | No | Array of similar incident IDs found via recall_memories |