Skip to main content
Glama

get_neighbors

Retrieve all direct neighbors of a given node, including edge details, with optional filters for relation type and project path.

Instructions

Get all direct neighbors of a node with edge details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYes
project_pathNoAbsolute path to a project directory containing graphify-out/graph.json. Optional — defaults to the graph this server was started with.
relation_filterNoOptional: filter by relation type
Behavior3/5

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

With no annotations provided, the description carries the full burden. It implies a read operation but does not disclose error handling (e.g., missing node), permissions, or rate limits. Adequate for a simple read, but lacks depth.

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

Conciseness5/5

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

The description is one sentence, front-loaded with key information, and contains no extraneous text. Every word earns its place.

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?

For a simple tool with no output schema and 3 parameters, the description is adequate but could benefit from mentioning the output format (e.g., list of neighbor nodes with edge types). No errors or edge cases are described.

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?

The description does not add meaning beyond the input schema. Schema already covers 67% of parameters with descriptions for project_path and relation_filter. The 'label' parameter is mentioned only as 'node' in the description, not elaborated.

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

Purpose5/5

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

The description clearly states the verb 'Get' and the resource 'direct neighbors of a node' with edge details. It distinguishes from sibling tools like get_node and shortest_path by specifying neighbor relationships.

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?

No explicit guidance on when to use this tool versus alternatives such as get_community or shortest_path. Usage is implied but not stated, leaving the agent to infer from the tool name and description.

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/sughosh-pocketfm/kbask'

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