Skip to content

Commit 15c2a5d

Browse files
committed
Clarify tool parameter schemas
1 parent 2bd162a commit 15c2a5d

47 files changed

Lines changed: 165 additions & 134 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ The following sets of tools are available:
621621
- `inputs`: Inputs the workflow accepts. Only used for 'run_workflow' method. (object, optional)
622622
- `method`: The method to execute (string, required)
623623
- `owner`: Repository owner (string, required)
624-
- `ref`: The git reference for the workflow. The reference can be a branch or tag name. Required for 'run_workflow' method. (string, optional)
624+
- `ref`: Branch or tag name to run the workflow on. Required for 'run_workflow' method. (string, optional)
625625
- `repo`: Repository name (string, required)
626626
- `run_id`: The ID of the workflow run. Required for all methods except 'run_workflow'. (number, optional)
627627
- `workflow_id`: The workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml). Required for 'run_workflow' method. (string, optional)
@@ -655,7 +655,7 @@ The following sets of tools are available:
655655
- `owner`: The owner of the repository. (string, required)
656656
- `page`: Page number for pagination (min 1) (number, optional)
657657
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
658-
- `ref`: The Git reference for the results you want to list. (string, optional)
658+
- `ref`: Git ref to filter by, e.g. refs/heads/main or refs/pull/123/merge. (string, optional)
659659
- `repo`: The name of the repository. (string, required)
660660
- `severity`: Filter code scanning alerts by severity (string, optional)
661661
- `state`: Filter code scanning alerts by state. Defaults to open (string, optional)
@@ -689,7 +689,7 @@ The following sets of tools are available:
689689

690690
- **assign_copilot_to_issue** - Assign Copilot to issue
691691
- **Required OAuth Scopes**: `repo`
692-
- `base_ref`: Git reference (e.g., branch) that the agent will start its work from. If not specified, defaults to the repository's default branch (string, optional)
692+
- `base_ref`: Branch or ref the agent starts from; defaults to the repository default branch (string, optional)
693693
- `custom_instructions`: Optional custom instructions to guide the agent beyond the issue body. Use this to provide additional context, constraints, or guidance that is not captured in the issue description (string, optional)
694694
- `issue_number`: Issue number (number, required)
695695
- `owner`: Repository owner (string, required)
@@ -732,7 +732,7 @@ The following sets of tools are available:
732732

733733
- **discussion_comment_write** - Manage discussion comments
734734
- **Required OAuth Scopes**: `repo`
735-
- `body`: Comment content (required for 'add', 'reply', and 'update' methods) (string, optional)
735+
- `body`: Comment content. Markdown supported. Required for 'add', 'reply', and 'update' methods. (string, optional)
736736
- `commentNodeID`: The Node ID of the discussion comment (required for 'reply', 'update', 'delete', 'mark_answer', and 'unmark_answer' methods). For 'reply', this is the top-level comment to reply to; GitHub Discussions only support one level of nesting. (string, optional)
737737
- `discussionNumber`: Discussion number (required for 'add' and 'reply' methods) (number, optional)
738738
- `method`: Write operation to perform on a discussion comment.
@@ -785,7 +785,7 @@ The following sets of tools are available:
785785

786786
- **create_gist** - Create Gist
787787
- **Required OAuth Scopes**: `gist`
788-
- `content`: Content for simple single-file gist creation (string, required)
788+
- `content`: Raw content for the single gist file (string, required)
789789
- `description`: Description of the gist (string, optional)
790790
- `filename`: Filename for simple single-file gist creation (string, required)
791791
- `public`: Whether the gist is public (boolean, optional)
@@ -801,7 +801,7 @@ The following sets of tools are available:
801801

802802
- **update_gist** - Update Gist
803803
- **Required OAuth Scopes**: `gist`
804-
- `content`: Content for the file (string, required)
804+
- `content`: Raw content for the gist file (string, required)
805805
- `description`: Updated description of the gist (string, optional)
806806
- `filename`: Filename to update or create (string, required)
807807
- `gist_id`: ID of the gist to update (string, required)
@@ -828,7 +828,7 @@ The following sets of tools are available:
828828

