summaryrefslogtreecommitdiff
path: root/src/mcp/tools/rebuild_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mcp/tools/rebuild_index.c')
-rw-r--r--src/mcp/tools/rebuild_index.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mcp/tools/rebuild_index.c b/src/mcp/tools/rebuild_index.c
index 7208d77..e6dbf69 100644
--- a/src/mcp/tools/rebuild_index.c
+++ b/src/mcp/tools/rebuild_index.c
@@ -59,6 +59,11 @@ call_rebuild_index(const mcpc_tool_t *tool, mcpc_ucbr_t *result)
bool
tiny_mcp_register_rebuild_index(mcpc_server_t *server)
{
- mcpc_tool_t *tool = tiny_mcp_tool_new("rebuild_index", "Compact and rebuild", call_rebuild_index);
+ mcpc_tool_t *tool = tiny_mcp_tool_new(
+ "rebuild_index",
+ "Compact the store and rebuild its snapshot and in-memory indexes. Use it "
+ "for maintenance or to physically remove logically deleted records; it may "
+ "block other requests while running.",
+ call_rebuild_index);
return tool && mcpc_server_add_tool(server, tool) == MCPC_EC_0;
}