Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SamMorrowDrums merged 3 commits intomainfromget-me-description
May 19, 2025

Conversation

SamMorrowDrums
Copy link
Collaborator

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.

@CopilotCopilotAI review requested due to automatic review settingsMay 19, 2025 10:59
@SamMorrowDrumsSamMorrowDrums requested a review froma team as acode ownerMay 19, 2025 10:59
Copy link
Contributor

@CopilotCopilotAI left a 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 theget_me tool to note that its output is static unless the user updates their profile, discouraging redundant repeated calls.

  • Enhanced tool description inGetMe to mention caching behavior
  • Clarified that the response won’t change unless the profile is updated

@@ -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.")),
Copy link
Preview

CopilotAIMay 19, 2025

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."

Suggested change
mcp.WithDescription(t("TOOL_GET_ME_DESCRIPTION","Get details of the authenticated GitHub user. Use this when a requestinclude\"me\",\"my\"... the output will not change unless the userchanges 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 requestincludes\"me\" or\"my\". The output will not change unless the userupdates their profile. Therefore, only call this once.")),

Copilot uses AI. Check for mistakes.

williammartin
williammartin previously approved these changesMay 19, 2025
Copy link
Collaborator

@williammartinwilliammartin left a 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).

@SamMorrowDrumsSamMorrowDrums merged commit50043c3 intomainMay 19, 2025
16 checks passed
@SamMorrowDrumsSamMorrowDrums deleted the get-me-description branchMay 19, 2025 15:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@williammartinwilliammartinwilliammartin approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@SamMorrowDrums@williammartin

[8]ページ先頭

©2009-2025 Movatter.jp