@@ -714,7 +714,11 @@ func GetIssueComments(getClient GetClientFn, t translations.TranslationHelperFun
714714// GetIssueTimeline creates a tool to get timeline for a GitHub issue.
715715func GetIssueTimeline (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
716716 return mcp .NewTool ("get_issue_timeline" ,
717- mcp .WithDescription (t ("TOOL_GET_ISSUE_TIMELINE_DESCRIPTION" , "Get timeline for a GitHub issue" )),
717+ mcp .WithDescription (t ("TOOL_GET_ISSUE_TIMELINE_DESCRIPTION" , "Get timeline of a specific issue in a GitHub repository." )),
718+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
719+ Title : t ("TOOL_GET_ISSUE_TIMELINE_USER_TITLE" , "Get issue timeline" ),
720+ ReadOnlyHint : toBoolPtr (true ),
721+ }),
718722 mcp .WithString ("owner" ,
719723 mcp .Required (),
720724 mcp .Description ("Repository owner" ),
@@ -783,7 +787,11 @@ func GetIssueTimeline(getClient GetClientFn, t translations.TranslationHelperFun
783787// GetIssueEvents creates a tool to get events for a GitHub issue.
784788func GetIssueEvents (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
785789 return mcp .NewTool ("get_issue_events" ,
786- mcp .WithDescription (t ("TOOL_GET_ISSUE_EVENTS_DESCRIPTION" , "Get list of events for a GitHub issue" )),
790+ mcp .WithDescription (t ("TOOL_GET_ISSUE_EVENTS_DESCRIPTION" , "Get a list of events for a specific issue in a GitHub repository." )),
791+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
792+ Title : t ("TOOL_GET_ISSUE_EVENTS_USER_TITLE" , "Get issue events" ),
793+ ReadOnlyHint : toBoolPtr (true ),
794+ }),
787795 mcp .WithString ("owner" ,
788796 mcp .Required (),
789797 mcp .Description ("Repository owner" ),
@@ -852,7 +860,11 @@ func GetIssueEvents(getClient GetClientFn, t translations.TranslationHelperFunc)
852860// GetIssueEvent creates a tool to get an event for a GitHub issue.
853861func GetIssueEvent (getClient GetClientFn , t translations.TranslationHelperFunc ) (tool mcp.Tool , handler server.ToolHandlerFunc ) {
854862 return mcp .NewTool ("get_issue_event" ,
855- mcp .WithDescription (t ("TOOL_GET_ISSUE_EVENT_DESCRIPTION" , "Get single event for a GitHub issue" )),
863+ mcp .WithDescription (t ("TOOL_GET_ISSUE_EVENT_DESCRIPTION" , "Get a single event for an issue in a GitHub repository." )),
864+ mcp .WithToolAnnotation (mcp.ToolAnnotation {
865+ Title : t ("TOOL_GET_ISSUE_EVENT_USER_TITLE" , "Get an issue event" ),
866+ ReadOnlyHint : toBoolPtr (true ),
867+ }),
856868 mcp .WithString ("owner" ,
857869 mcp .Required (),
858870 mcp .Description ("Repository owner" ),
0 commit comments