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: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -976,7 +976,7 @@ The following sets of tools are available:
976
976
-`owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
977
977
-`page`: Page number for pagination (min 1) (number, optional)
978
978
-`perPage`: Results per page for pagination (min 1, max 100) (number, optional)
979
-
-`query`: Search query using GitHub issues search syntax (string, required)
979
+
-`query`: The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR. (string, required)
980
980
-`repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
981
981
-`sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/search_issues.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
"readOnlyHint": true,
5
5
"title": "Search issues"
6
6
},
7
-
"description": "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue",
7
+
"description": "Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue.",
8
8
"inputSchema": {
9
9
"properties": {
10
10
"fields": {
@@ -64,7 +64,7 @@
64
64
"type": "number"
65
65
},
66
66
"query": {
67
-
"description": "Search query using GitHub issues search syntax",
67
+
"description": "The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR.",
// The two search engines want opposite things from a caller, so steering advice
1599
+
// for one is counterproductive for the other: semantic rewards paraphrased
1600
+
// natural language and degrades on boolean operators, while lexical needs the
1601
+
// caller's literal keywords and handles OR fine. The description has to describe
1602
+
// the engine the host will actually use.
1603
+
const (
1604
+
searchIssuesSemanticDescription="Search issues using natural-language semantic matching. Best for conceptual or paraphrased queries (e.g. \"login fails after password reset\"). Already scoped to is:issue."
1605
+
searchIssuesLexicalDescription="Search for issues in GitHub repositories using issues search syntax already scoped to is:issue"
1606
+
1607
+
searchIssuesSemanticQueryDescription="The search query, as natural language. When the user gives alternative wordings, include them as plain words rather than joining them with OR."
1608
+
searchIssuesLexicalQueryDescription="Search query using GitHub issues search syntax"
1609
+
)
1610
+
1598
1611
// SearchIssues creates a tool to search for issues.
0 commit comments