Skip to content

MCP Tools Reference

Complete reference for all tools exposed by the Nella MCP Server.

Nella exposes 7 tools through the Model Context Protocol. Your agent calls these automatically during conversations.

nella_index

Index your codebase for search.

ParameterTypeRequiredDescription
forcebooleanNoRebuild the index from scratch, ignoring cache
pathsstring[]NoSpecific files or directories to index

Call nella_index before your first search, or after major code changes. The index is stored locally in .nella/ and persists across sessions.

Search across your indexed codebase.

ParameterTypeRequiredDescription
querystringYesWhat to search for
modestringNohybrid (default), semantic, or lexical
topKnumberNoNumber of results (default: 10)
languagestringNoFilter by language (e.g., typescript)
filePatternstringNoFilter by file path substring

Search modes:

  • hybrid — Best for most queries. Combines keyword matching with meaning-based search.
  • semantic — Best for conceptual queries like “error handling strategy” or “authentication flow.”
  • lexical — Best for exact symbol names like getUserById or AuthMiddleware.

Results include file paths, line ranges, matched content, and confidence scores. Content flagged as potentially suspicious is marked with warnings.

nella_get_context

Review the current session state.

ParameterTypeRequiredDescription
changesLimitnumberNoMax number of recent changes to return (default: 20)

Returns session metadata, recent file changes, recorded assumptions, dependency status, and session statistics.

nella_add_assumption

Record an assumption about your codebase for later verification.

ParameterTypeRequiredDescription
typestringYesCategory: schema, interface, dependency, behavior, config, structure, or other
descriptionstringYesWhat you’re assuming
relatedFilesstring[]NoFile paths this assumption depends on (supports glob patterns)
confidencenumberNoHow confident you are (0.0 to 1.0, default: 0.8)

Assumptions are automatically invalidated when their related files change. This catches contradictions before they become bugs.

nella_check_assumptions

Verify that all recorded assumptions still hold.

No parameters. Returns a summary of valid, invalidated, and total assumptions, grouped by type. Returns an error signal when any assumptions have been invalidated, prompting the agent to re-evaluate.

nella_check_dependencies

Detect changes to project dependencies since the last check.

No parameters. Compares the current package.json and lockfile against a stored snapshot. Reports added, removed, and updated packages. Creates an initial snapshot on first call. Returns an error signal when dependency drift is detected.

nella_heartbeat

Session verification check.

ParameterTypeRequiredDescription
challenge_responsestringYesResponse value from the previous session context

Confirms session continuity between tool calls. The agent receives a challenge value from nella_get_context and responds here.

Quick Reference

If you want to…Use
Search for codenella_search
Index or re-indexnella_index
Check session statenella_get_context
Record a belief about the codenella_add_assumption
Verify your beliefsnella_check_assumptions
Check for package changesnella_check_dependencies
Verify session continuitynella_heartbeat