rca_defect_classify
Classifies a defect's origin using a four-question decision tree, returning the flagged category with reasoning path or a needs-further-investigation result when no category matches.
Instructions
Pro+ plan required. Walks a fixed 4-question decision tree (Design / Construction / Materials / Maintenance -- the standard categories for a defect's origin) and returns the flagged category plus the full reasoning path. Any answer left "unknown" falls back the same way a 'no' would. No category flagged by any answer returns a "needs further investigation" result rather than forcing a guess.
Call this once you already have answers to the 4 origin questions about a known defect. For an open-ended investigation where those answers aren't known yet, use rca_dtree_start/rca_dtree_answer to work through a guided diagnostic instead, or rca_8d_root_cause_analyze for a full causal RCA against an 8D case.
Args: params (DefectClassifyInput): token, client_id, loading_matches_design, work_matches_approved_specs, material_matches_certification, maintenance_and_inspections_current
Returns: str: JSON with origin, confidence, explanation, diagnostic_path (one entry per question actually asked), and a disclaimer
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "rca_defect_classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |