Skip to main content
Glama

get_neo4j_schema_and_indexes

Retrieve Neo4j graph schema with search indexes and property size warnings to optimize search tool usage and avoid token limits.

Instructions

Returns Neo4j graph schema with search indexes and property size warnings.

IMPORTANT: Call this tool BEFORE using any search tools (vector_search, fulltext_search, search_cypher_query).

This tool provides:

  • Vector & fulltext indexes (for search)

  • Node/relationship schemas with property types

  • Warnings for large properties (helps choose efficient return_properties)

Property size warnings help you avoid token limits when using search tools. For example, if a property has warning "avg ~100-200KB", avoid returning it unless necessary.

You should only provide a sample_size value if requested by the user, or tuning performance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sample_sizeNoThe sample size used to infer the graph schema and property sizes. Larger samples are slower but more accurate.

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

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