829829
- **add_issue_comment** - Add comment to issue
830830
- **Required OAuth Scopes**: `repo`
831-
- `body`: Comment content (string, required)
831+
- `body`: Comment body; Markdown supported. (string, required)
832832
- `issue_number`: Issue number to comment on (number, required)
833833
- `owner`: Repository owner (string, required)
834834
- `repo`: Repository name (string, required)
@@ -857,7 +857,7 @@ The following sets of tools are available:
857857
- **issue_write** - Create or update issue
858858
- **Required OAuth Scopes**: `repo`
859859
- `assignees`: Usernames to assign to this issue (string[], optional)
860-
- `body`: Issue body content (string, optional)
860+
- `body`: Issue body; Markdown supported. (string, optional)
861861
- `duplicate_of`: Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'. (number, optional)
862862
- `issue_number`: Issue number to update (number, optional)
863863
- `labels`: Labels to apply to this issue (string[], optional)
@@ -897,7 +897,7 @@ The following sets of tools are available:
897897
- `owner`: Optional repository owner. If provided with repo, only issues for this repository are listed. (string, optional)
898898
- `page`: Page number for pagination (min 1) (number, optional)
899899
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
900-
- `query`: Search query using GitHub issues search syntax (string, required)
900+
- `query`: Search query using GitHub issues search syntax. The tool adds is:issue and, when owner/repo are provided, repo:owner/repo; examples: "crash label:bug", "author:octocat updated:>=2024-01-01". (string, required)
901901
- `repo`: Optional repository name. If provided with owner, only issues for this repository are listed. (string, optional)
902902
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
903903

@@ -1062,7 +1062,7 @@ The following sets of tools are available:
10621062

10631063
- **add_comment_to_pending_review** - Add review comment to the requester's latest pending pull request review
10641064
- **Required OAuth Scopes**: `repo`
1065-
- `body`: The text of the review comment (string, required)
1065+
- `body`: Review comment body; Markdown supported (string, required)
10661066
- `line`: The line of the blob in the pull request diff that the comment applies to. For multi-line comments, the last line of the range (number, optional)
10671067
- `owner`: Repository owner (string, required)
10681068
- `path`: The relative path to the file that necessitates a comment (string, required)
@@ -1075,28 +1075,28 @@ The following sets of tools are available:
10751075

10761076
- **add_reply_to_pull_request_comment** - Add reply to pull request comment
10771077
- **Required OAuth Scopes**: `repo`
1078-
- `body`: The text of the reply (string, required)
1078+
- `body`: Reply body; Markdown supported (string, required)
10791079
- `commentId`: The ID of the comment to reply to (number, required)
10801080
- `owner`: Repository owner (string, required)
10811081
- `pullNumber`: Pull request number (number, required)
10821082
- `repo`: Repository name (string, required)
10831083

10841084
- **create_pull_request** - Open new pull request
10851085
- **Required OAuth Scopes**: `repo`
1086-
- `base`: Branch to merge into (string, required)
1087-
- `body`: PR description (string, optional)
1086+
- `base`: Base branch name to merge into, e.g. main (string, required)
1087+
- `body`: PR description; Markdown supported (string, optional)
10881088
- `draft`: Create as draft PR (boolean, optional)
1089-
- `head`: Branch containing changes (string, required)
1089+
- `head`: Branch containing changes, or owner:branch for a fork (string, required)
10901090
- `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
10911091
- `owner`: Repository owner (string, required)
10921092
- `repo`: Repository name (string, required)
10931093
- `title`: PR title (string, required)
10941094

10951095
- **list_pull_requests** - List pull requests
10961096
- **Required OAuth Scopes**: `repo`
1097-
- `base`: Filter by base branch (string, optional)
1097+
- `base`: Filter by base branch name. (string, optional)
10981098
- `direction`: Sort direction (string, optional)
1099-
- `head`: Filter by head user/org and branch (string, optional)
1099+
- `head`: Filter by head user/org and branch, in user:branch format. (string, optional)
11001100
- `owner`: Repository owner (string, required)
11011101
- `page`: Page number for pagination (min 1) (number, optional)
11021102
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
@@ -1150,13 +1150,13 @@ The following sets of tools are available:
11501150
- `owner`: Optional repository owner. If provided with repo, only pull requests for this repository are listed. (string, optional)
11511151
- `page`: Page number for pagination (min 1) (number, optional)
11521152
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1153-
- `query`: Search query using GitHub pull request search syntax (string, required)
1153+
- `query`: Search query using GitHub pull request search syntax. Qualifiers such as is:pr and repo:owner/repo are applied automatically when appropriate; examples: "review-requested:@me", "author:octocat updated:>=2024-01-01". (string, required)
11541154
- `repo`: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
11551155
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)
11561156

11571157
- **update_pull_request** - Edit pull request
11581158
- **Required OAuth Scopes**: `repo`
1159-
- `base`: New base branch name (string, optional)
1159+
- `base`: New base branch name, e.g. main. (string, optional)
11601160
- `body`: New description (string, optional)
11611161
- `draft`: Mark pull request as draft (true) or ready for review (false) (boolean, optional)
11621162
- `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
@@ -1182,18 +1182,18 @@ The following sets of tools are available:
11821182

