Skip to content

Commit 6176fd9

Browse files
committed
Clarify tool description
1 parent cccc050 commit 6176fd9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/github/issues.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ func ListIssueTypes(getClient GetClientFn, t translations.TranslationHelperFunc)
499499
// AddIssueComment creates a tool to add a comment to an issue.
500500
func AddIssueComment(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
501501
return mcp.NewTool("add_issue_comment",
502-
mcp.WithDescription(t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment to a specific issue in a GitHub repository.")),
502+
mcp.WithDescription(t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.")),
503503
mcp.WithToolAnnotation(mcp.ToolAnnotation{
504504
Title: t("TOOL_ADD_ISSUE_COMMENT_USER_TITLE", "Add comment to issue"),
505505
ReadOnlyHint: ToBoolPtr(false),

0 commit comments

Comments
 (0)