Skip to main content
Glama

get_neighbors

Retrieve the subgraph of nodes connected to a given node in your infrastructure dependency graph, with adjustable depth for broader exploration.

Instructions

Neighborhood subgraph around a node.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_refYes
depthNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description fails to disclose behavioral traits such as read-only nature, permissions, or side effects. It only states the output type without any safety or cost implications.

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

Conciseness3/5

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

The description is very concise (one sentence) and front-loaded with the primary purpose. However, it is too minimal and lacks structure that would make it more informative without significant verbosity.

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?

Given the existence of an output schema, the description does not need to detail return values, but it still lacks context about typical use cases, edge cases (e.g., depth limits), or integration with sibling tools. Incomplete for a tool with two parameters.

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

Parameters1/5

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

The description does not explain the parameters 'node_ref' or 'depth'. Even though the schema has defaults and types, no semantic context is given, leaving agents to infer meaning from names alone. Schema coverage is 0%.

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 'Neighborhood subgraph around a node' clearly states the tool returns a subgraph of neighbors. It distinguishes from siblings like 'get_node' (single node) and 'shortest_path' (path). However, it could be more specific about including edges and nodes.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives like 'list_dependencies' or 'query_infra_graph'. The description only states what it does, not when to prefer it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adanb13/cirdan'

If you have feedback or need assistance with the MCP directory API, please join our Discord server