Skip to main content
Glama
dave1362

RCA-MCP Connector

rca_graph_add_node

Add a typed node to a causal graph for root cause analysis, with unique names enforced to prevent duplicates.

Instructions

Add a typed node to a causal graph. Node names must be unique within the graph -- adding a node with a name that already exists raises an error rather than overwriting it; remove the existing one first with rca_graph_remove_node if you want to replace it.

Args: params (NodeOpInput): - graph_id: the graph to add to - name: unique node name within this graph - node_type: metric | incident | symptom | root_cause | intermediate (default "metric") -- classifies the node for reports and graph views, doesn't affect analysis - description, metadata: optional, for your own reference

Returns: str: JSON {added_node, node_type, total_nodes}, or a value error if the name already exists in this graph

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 / NodeOpInput / properties / client_id / description
      Added value: +"Client namespace ID"
    • addedInput schema / $defs / NodeOpInput / properties / token / description
      Added value: +"API key to authenticate this request"
  2. Changed5 schema fields changedv4.1.14
    • addedInput schema / $defs / NodeOpInput / properties / description / description
      Added value: +"Optional free-text notes on what this node represents"
    • addedInput schema / $defs / NodeOpInput / properties / graph_id / description
      Added value: +"Graph to add the node to"
    • addedInput schema / $defs / NodeOpInput / properties / metadata / description
      Added value: +"Optional arbitrary key-value metadata attached to the node"
    • addedInput schema / $defs / NodeOpInput / properties / name / description
      Added value: +"Unique node name within the graph"
    • addedInput schema / $defs / NodeOpInput / properties / node_type / description
      Added value: +"One of: metric | incident | symptom | root_cause | intermediate — used to color/classify nodes in reports and graph views"
  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?

Discloses important behaviors beyond the annotations: duplicate names raise an error rather than overwriting, node_type only classifies the node for reports/views and does not affect analysis, and the return value includes added_node, node_type, and total_nodes. This complements annotations like readOnlyHint=false and destructiveHint=false without contradicting them.

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 compact and well-organized: a two-sentence intro, a bulleted Args list, and a Returns line. The uniqueness constraint and replacement note are front-loaded and actionable. Some schema details like defaults and optional flags are repeated, but this does not meaningfully bloat the text.

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?

For a graph mutation tool with an output schema and annotations, this description covers the action, the error case, all decision-relevant parameters, and the return shape. The only omissions are token and client_id, which are visible in the schema and not central to deciding when or how to invoke the tool. An agent can call this tool correctly without further lookup.

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 Args section explains all user-meaningful parameters: graph_id, name, node_type with accepted values and default, and description/metadata marked as optional. It adds semantic nuance not fully explicit in the schema, such as 'doesn't affect analysis' for node_type and the uniqueness guarantee for name. Token and client_id are omitted but are standard authentication/namespace fields present in the schema.

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 starts with 'Add a typed node to a causal graph' — a specific verb, resource, and scope. The uniqueness constraint and node_type enumeration further clarify what the tool does, distinguishing it from siblings like rca_graph_add_edge and rca_graph_remove_node without needing to inspect their schemas.

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

Usage Guidelines4/5

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

Explicitly routes replacement behavior to rca_graph_remove_node ('remove the existing one first with rca_graph_remove_node if you want to replace it'), which is clear when-not-to-use guidance. The primary use case is evident from the tool name and opening sentence, though it does not explicitly discuss alternatives like rca_graph_add_edge.

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