Skip to main content
Glama
dave1362

RCA-MCP Connector

rca_dtree_generate_from_fmea

Turn high-priority FMEA failure modes into a step-by-step yes/no diagnostic tree. Provide a completed FMEA result ID to generate the tree, with an option to save it as a reusable guide.

Instructions

🌟 Starter+ — 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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON 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.3/5.0
Behavior4/5

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

The description discloses persistence behavior when save_as_guide=True, the fact that the tree is ingested as a json_dtree guide, and the return of a guide_id only in that mode. This is meaningful context beyond the annotations, though it leaves the save_as_guide=False side effect mostly implicit.

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?

The description is front-loaded with the core purpose, uses compact paragraphs for workflow details, and ends with an Args/Returns block. The 'Starter+' label and emoji add little, but the overall length is justified by the tool's branching behavior.

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

Completeness4/5

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

It covers prerequisites, the default ingestion path, the alternative on-the-fly path via rca_dtree_start, and the return shape. With an output schema and sibling context, not much is missing; an explicit statement of the save_as_guide=False behavior would make it complete.

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?

The nested schema already documents most field meanings, and the description adds the important workflow context that fmea_result_id comes from rca_analysis_run and that save_as_guide controls guide ingestion. However, the Args block only lists names and omits token/client_id, so parameter semantics are adequate rather than thorough.

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?

The description opens with a specific verb and resource: 'Auto-generate a diagnostic decision tree from a completed FMEA analysis.' It also distinguishes itself from rca_dtree_start by explaining the alternative guide_id='auto' path, so an agent can tell these tools apart.

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?

It gives an explicit prerequisite ('Get fmea_result_id first by running rca_analysis_run against a model created with family='fmea''), states the default save behavior, and describes when to use rca_dtree_start instead ('skip this tool entirely and pass guide_id='auto'').

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