-
Notifications
You must be signed in to change notification settings - Fork 861
Alter the description of get-me to reduce redundant repeat calls #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the description of the get_me
tool to note that its output is static unless the user updates their profile, discouraging redundant repeated calls.
- Enhanced tool description in
GetMe
to mention caching behavior - Clarified that the response won’t change unless the profile is updated
pkg/github/context_tools.go
Outdated
@@ -15,7 +15,7 @@ import ( | |||
// GetMe creates a tool to get details of the authenticated user. | |||
func GetMe(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) { | |||
return mcp.NewTool("get_me", | |||
mcp.WithDescription(t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request include \"me\", \"my\"...")), | |||
mcp.WithDescription(t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request include \"me\", \"my\"... the output will not change unless the user changes their profile, so only call this once.")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Style: replace the ellipsis and run-on sentence with two clear sentences. For example: "... "my". The output remains unchanged unless the user updates their profile, so a single call is sufficient."
mcp.WithDescription(t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request include \"me\", \"my\"... the output will not change unless the user changes their profile, so only call this once.")), | |
mcp.WithDescription(t("TOOL_GET_ME_DESCRIPTION", "Get details of the authenticated GitHub user. Use this when a request includes \"me\" or \"my\". The output will not change unless the user updates their profile. Therefore, only call this once.")), |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with copilots suggestions (or at least, includes
typo).
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
b90eafe
to
eefc39a
Compare
A lot of times the get-me tool is called multiple times in a row, which is redundant. This attempts to address this, by explaining to the model it will not be updated normally.