Skip to content

Commit 9e283fe

Browse files
committed
feat: enhance GitHub Actions tool descriptions with enumerated options
- Updated descriptions for workflow run status and job filters to include enumerated options for clarity. - Improved documentation for better usability and understanding of available parameters.
1 parent 0701251 commit 9e283fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/github/actions.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ func ListWorkflowRuns(getClient GetClientFn, t translations.TranslationHelperFun
111111
mcp.Description("Returns workflow runs for an event. For example, push, pull_request, or issue."),
112112
),
113113
mcp.WithString("status",
114-
mcp.Description("Returns workflow runs with the check run status. For example, completed, in_progress, or requested."),
114+
mcp.Description("Returns workflow runs with the check run status"),
115+
mcp.Enum("queued", "in_progress", "completed", "requested", "waiting"),
115116
),
116117
mcp.WithNumber("per_page",
117118
mcp.Description("The number of results per page (max 100)"),
@@ -421,7 +422,8 @@ func ListWorkflowJobs(getClient GetClientFn, t translations.TranslationHelperFun
421422
mcp.Description("The unique identifier of the workflow run"),
422423
),
423424
mcp.WithString("filter",
424-
mcp.Description("Filters jobs by their completed_at timestamp. Can be one of: latest, all"),
425+
mcp.Description("Filters jobs by their completed_at timestamp"),
426+
mcp.Enum("latest", "all"),
425427
),
426428
mcp.WithNumber("per_page",
427429
mcp.Description("The number of results per page (max 100)"),

0 commit comments

Comments
 (0)