Skip to main content
Glama
alvaropaco

Neo4j MCP Server

by alvaropaco

neo4j_search_relationships

Search for graph relationships by specifying source node labels, properties, relationship type, and target node labels to find matching edges in a Neo4j database.

Instructions

Search for relationships (edges) in Neo4j.

Finds patterns (from_node)-[rel]->(to_node) matching the given filters.

Args: from_label: Label of the source node. from_properties: Property filters on the source node. rel_type: Relationship type to match (e.g. "PAGOU", "PERTENCE"). to_label: Label of the target node. to_properties: Property filters on the target node. limit: Maximum results (default 25, max 100).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
rel_typeNo
to_labelNo
from_labelNo
to_propertiesNo
from_propertiesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are present, so the description carries the full burden. It discloses the search pattern and filter capabilities, and mentions limit defaults/maximums. However, it does not describe side effects, permissions, or behavior when no results are found, leaving some transparency gaps.

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?

The description is well-structured with a one-line summary, the pattern, and an Args list. It is appropriately front-loaded. A minor improvement could be consolidating repeated references to the pattern, but overall it is clear and not verbose.

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

Completeness4/5

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

Given an output schema exists, the description adequately covers search inputs without needing to detail return values. It provides all necessary filter information but could mention edge cases like empty results or handling of null property filters for full completeness.

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

Parameters5/5

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

The input schema has no property descriptions (0% coverage), so the description adds full meaning for all 6 parameters: from_label, from_properties, rel_type, to_label, to_properties, and limit (with default and max). This is critical for correct tool use.

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 tool searches for relationships (edges) in Neo4j, specifying the exact pattern (from_node)-[rel]->(to_node). This distinguishes it from sibling tools like neo4j_search (which likely searches nodes) and neo4j_query (general Cypher queries).

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?

The description implies usage for finding relationships matching filters, and sibling names provide context (e.g., neo4j_search for nodes). However, it does not explicitly state when to use this tool vs alternatives, nor does it mention prerequisites or exclusions.

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/alvaropaco/neo4j-mcp'

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