Skip to main content
Glama
neo4j-field

Neo4j GraphRAG MCP Server

by neo4j-field

Fulltext Search

fulltext_search
Read-onlyIdempotent

Search Neo4j fulltext indexes using Lucene query syntax to retrieve relevant nodes and relationships with properties and relevance scores for GraphRAG applications.

Instructions

Performs fulltext search on a Neo4j fulltext index using Lucene query syntax.

Lucene Syntax Supported:

  • Boolean: "legal AND compliance", "privacy OR security"

  • Wildcards: "compli*", "te?t"

  • Fuzzy: "complience~"

  • Phrases: ""exact phrase""

Automatic Sanitization (always applied):

  • Large lists (≥128 items) → replaced with placeholders

  • Large strings (≥10K chars) → truncated with suffix

  • Total response limited to 8000 tokens (results dropped if needed)

Property Selection:

  • Default (no return_properties): Returns ALL properties (sanitized)

  • With return_properties: Returns ONLY specified properties

  • Example: return_properties="pageNumber,id" → returns only these two

  • Check get_neo4j_schema_and_indexes for property warnings to avoid large fields

Returns node/relationship IDs, labels/types, properties (sanitized), and relevance scores.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
text_queryYesThe text query to search for. Supports Lucene query syntax (AND, OR, wildcards, fuzzy, etc.).
fulltext_indexYesThe name of the fulltext index to search. Use get_neo4j_schema_and_indexes to see available indexes.
top_kNoThe number of most relevant results to return.
return_propertiesNoOptional: Comma-separated list of properties to return (e.g., "pageNumber,id"). If not specified, returns all properties with automatic sanitization (large values are truncated).
Behavior4/5

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

The description adds valuable behavioral context beyond what annotations provide. While annotations indicate read-only, open-world, idempotent, and non-destructive operations, the description details automatic sanitization rules (large list/string handling, token limits), property selection behavior (default vs. specified properties), and the specific return format (IDs, labels, properties, scores). This goes significantly beyond the safety profile covered by annotations.

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 well-structured with clear sections (Lucene Syntax, Automatic Sanitization, Property Selection) and every sentence adds value. It's front-loaded with the core purpose, followed by essential details, and avoids redundancy. The bullet points enhance readability without unnecessary verbosity.

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?

For a search tool with comprehensive annotations and full schema coverage, the description provides complete context. It explains the search methodology, behavioral constraints (sanitization, limits), property handling, and references to related tools. While there's no output schema, the description clearly specifies what's returned (IDs, labels, properties, scores), making it fully adequate for agent understanding.

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?

With 100% schema description coverage, the input schema already documents all parameters thoroughly. The description adds some contextual examples (e.g., return_properties='pageNumber,id') and links parameters to other tools (fulltext_index to get_neo4j_schema_and_indexes), but doesn't provide substantial additional semantic meaning beyond what's already in the schema descriptions. This meets the baseline for high schema coverage.

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 specific action ('Performs fulltext search') on a specific resource ('Neo4j fulltext index') using a specific method ('Lucene query syntax'). It distinguishes itself from siblings like vector_search by specifying the search type and from read_neo4j_cypher/search_cypher_query by focusing on fulltext indexing rather than 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 Guidelines5/5

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

The description provides explicit guidance on when to use this tool versus alternatives. It references get_neo4j_schema_and_indexes to discover available indexes and check property warnings, and distinguishes itself from other search methods by specifying fulltext search with Lucene syntax. The context of automatic sanitization and property selection also informs appropriate usage scenarios.

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

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