Skip to main content
Glama

get_neighbors

Fetches a subgraph of neighbors reachable from a node ID within a set number of hops, with direction and edge filters to explore only relevant connections.

Instructions

id 로부터 depth 홉 이웃 서브그래프 ([5-B]).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
depthNo홉 수 (서버 상한 3 — hop 확장은 폭발적).
directionNo홉마다 엣지 방향을 어떻게 따를지 ([4] source/target). 'both'=무방향(기본), 'out'=나가는 엣지(id→…)만, 'in'=들어오는 엣지(…→id)만. directed=False 엣지는 방향이 없어 in/out 양쪽에서 따라간다.both
max_nodesNo이웃 노드 상한. 초과하면 잘라내고 truncated=true.
edge_filterNo이 필터를 통과하는 엣지만 따라간다 ([6]).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

D1.9/5.0
Behavior1/5

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

With no annotations provided, the description must disclose behavioral traits. It only states 'neighbor subgraph' and does not mention truncation (max_nodes), direction handling, edge filtering, depth limits, or any side effects. This is a significant gap for a traversal tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short sentence, which is concise in length but under-specified. It lacks the essential context needed for a 5-parameter tool, making it more an under-specification than a model of conciseness. The structure is not front-loaded with the most critical constraints.

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

Completeness1/5

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

Given the tool's complexity (5 parameters, graph traversal, output schema present), the description is severely incomplete. It does not mention truncation, direction, filtering, depth limits, or any behavior beyond the label. Even with the output schema covering return values, an agent cannot infer when or how to call this tool correctly from the description alone.

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?

Schema description coverage is 80% (4 of 5 parameters have descriptions), so the baseline is 3. The description adds no parameter meaning beyond what the schema provides; id remains undocumented, and the tool description does not clarify it. The schema already explains depth, direction, max_nodes, and edge_filter, so the description contributes nothing extra.

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

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool fetches a 'neighbor subgraph from id with depth hops', which conveys a graph traversal purpose. However, it is vague about what a 'neighbor subgraph' includes (nodes, edges, filtering) and does not differentiate it from siblings like get_node or find_paths. It is not a tautology but lacks specificity.

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

Usage Guidelines1/5

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

The description provides no guidance on when to use this tool versus alternatives. It does not mention use cases, when not to use it, or any context that would help an agent select it. The schema hints at parameters, but the description itself offers no decision support.

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