Skip to main content
Glama
RCA-MCP Connector

RCA-MCP Connector

rca_dtree_answer

Answer the current diagnostic question to advance a decision tree, repeating until the session resolves; then generate a shareable RCA report.

Instructions

Starter+ plan required. Answer the current diagnostic question to advance the decision tree. Call repeatedly until status == "resolved".

Once resolved, use rca_guide_generate_report to turn the session into a shareable report.

Args: params (DTreeAnswerInput): session_id, answer (yes|no|unknown), measurement - ai_summary: also generate a short NL executive summary if this answer resolves the session (Starter+, quota-limited -- see field description)

Returns: str: JSON with status, question OR diagnosis, progress_pct, and ai_summary/ai_summary_error if ai_summary=true was requested and the session resolved. Diagnosis fields (when resolved): diagnosis, confidence, actions, parts_to_check, estimated_repair_time, escalate_to_specialist, fault_codes, references, diagnostic_path

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

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.1.18
    • addedInput schema / $defs / DTreeAnswerInput / properties / ai_summary
      Added value: +{
      +  "default": false,
      +  "description": "If this answer resolves the session, also generate a short plain-English executive summary of the diagnosis via Claude Haiku (platform-provided key). Starter+ only, subject to the same monthly quota as rca_analysis_run's ai_summary (Starter 100, Pro 1000, Enterprise unlimited) -- see ai_summary/ai_summary_error in the response. Ignored while status is still in_progress.",
      +  "title": "Ai Summary",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changedv4.1.15
    • addedInput schema / $defs / DTreeAnswerInput / properties / client_id / description
      Added value: +"Client namespace ID"
    • addedInput schema / $defs / DTreeAnswerInput / properties / token / description
      Added value: +"API key to authenticate this request"
  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?

Annotations already cover non-readonly, non-destructive, non-idempotent behavior. The description adds important context beyond annotations: the iterative decision-tree loop, session advancement, Starter+ gating, and ai_summary quota/conditional behavior.

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 purpose and organized into Args/Returns sections. It includes some return-field detail that is redundant because an output schema exists, and repeats ai_summary quota details, but remains readable and not bloated.

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 the essential iterative flow, resolution transition, plan requirement, and response shape, which is sufficient for calling the tool correctly. It is slightly incomplete around auth token handling and non-ai_summary error behavior, though the input schema supplies those fields.

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 description explains session_id, answer enum values, optional measurement, and ai_summary behavior, but omits the required token and optional client_id from its Args summary. It adds useful context such as session_id coming from rca_dtree_start, but does not fully compensate for the low schema coverage signal.

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 states a specific verb and resource: answer the current diagnostic question to advance the decision tree. It also distinguishes the follow-on step by naming rca_guide_generate_report for after resolution.

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 explicit operational guidance: call repeatedly until status == 'resolved', then use rca_guide_generate_report. The Starter+ plan requirement is also stated up front.

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