11831183
- **create_branch** - Create branch
11841184
- **Required OAuth Scopes**: `repo`
1185-
- `branch`: Name for new branch (string, required)
1186-
- `from_branch`: Source branch (defaults to repo default) (string, optional)
1185+
- `branch`: New branch name, without refs/heads/ (string, required)
1186+
- `from_branch`: Source branch name; defaults to the repository default branch (string, optional)
11871187
- `owner`: Repository owner (string, required)
11881188
- `repo`: Repository name (string, required)
11891189

11901190
- **create_or_update_file** - Create or update file
11911191
- **Required OAuth Scopes**: `repo`
1192-
- `branch`: Branch to create/update the file in (string, required)
1193-
- `content`: Content of the file (string, required)
1194-
- `message`: Commit message (string, required)
1192+
- `branch`: Branch name to create/update the file in (string, required)
1193+
- `content`: Raw file content (string, required)
1194+
- `message`: Commit message for this change (string, required)
11951195
- `owner`: Repository owner (username or organization) (string, required)
1196-
- `path`: Path where to create/update the file (string, required)
1196+
- `path`: Repository-relative file path to create or update (string, required)
11971197
- `repo`: Repository name (string, required)
11981198
- `sha`: The blob SHA of the file being replaced. Required if the file already exists. (string, optional)
11991199

@@ -1207,10 +1207,10 @@ The following sets of tools are available:
12071207

12081208
- **delete_file** - Delete file
12091209
- **Required OAuth Scopes**: `repo`
1210-
- `branch`: Branch to delete the file from (string, required)
1211-
- `message`: Commit message (string, required)
1210+
- `branch`: Branch name to delete the file from (string, required)
1211+
- `message`: Commit message for the delete commit (string, required)
12121212
- `owner`: Repository owner (username or organization) (string, required)
1213-
- `path`: Path to the file to delete (string, required)
1213+
- `path`: Repository-relative path to the file to delete (string, required)
12141214
- `repo`: Repository name (string, required)
12151215

12161216
- **fork_repository** - Fork repository
@@ -1231,7 +1231,7 @@ The following sets of tools are available:
12311231
- **get_file_contents** - Get file or directory contents
12321232
- **Required OAuth Scopes**: `repo`
12331233
- `owner`: Repository owner (username or organization) (string, required)
1234-
- `path`: Path to file/directory (string, optional)
1234+
- `path`: Repository-relative file or directory path (string, optional)
12351235
- `ref`: Accepts optional git refs such as `refs/tags/{tag}`, `refs/heads/{branch}` or `refs/pull/{pr_number}/head` (string, optional)
12361236
- `repo`: Repository name (string, required)
12371237
- `sha`: Accepts optional commit SHA. If specified, it will be used instead of ref (string, optional)
@@ -1296,7 +1296,7 @@ The following sets of tools are available:
12961296

12971297
- **push_files** - Push files to repository
12981298
- **Required OAuth Scopes**: `repo`
1299-
- `branch`: Branch to push to (string, required)
1299+
- `branch`: Branch name to push the commit to (string, required)
13001300
- `files`: Array of file objects to push, each object with path (string) and content (string) (object[], required)
13011301
- `message`: Commit message (string, required)
13021302
- `owner`: Repository owner (string, required)
@@ -1308,7 +1308,7 @@ The following sets of tools are available:
13081308
- `page`: Page number for pagination (min 1) (number, optional)
13091309
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
13101310
- `query`: Search query (GitHub code search REST). Implicit AND between terms; supports `OR`, `NOT`, and `"quoted phrase"` for exact match. Qualifiers: `repo:owner/repo`, `org:`, `user:`, `language:`, `path:dir` (prefix match), `filename:exact.ext`, `extension:`, `in:file`, `in:path`, `size:`, `is:archived`, `is:fork`. Max 256 chars. Examples: `WithContext language:go org:github`; `"package main" repo:o/r`; `func extension:go path:cmd repo:o/r`; `NOT TODO language:go repo:o/r`. (string, required)
1311-
- `sort`: Sort field ('indexed' only) (string, optional)
1311+
- `sort`: Sort field. Use 'indexed' to sort by recently indexed files. (string, optional)
13121312

13131313
- **search_commits** - Search commits
13141314
- **Required OAuth Scopes**: `repo`

