Skip to content

Commit 29f641d

Browse files
committed
update sha arg description for list_commits, get_file_contents
1 parent 08a49b0 commit 29f641d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/github/repositories.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ func ListCommits(getClient GetClientFn, t translations.TranslationHelperFunc) (t
111111
mcp.Description("Repository name"),
112112
),
113113
mcp.WithString("sha",
114-
mcp.Description("The commit SHA, branch name, or tag name to list commits from. If not specified, defaults to the repository's default branch."),
114+
mcp.Description("Commit SHA, branch or tag name to list commits of. If not provided, uses the default branch of the repository. If a commit SHA is provided, will list commits up to that SHA."),
115115
),
116116
mcp.WithString("author",
117-
mcp.Description("Author username or email address"),
117+
mcp.Description("Author username or email address to filter commits by"),
118118
),
119119
WithPagination(),
120120
),
@@ -470,7 +470,7 @@ func GetFileContents(getClient GetClientFn, getRawClient raw.GetRawClientFn, t t
470470
mcp.Description("Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head`"),
471471
),
472472
mcp.WithString("sha",
473-
mcp.Description("Accepts optional git sha, if sha is specified it will be used instead of ref"),
473+
mcp.Description("Accepts optional commit SHA. If specified, it will be used instead of ref"),
474474
),
475475
),
476476
func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) {

0 commit comments

Comments
 (0)