Skip to content

Commit 89ccbcd

Browse files
committed
Convey the sample of slow queries to the LLM
1 parent 83f34b1 commit 89ccbcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/atlas/read/getPerformanceAdvisor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class GetPerformanceAdvisorTool extends AtlasToolBase {
102102
: "No suggested indexes found."
103103
}`,
104104
`## Drop Index Suggestions\n${hasDropIndexSuggestions ? JSON.stringify(dropIndexSuggestionsResult.value) : "No drop index suggestions found."}`,
105-
`## Slow Query Logs\n${hasSlowQueryLogs ? JSON.stringify(slowQueryLogsResult.value?.slowQueryLogs) : "No slow query logs found."}`,
105+
`## Slow Query Logs\n${hasSlowQueryLogs ? `Please notify the user that the slow query logs are limited to the most recent ${DEFAULT_SLOW_QUERY_LOGS_LIMIT} slow query logs. This is a limitation of the MCP server tool only.\n${JSON.stringify(slowQueryLogsResult.value?.slowQueryLogs)}` : "No slow query logs found."}`,
106106
`## Schema Suggestions\n${hasSchemaSuggestions ? JSON.stringify(schemaSuggestionsResult.value?.recommendations) : "No schema suggestions found."}`,
107107
];
108108

0 commit comments

Comments
 (0)