Skip to content

MCP Tools Reference

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

Complete reference for the tools exposed by the local Nella MCP server.

The server currently registers 7 tools:

CategoryTools
Contextnella_get_context, nella_add_assumption, nella_check_assumptions, nella_check_dependencies
Indexingnella_index, nella_search
Trust Chainnella_heartbeat

Table of Contents

Context Tools

nella_get_context

Returns session state for the current workspace, including recent changes, assumption counts, dependency snapshot details, and the prompt-injection trust metadata issued for the session.

Parameters

ParameterTypeRequiredDescription
changesLimitnumberNoMaximum number of recent changes to include. Default: 20.

Behavior

  • Includes session statistics, hotspot files, active assumptions, and recent invalidations when present.
  • Also returns the session trust token, HMAC integrity guidance, and the current heartbeat challenge.

See nella_get_context for the full per-tool reference.

nella_add_assumption

Records an assumption about the codebase so later changes can invalidate it automatically.

Parameters

ParameterTypeRequiredDescription
typestringYesOne of schema, interface, dependency, behavior, config, structure, other.
descriptionstringYesHuman-readable assumption text.
relatedFilesstring[]NoFiles or glob patterns related to the assumption. Matching uses minimatch in the core assumption tracker.
confidencenumberNoConfidence from 0 to 1. Default: 0.8.

See nella_add_assumption.

nella_check_assumptions

Lists valid and recently invalidated assumptions and summarizes them by type.

Parameters

None.

Behavior

  • Returns isError: true when any assumptions have been invalidated.

See nella_check_assumptions.

nella_check_dependencies

Compares the current dependency state to the last recorded snapshot.

Parameters

None.

Behavior

  • Reports added, removed, and updated packages.
  • Returns isError: true when dependency drift is detected.

See nella_check_dependencies.

Indexing Tools

nella_index

Builds or refreshes the workspace index used by nella_search.

Parameters

ParameterTypeRequiredDescription
forcebooleanNoRebuild the index and ignore cached embeddings. Default: false.
pathsstring[]NoFiles or directories to index. Each path is resolved relative to the workspace root before indexing.

Behavior

  • Stores index data under .nella/index in the workspace.

See nella_index.

Searches the indexed workspace with hybrid, semantic, or lexical retrieval.

Parameters

ParameterTypeRequiredDescription
querystringYesSearch query text.
modestringNoOne of hybrid, semantic, lexical. Default: hybrid.
topKnumberNoMaximum number of results. Default: 10.
languagestringNoFile type filter. Accepts language names like typescript or raw extensions like ts.
filePatternstringNoCase-insensitive substring match against indexed file paths. This is not glob matching.

Behavior

  • Requires a non-empty index; otherwise the tool returns an error telling you to run nella_index.
  • Returns wrapped code chunks with relative paths, line ranges, type/language metadata, symbol names when available, and injection warnings or HMAC integrity markers when present.

See nella_search.

Trust Chain Tool

nella_heartbeat

Verifies trust-chain continuity by checking the challenge issued from nella_get_context or the previous nella_heartbeat response.

Parameters

ParameterTypeRequiredDescription
challenge_responsestringYesThe current challenge value returned by Nella.

Behavior

  • Returns an OK or FAILED status in the response body and always issues a new challenge.
  • Failure is communicated in the markdown response body rather than through isError.

See nella_heartbeat.