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
Copy file name to clipboardExpand all lines: pkg/analytics/get_top_searches.go
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -14,16 +14,16 @@ import (
14
14
15
15
// GetTopSearchesParams defines the parameters for retrieving top searches.
16
16
typeGetTopSearchesParamsstruct {
17
-
Indexstring`json:"index" jsonschema:"Index name"`
18
-
ClickAnalytics*bool`json:"clickAnalytics,omitempty" jsonschema:"Whether to include metrics related to click and conversion events in the response"`
19
-
RevenueAnalytics*bool`json:"revenueAnalytics,omitempty" jsonschema:"Whether to include metrics related to revenue events in the response"`
20
-
StartDatestring`json:"startDate,omitempty" jsonschema:"Start date of the period to analyze, in YYYY-MM-DD format"`
21
-
EndDatestring`json:"endDate,omitempty" jsonschema:"End date of the period to analyze, in YYYY-MM-DD format"`
22
-
OrderBystring`json:"orderBy,omitempty" jsonschema:"Attribute by which to order the response items (searchCount, clickThroughRate, conversionRate, averageClickPosition)"`
23
-
Directionstring`json:"direction,omitempty" jsonschema:"Sorting direction of the results: asc or desc"`
24
-
Limit*int`json:"limit,omitempty" jsonschema:"Number of items to return (max 1000)"`
25
-
Offset*int`json:"offset,omitempty" jsonschema:"Position of the first item to return"`
26
-
Tagsstring`json:"tags,omitempty" jsonschema:"Tags by which to segment the analytics"`
17
+
Indexstring`json:"index" jsonschema:"Index name"`
18
+
ClickAnalytics*bool`json:"clickAnalytics,omitempty" jsonschema:"Whether to include metrics related to click and conversion events in the response"`
19
+
RevenueAnalytics*bool`json:"revenueAnalytics,omitempty" jsonschema:"Whether to include metrics related to revenue events in the response"`
20
+
StartDatestring`json:"startDate,omitempty" jsonschema:"Start date of the period to analyze, in YYYY-MM-DD format"`
21
+
EndDatestring`json:"endDate,omitempty" jsonschema:"End date of the period to analyze, in YYYY-MM-DD format"`
22
+
OrderBystring`json:"orderBy,omitempty" jsonschema:"Attribute by which to order the response items (searchCount, clickThroughRate, conversionRate, averageClickPosition)"`
23
+
Directionstring`json:"direction,omitempty" jsonschema:"Sorting direction of the results: asc or desc"`
24
+
Limit*int`json:"limit,omitempty" jsonschema:"Number of items to return (max 1000)"`
25
+
Offset*int`json:"offset,omitempty" jsonschema:"Position of the first item to return"`
26
+
Tagsstring`json:"tags,omitempty" jsonschema:"Tags by which to segment the analytics"`
27
27
}
28
28
29
29
// RegisterGetTopSearches registers the get_top_searches tool with the MCP server.
0 commit comments