Skip to main content
Glama

Graph neighbors

graph_neighbors
Read-only

Traverse the studio graph from a node up to depth hops (bidirectional by default). Node types: participant, class_session, instructor, offering, location, membership_plan, specialty. Returns reachable nodes with the relationship 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": {
      "node_type": "<node_type>",
      "node_id": "<node_id>"
    },
    "name": "graph_neighbors"
  }
}

Input Schema

NameRequiredDescriptionDefault
relsNoOnly follow these relationships (e.g. ["BOOKED","TAUGHT_BY"]).
depthNo1-5, default 2.
node_idYes
directionNoDefault both.
node_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), so the description's added value is the traversal semantics: hop-bounded expansion, bidirectional default, and the fact that a relationship path is returned. It omits practical behavior such as result-size limits, behavior for unknown node ids, and how direction affects the returned path, so it goes only modestly beyond the annotations.

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?

Three short sentences, front-loaded with the core action and scope, and the node-type list is the only long element but is substantive. No filler or restatement of the title.

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

Completeness3/5

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

There is no output schema, and the description only briefly sketches the return ('reachable nodes with the relationship path') without describing its shape or any cap on breadth. For a 5-parameter graph traversal this is adequate but leaves meaningful gaps about result volume and failure modes.

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 60%, with node_type and node_id undescribed in the schema. The description compensates by enumerating valid node types and by clarifying that depth means hops in a traversal, adding real meaning to the depth param beyond '1-5, default 2'. node_id remains unexplained in both places, which keeps this from a 5.

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?

States a specific verb and resource: 'Traverse the studio graph from a node up to depth hops', plus it names the node-type domain it operates over. An agent can tell this is a local neighborhood traversal, which distinguishes it in spirit from path-finding or explanation siblings, though no sibling is named explicitly.

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?

Usage is only implied by the traversal semantics and the 'bidirectional by default' note; there is no explicit when-to-use statement and no contrast with graph_find_path, graph_explain, or graph_answer. The enumerated node types give some sense of scope but do not route the agent between alternatives.

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