You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,13 +24,16 @@ export class GetPerformanceAdvisorTool extends AtlasToolBase {
23
24
"Get MongoDB Atlas performance advisor recommendations, which includes the operations: suggested indexes, drop index suggestions, slow query logs, and schema suggestions";
24
25
publicoperationType: OperationType="read";
25
26
protectedargsShape={
26
-
projectId: z.string().describe("Atlas project ID to get performance advisor recommendations"),
27
-
clusterName: z.string().describe("Atlas cluster name to get performance advisor recommendations"),
27
+
projectId: AtlasArgs.projectId().describe("Atlas project ID to get performance advisor recommendations"),
28
+
clusterName: AtlasArgs.clusterName().describe("Atlas cluster name to get performance advisor recommendations"),
28
29
operations: z
29
30
.array(PerformanceAdvisorOperationType)
30
31
.default(PerformanceAdvisorOperationType.options)
31
32
.describe("Operations to get performance advisor recommendations"),
32
-
since: z.date().describe("Date to get slow query logs since").optional(),
33
+
since: z
34
+
.date()
35
+
.describe("Date to get slow query logs since. Only relevant for the slowQueryLogs operation.")
36
+
.optional(),
33
37
namespaces: z
34
38
.array(z.string())
35
39
.describe("Namespaces to get slow query logs. Only relevant for the slowQueryLogs operation.")
@@ -48,29 +52,29 @@ export class GetPerformanceAdvisorTool extends AtlasToolBase {
0 commit comments