feat(handlers): enrich semantic error messages with prescriptive tool hints to prevent LLM hallucination traps

This commit is contained in:
Riz Ashraf committed 2026-09-26 08:47:52 +01:00
1 parent cbef7e5291
commit a24ef598a2
4 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -185,7 +185,7 @@ impl McpTool for DeleteSnippetHandler {
drop(idx.delete_document(&req.name));
Ok("Snippet deleted.".to_string())
} else {
Err("Snippet not found.".to_string())
Err("Snippet not found. Please verify the snippet ID using search_snippets.".to_string())
}
}
}