Skip to content
Docs menu

Tool reference · Maintenance & performance

memory_rebuild_fts

Drops and rebuilds the full-text search index from the stored records.

local stdio server writes destructive idempotent
Caution. Marked destructive: the index is dropped before it is rebuilt, so keyword search is incomplete while it runs. Back up the database first on large stores.

When to use

  • Keyword search misses records you know exist.
  • After a database migration or a manual edit of the records table.
  • The index row count does not match the number of records.

Parameters

This tool takes no parameters.

Example

Arguments

{}

Result shape

{
  "rebuilt": true,
  "rows_before": 3702,
  "rows_after": 3870
}

On failure the result is { rebuilt: false, error }.

Values are illustrative; the keys follow the server's handler. MCP clients receive the result as JSON text content.

Server description

The description the server sends to your agent in tools/list, captured from the v14.7.0 source:

drop and rebuild the SQLite FTS5 virtual table from `knowledge` rows. Useful after migrations or content_type column changes that the FTS triggers didn't see. Returns {rebuilt: int}.

Found a mistake? Open an issue on GitHub.

Search