Skip to main content
Glama

Graph neighborhood

get_graph_neighborhood
Read-onlyIdempotent

Explore the BFS neighborhood around a graph node by ID or label, returning connected nodes and edges within a configurable depth limit (default 2, max 4).

Instructions

Return the BFS neighborhood around one graph node by id or label: { nodes: [{ id, label, node_type }], edges: [{ source_node_id, target_node_id, edge_type }] } within a depth budget (default 2, max 4). Read-only. Tuned for "what touches this action?"; use get_knowledge_graph to traverse from a component seed, or get_graph_node for a single node's row.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedYesStarting graph node id or label to expand around (e.g. an inventory Action id or component name)
depthNoBFS hops to traverse outward. Default 2; clamped to a max of 4.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
edgesYesEdges connecting the returned nodes
nodesYesGraph nodes within the depth budget
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld. Description adds algorithmic detail (BFS, depth budget) and explicitly states 'Read-only'. No contradictions.

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?

Two sentences, front-loaded with core information. Every sentence adds value: first covers functionality and output, second gives usage guidance and alternatives. No waste.

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

Completeness5/5

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

Given output schema exists, description fully covers purpose, parameters, and usage context. No gaps for a 2-param tool with strong annotations.

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 100%. Description adds context: seed can be 'id or label' with example, depth is 'BFS hops' with default and max, providing extra meaning beyond schema.

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 it returns the BFS neighborhood around a graph node, specifies the output structure (nodes and edges with fields), and distinguishes from siblings (get_knowledge_graph, get_graph_node).

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

Usage Guidelines5/5

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

Explicitly says it is 'Tuned for what touches this action?' and provides clear alternatives: use get_knowledge_graph for component seed traversal, get_graph_node for a single node's row.

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/kensaurus/mushi-mushi'

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