docs/feature-flags.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ runtime behavior (such as output formatting) won't appear here.
3737
- **create_pull_request** - Open new pull request
3838
- **Required OAuth Scopes**: `repo`
3939
- **MCP App UI**: `ui://github-mcp-server/pr-write`
40-
- `base`: Branch to merge into (string, required)
41-
- `body`: PR description (string, optional)
40+
- `base`: Base branch name to merge into, e.g. main (string, required)
41+
- `body`: PR description; Markdown supported (string, optional)
4242
- `draft`: Create as draft PR (boolean, optional)
43-
- `head`: Branch containing changes (string, required)
43+
- `head`: Branch containing changes, or owner:branch for a fork (string, required)
4444
- `maintainer_can_modify`: Allow maintainer edits (boolean, optional)
4545
- `owner`: Repository owner (string, required)
4646
- `repo`: Repository name (string, required)
@@ -54,7 +54,7 @@ runtime behavior (such as output formatting) won't appear here.
5454
- **Required OAuth Scopes**: `repo`
5555
- **MCP App UI**: `ui://github-mcp-server/issue-write`
5656
- `assignees`: Usernames to assign to this issue (string[], optional)
57-
- `body`: Issue body content (string, optional)
57+
- `body`: Issue body; Markdown supported. (string, optional)
5858
- `duplicate_of`: Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'. (number, optional)
5959
- `issue_number`: Issue number to update (number, optional)
6060
- `labels`: Labels to apply to this issue (string[], optional)
@@ -76,7 +76,7 @@ runtime behavior (such as output formatting) won't appear here.
7676
- **issue_write** - Create or update issue
7777
- **Required OAuth Scopes**: `repo`
7878
- `assignees`: Usernames to assign to this issue (string[], optional)
79-
- `body`: Issue body content (string, optional)
79+
- `body`: Issue body; Markdown supported. (string, optional)
8080
- `duplicate_of`: Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'. (number, optional)
8181
- `issue_fields`: Issue field values to set or clear. Each item requires 'field_name' and exactly one of 'value', 'field_option_name', or 'delete: true'. (object[], optional)
8282
- `issue_number`: Issue number to update (number, optional)
@@ -125,7 +125,7 @@ runtime behavior (such as output formatting) won't appear here.
125125

126126
- **create_issue** - Create Issue
127127
- **Required OAuth Scopes**: `repo`
128-
- `body`: Issue body content (optional) (string, optional)
128+
- `body`: Issue body (optional); Markdown supported. (string, optional)
129129
- `owner`: Repository owner (username or organization) (string, required)
130130
- `repo`: Repository name (string, required)
131131
- `title`: Issue title (string, required)
@@ -162,7 +162,7 @@ runtime behavior (such as output formatting) won't appear here.
162162

163163
- **update_issue_body** - Update Issue Body
164164
- **Required OAuth Scopes**: `repo`
165-
- `body`: The new body content for the issue (string, required)
165+
- `body`: Issue body; Markdown supported. (string, required)
166166
- `issue_number`: The issue number to update (number, required)
167167
- `owner`: Repository owner (username or organization) (string, required)
168168
- `repo`: Repository name (string, required)
@@ -209,7 +209,7 @@ runtime behavior (such as output formatting) won't appear here.
209209

210210
- **add_pull_request_review_comment** - Add Pull Request Review Comment
211211
- **Required OAuth Scopes**: `repo`
212-
- `body`: The comment body (string, required)
212+
- `body`: Review comment body; Markdown supported (string, required)
213213
- `line`: The line number in the diff to comment on (optional) (number, optional)
214214
- `owner`: Repository owner (username or organization) (string, required)
215215
- `path`: The relative path of the file to comment on (string, required)
@@ -222,7 +222,7 @@ runtime behavior (such as output formatting) won't appear here.
222222

223223
- **create_pull_request_review** - Create Pull Request Review
224224
- **Required OAuth Scopes**: `repo`
225-
- `body`: The review body text (optional) (string, optional)
225+
- `body`: Review body (optional); Markdown supported (string, optional)
226226
- `commitID`: The SHA of the commit to review (optional, defaults to latest) (string, optional)
227227
- `event`: The review action to perform. If omitted, creates a pending review. (string, optional)
228228
- `owner`: Repository owner (username or organization) (string, required)
@@ -240,15 +240,15 @@ runtime behavior (such as output formatting) won't appear here.
240240
- `owner`: Repository owner (username or organization) (string, required)
241241
- `pullNumber`: The pull request number (number, required)
242242
- `repo`: Repository name (string, required)
243-
- `reviewers`: GitHub usernames to request reviews from (string[], required)
243+
- `reviewers`: GitHub usernames or ORG/team-slug team reviewers to request reviews from (string[], required)
244244

245245
- **resolve_review_thread** - Resolve Review Thread
246246
- **Required OAuth Scopes**: `repo`
247247
- `threadID`: The node ID of the review thread to resolve (e.g., PRRT_kwDOxxx) (string, required)
248248

249249
- **submit_pending_pull_request_review** - Submit Pending Pull Request Review
250250
- **Required OAuth Scopes**: `repo`
251-
- `body`: The review body text (optional) (string, optional)
251+
- `body`: Review body; Markdown supported (string, optional)
252252
- `event`: The review action to perform (string, required)
253253
- `owner`: Repository owner (username or organization) (string, required)
254254
- `pullNumber`: The pull request number (number, required)

0 commit comments

Comments
 (0)