Skip to main content
Glama
RCA-MCP Connector

RCA-MCP Connector

rca_dtree_generate_from_fmea

Generate a sequential yes/no diagnostic decision tree from a completed FMEA analysis, converting HIGH-priority failure modes into actionable troubleshooting steps.

Instructions

Starter+ plan required. Auto-generate a diagnostic decision tree from a completed FMEA analysis, converting HIGH-priority failure modes into a sequential yes/no diagnostic tree. Get fmea_result_id first by running rca_analysis_run against a model created with family="fmea".

When save_as_guide=True (default), the tree is ingested as a json_dtree guide and the returned guide_id can be passed to rca_dtree_start -- or skip this tool entirely and pass guide_id="auto" directly to rca_dtree_start, which generates the tree on the fly without saving it.

Args: params (DTreeGenerateFromFmeaInput): fmea_result_id, equipment_id, equipment_type, save_as_guide

Returns: str: JSON with the generated tree, and guide_id if save_as_guide=True

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_dtree_generate_from_fmea"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv4.1.15
    • addedInput schema / $defs / DTreeGenerateFromFmeaInput / properties / client_id / description
      Added value: +"Client namespace ID"
    • addedInput schema / $defs / DTreeGenerateFromFmeaInput / properties / token / description
      Added value: +"API key to authenticate this request"
  2. Changed2 schema fields changedv4.1.14
    • addedInput schema / $defs / DTreeGenerateFromFmeaInput / properties / equipment_id / description
      Added value: +"Equipment this decision tree is generated for, e.g. 'pump_XR200_unit3'"
    • addedInput schema / $defs / DTreeGenerateFromFmeaInput / properties / equipment_type / description
      Added value: +"Equipment type; see rca_guide_ingest's schema for supported values (default 'custom' for anything not on that list)"
  3. First observedv4.1.13

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only mark this as non-read-only and non-destructive; the description goes well beyond them by disclosing the Starter+ plan requirement and the concrete side effect of save_as_guide=True (the tree is ingested as a json_dtree guide and a guide_id is returned). It also makes clear that an unsaved, on-the-fly generation path exists, so the agent understands the persistence consequence before calling.

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

Conciseness5/5

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

The plan requirement is front-loaded as the first clause, the core purpose follows immediately, and prerequisites and the alternative path are sequenced in the order an agent needs them. The Args/Returns block is compact and no sentence is filler.

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 one-parameter wrapper whose real options live in the nested input model, the description covers prerequisites, plan gating, the persistence toggle, and the returned guide_id. With an output schema present it need not document the tree payload itself, and nothing an agent needs to invoke this correctly is missing.

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

Parameters3/5

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

Schema description coverage is reported as 0%, so the description must carry parameter meaning. It does add real semantics for fmea_result_id (result_id of a completed FMEA run, sourced from rca_analysis_run) and for save_as_guide (bool, default true, ingests a guide), but the remaining args are only listed by name with no added detail.

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 and resource ('Auto-generate a diagnostic decision tree from a completed FMEA analysis') plus the transformation rule (HIGH-priority failure modes become a sequential yes/no tree). An agent can distinguish this from rca_dtree_start and rca_analysis_run without opening any schema.

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 prerequisite chain: obtain fmea_result_id first via rca_analysis_run on a model created with family="fmea". It also names the alternative path (pass guide_id="auto" to rca_dtree_start and skip this tool entirely) along with the condition under which that alternative applies.

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