Skip to main content
Glama

Graph explain

graph_explain
Read-only

Explain in plain language how two entities are connected — finds the shortest relationship path and describes it (e.g. why a member and an instructor are linked).

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": {
      "from_type": "<from_type>",
      "from_id": "<from_id>",
      "to_type": "<to_type>",
      "to_id": "<to_id>"
    },
    "name": "graph_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_idYes
from_idYes
to_typeYes
from_typeYes
max_depthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds that the result is a plain-language narrative of the shortest path, but says nothing about behavior when no path exists, how depth limits affect the answer, or how the explanation is phrased — useful gaps given the tool's whole output is prose.

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?

A single front-loaded sentence: the action comes first, the mechanism second, and the illustrative example last. Nothing is redundant, though the example is the only element that survives deletion without loss.

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?

With no output schema, the description does the necessary work by stating the return is a plain-language explanation rather than a raw path. Given annotations cover safety and the required parameters are inferable, the main remaining hole is max_depth and no-path behavior, which is a moderate rather than disqualifying gap.

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

Parameters2/5

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

Schema coverage is 0%, so the description carries the full burden. 'Two entities' lets an agent infer the from/to id and type quartet, but max_depth — the one parameter controlling search behavior — is never mentioned or explained, leaving a fifth of the schema to guesswork.

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

Purpose4/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 — 'explain in plain language how two entities are connected' — plus the mechanism ('finds the shortest relationship path'), so an agent understands the operation. It stops short of naming or distinguishing itself from the sibling graph_find_path, which by name appears to compute the same path, leaving the explain-vs-path difference implicit.

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

Usage Guidelines3/5

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

The parenthetical example ('why a member and an instructor are linked') implies a when-to-use scenario for human-readable explanations, which is real guidance. However, there is no explicit exclusion or pointer to graph_find_path/graph_answer, so choosing against the closest sibling 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources