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/github/__toolsnaps__/discussion_comment_write.snap
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
"destructiveHint": true,
4
4
"title": "Manage discussion comments"
5
5
},
6
-
"description": "Write operations for discussion comments.\nSupports adding top-level comments, replying to existing comments, updating comment content, deleting comments, and marking or unmarking comments as the answer.",
6
+
"description": "Write-only operations for discussion comments.\nUse only when the user explicitly asks to add a comment, reply, update, delete, mark as answer, or unmark as answer.\nDo not use this to read, list, get, summarize, count, search, or inspect discussion comments; use get_discussion_comments for read-only comment requests.",
7
7
"inputSchema": {
8
8
"properties": {
9
9
"body": {
@@ -15,7 +15,7 @@
15
15
"type": "string"
16
16
},
17
17
"discussionNumber": {
18
-
"description": "Discussion number (required for 'add' and 'reply' methods)",
18
+
"description": "Discussion number from the URL path after /discussions/ (required for 'add' and 'reply' methods). This is not a node ID.",
19
19
"type": "number"
20
20
},
21
21
"method": {
@@ -31,11 +31,11 @@
31
31
"type": "string"
32
32
},
33
33
"owner": {
34
-
"description": "Repository owner (required for 'add' and 'reply' methods)",
34
+
"description": "Repository owner or organization login (required for 'add' and 'reply' methods). For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use ORG.",
35
35
"type": "string"
36
36
},
37
37
"repo": {
38
-
"description": "Repository name (required for 'add' and 'reply' methods)",
38
+
"description": "Repository name (required for 'add' and 'reply' methods). For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use .github.",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/get_discussion.snap
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,19 @@
3
3
"readOnlyHint": true,
4
4
"title": "Get discussion"
5
5
},
6
-
"description": "Get a specific discussion by ID. Does not return comments.",
6
+
"description": "Get a specific discussion by owner, repository, and discussion number.\nReturns discussion metadata such as title, body, URL, status, category, and timestamps.\nDoes not return comments, replies, or comment counts. Do not use this for requests to read, list, summarize, count, or inspect discussion comments; use get_discussion_comments instead.",
7
7
"inputSchema": {
8
8
"properties": {
9
9
"discussionNumber": {
10
-
"description": "Discussion Number",
10
+
"description": "Discussion number from the URL path after /discussions/. This is not a node ID.",
11
11
"type": "number"
12
12
},
13
13
"owner": {
14
-
"description": "Repository owner",
14
+
"description": "Repository owner or organization login. For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use ORG.",
15
15
"type": "string"
16
16
},
17
17
"repo": {
18
-
"description": "Repository name",
18
+
"description": "Repository name. For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use .github.",
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/get_discussion_comments.snap
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,33 +3,33 @@
3
3
"readOnlyHint": true,
4
4
"title": "Get discussion comments"
5
5
},
6
-
"description": "Get comments from a discussion",
6
+
"description": "Get/list comments for a specific discussion by owner, repository, and discussion number.\nUse this when the user asks to read, list, summarize, count, inspect, filter, or find what someone said in discussion comments.\nReturns top-level comments, pagination information, and totalCount. Can include replies only when includeReplies is explicitly requested.\nDo not call get_discussion first for comment-related requests; this tool is sufficient.",
7
7
"inputSchema": {
8
8
"properties": {
9
9
"after": {
10
10
"description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs.",
11
11
"type": "string"
12
12
},
13
13
"discussionNumber": {
14
-
"description": "Discussion Number",
14
+
"description": "Discussion number from the URL path after /discussions/. This is not a node ID.",
15
15
"type": "number"
16
16
},
17
17
"includeReplies": {
18
-
"description": "When true, each top-level comment will include its replies nested within it (up to 100 replies per comment, which is the GitHub API maximum). Defaults to false.",
18
+
"description": "Optional. Set true only when the user explicitly asks to include replies. Set false when the user explicitly asks to exclude replies. Omit when replies are not mentioned.",
19
19
"type": "boolean"
20
20
},
21
21
"owner": {
22
-
"description": "Repository owner",
22
+
"description": "Repository owner or organization login. For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use ORG.",
23
23
"type": "string"
24
24
},
25
25
"perPage": {
26
-
"description": "Results per page for pagination (min 1, max 100)",
26
+
"description": "Optional page size. Do not provide unless the user explicitly asks for a page size, limit, first N comments, or pagination.",
27
27
"maximum": 100,
28
28
"minimum": 1,
29
29
"type": "number"
30
30
},
31
31
"repo": {
32
-
"description": "Repository name",
32
+
"description": "Repository name. For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use .github.",
Description: t("TOOL_GET_DISCUSSION_DESCRIPTION", "Get a specific discussion by ID. Does not return comments."),
284
+
Name: "get_discussion",
285
+
Description: t("TOOL_GET_DISCUSSION_DESCRIPTION", `Get a specific discussion by owner, repository, and discussion number.
286
+
Returns discussion metadata such as title, body, URL, status, category, and timestamps.
287
+
Does not return comments, replies, or comment counts. Do not use this for requests to read, list, summarize, count, or inspect discussion comments; use get_discussion_comments instead.`),
Description: "Repository owner or organization login. For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use ORG.",
393
+
},
394
+
"repo": {
395
+
Type: "string",
396
+
Description: "Repository name. For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use .github.",
397
+
},
398
+
"discussionNumber": {
399
+
Type: "number",
400
+
Description: "Discussion number from the URL path after /discussions/. This is not a node ID.",
401
+
},
402
+
"includeReplies": {
403
+
Type: "boolean",
404
+
Description: "Optional. Set true only when the user explicitly asks to include replies. Set false when the user explicitly asks to exclude replies. Omit when replies are not mentioned.",
schema.Properties["perPage"].Description="Optional page size. Do not provide unless the user explicitly asks for a page size, limit, first N comments, or pagination."
410
+
385
411
returnNewTool(
386
412
ToolsetMetadataDiscussions,
387
413
mcp.Tool{
388
-
Name: "get_discussion_comments",
389
-
Description: t("TOOL_GET_DISCUSSION_COMMENTS_DESCRIPTION", "Get comments from a discussion"),
414
+
Name: "get_discussion_comments",
415
+
Description: t("TOOL_GET_DISCUSSION_COMMENTS_DESCRIPTION", `Get/list comments for a specific discussion by owner, repository, and discussion number.
416
+
Use this when the user asks to read, list, summarize, count, inspect, filter, or find what someone said in discussion comments.
417
+
Returns top-level comments, pagination information, and totalCount. Can include replies only when includeReplies is explicitly requested.
418
+
Do not call get_discussion first for comment-related requests; this tool is sufficient.`),
Description: "When true, each top-level comment will include its replies nested within it (up to 100 replies per comment, which is the GitHub API maximum). Defaults to false.",
Description: t("TOOL_DISCUSSION_COMMENT_WRITE_DESCRIPTION", `Write operations for discussion comments.
594
-
Supports adding top-level comments, replying to existing comments, updating comment content, deleting comments, and marking or unmarking comments as the answer.`),
601
+
Description: t("TOOL_DISCUSSION_COMMENT_WRITE_DESCRIPTION", `Write-only operations for discussion comments.
602
+
Use only when the user explicitly asks to add a comment, reply, update, delete, mark as answer, or unmark as answer.
603
+
Do not use this to read, list, get, summarize, count, search, or inspect discussion comments; use get_discussion_comments for read-only comment requests.`),
Description: "Repository owner (required for 'add' and 'reply' methods)",
627
+
Description: "Repository owner or organization login (required for 'add' and 'reply' methods). For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use ORG.",
619
628
},
620
629
"repo": {
621
630
Type: "string",
622
-
Description: "Repository name (required for 'add' and 'reply' methods)",
631
+
Description: "Repository name (required for 'add' and 'reply' methods). For org-level discussion URLs like https://github.com/orgs/ORG/discussions/NUMBER, use .github.",
623
632
},
624
633
"discussionNumber": {
625
634
Type: "number",
626
-
Description: "Discussion number (required for 'add' and 'reply' methods)",
635
+
Description: "Discussion number from the URL path after /discussions/ (required for 'add' and 'reply' methods). This is not a node ID.",
0 commit comments