Skip to main content
Glama
RCA-MCP Connector

RCA-MCP Connector

rca_defect_classify

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.3.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral context beyond them: a Pro+ plan gate, the rule that 'unknown' falls back like 'no', and the fallback to 'needs further investigation' instead of forcing a guess. It stops short of saying what error or response the caller sees when the plan gate fails, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the plan requirement and the decision-tree mechanism, then routes to alternatives, then summarizes args and returns. It is well ordered with little waste, though the Returns section partially duplicates the existing output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, deterministic classification tool with an output schema and full annotations, the description covers precondition, fallback behavior, plan gating, and routing to alternatives. An agent has everything needed to decide to call it and to interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The reported top-level schema coverage is 0%, so the description must carry weight, and it does list the five inputs and, more importantly, explains the semantics of the 'unknown' enum value (treated as 'no'). It does not restate each question's meaning, relying on the nested field descriptions for that, so meaning is added but not fully self-contained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (classify) and resource (defect origin) and explains the mechanism: a fixed 4-question decision tree over Design/Construction/Materials/Maintenance. It explicitly contrasts itself with rca_dtree_start/rca_dtree_answer and rca_8d_root_cause_analyze, so an agent can distinguish it from siblings without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit precondition ('Call this once you already have answers to the 4 origin questions about a known defect') and names the alternatives plus the condition that selects them for open-ended investigations. Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools