Skip to main content
Glama

Graph find path

graph_find_path
Read-only

Find the shortest relationship path (if any) between two nodes — e.g. how a member connects to an instructor, or two members to each other.

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

Input Schema

NameRequiredDescriptionDefault
to_idYes
from_idYes
to_typeYes
from_typeYes
max_depthNo1-6, default 4.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, destructiveHint false, and closed-world scope, so safety is covered. The description adds that only the shortest path is returned and the "(if any)" phrasing signals a possible no-path result. It does not mention depth limits affecting results, performance costs, or behavior when nodes are missing.

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?

It is one front-loaded sentence with no filler, and the core clause comes before the examples. It is well structured, though it stops short of carrying the parameter detail this tool actually needs.

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

Completeness2/5

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

With five parameters, four of them required and undocumented in the schema, plus no output schema or explanation of the returned path's shape, the description is too thin. An agent still cannot tell what values from_type accepts, what ID format is expected, or what a returned path looks like.

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?

Schema coverage is only 20%: only max_depth is documented ("1-6, default 4"), while from_type, from_id, to_type, and to_id are bare. The description partly compensates by naming "member" and "instructor" as node-type values and framing two endpoints, but it gives no ID format or indication of what other node types exist.

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 phrase "Find the shortest relationship path (if any) between two nodes" names a specific verb and resource, and the examples ("how a member connects to an instructor, or two members to each other") make the graph-traversal purpose concrete. It does not explicitly distinguish itself from siblings such as graph_neighbors or graph_explain, but the purpose is unambiguous on its own terms.

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 description implies when this is useful through scenarios like connecting a member to an instructor, but it never states when not to use it or which sibling tool to pick instead (for example, graph_neighbors for a one-hop lookup versus graph_explain for a rationale). Usage guidance is implied rather than spelled out.

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