From c407e8106e4a53cb1e91eed47902ca1a57bf6793 Mon Sep 17 00:00:00 2001 From: wwhsaber Date: Sun, 31 May 2026 21:02:08 +0800 Subject: [PATCH] fix: guide models to use short keywords for codegraph_context task param The current description 'Description of the task, bug, or feature to build context for' leads models to pass verbose natural language sentences. Since the underlying search is FTS5-based, this dilutes the signal with noise words and causes misses on queries that would otherwise succeed with short keywords. Updated the description to: - Emphasize short keywords or symbol paths - Explain that the search is FTS5-based - Provide concrete examples of good input Fixes #571 --- src/mcp/tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcp/tools.ts b/src/mcp/tools.ts index 2e9c6f81..b921ff40 100644 --- a/src/mcp/tools.ts +++ b/src/mcp/tools.ts @@ -441,7 +441,7 @@ export const tools: ToolDefinition[] = [ properties: { task: { type: 'string', - description: 'Description of the task, bug, or feature to build context for', + description: 'Short keywords or symbol paths to search for (e.g. "AuthService/login" or "payment webhook handler"). Use concise terms — the search is FTS5-based, so verbose sentences dilute results with noise words.', }, maxNodes: { type: 'number',