GitHub tools: every read and write tool the agent and MCP can call
17 read and 9 write tools. Read and write support for the operations listed.
Support and limitations
- Read and write support for the operations listed.
- Permissions: the connected login's role and the permissions it granted decide what each tool can read or change. A tool the login cannot use answers with what is missing; it never works around it.
- Approvals: in the app, changes wait for approval unless the task runs with auto-approve. Over MCP and REST they follow the credential's setting (an API key applies ordinary changes at once unless it is set to require approval; a third-party OAuth connection waits). 2 writes are marked “Person approves”: they wait for a person on every lane — only the workspace's own OAuth app and an API key an admin set to apply changes you can't take back skip that wait. Forbidden Rules can block any of them.
- Operations the platform's API does not offer, and operations not in the catalog, are not available through these tools.
Read tools (17)
| Tool | What it does |
|---|---|
github__me | The connected GitHub user: login, name, organizations, the token's granted scopes and the remaining API rate limit. |
github__list_repos | Repositories the login can see (private ones only with the repo scope); name, visibility, default… |
github__get_repo | One repository: description, default branch, visibility, topics, open issues, stars / forks, homepage |
github__list_issues | Issues of a repository (pull requests left out unless includePullRequests:true): number, title, state, labels, assignees, dates. |
github__get_issue | ONE issue by number: title, state, body, labels, assignees, comments count, dates, html_url. |
github__list_pull_requests | Pull requests of a repository: number, title, state, draft, base / head branch, author, merged_at, dates. |
github__get_pull_request | ONE pull request by number: title, state, body, base / head, mergeable, merged_at, additions / deletions / changed files. |
github__list_commits | Commits of a repository, newest first: sha, the message's first line, author, date, html_url. |
github__list_releases | Releases of a repository, newest first: tag_name, name, draft, prerelease, published_at, assets count, html_url. |
github__list_workflow_runs | GitHub Actions workflow runs of a repository: id, name, event, status, conclusion, head_branch, run_started_at, html_url. |
github__get_file | Get file |
github__search | GitHub search (30 requests a minute): kind = repositories / issues / code / commits with a GitHub query string q. |
github__repo_traffic | Repository traffic for the last 14 days: views and clones per day (count + uniques), top referrers, top paths. |
github__list_branches | Branches of a repository: name, head sha, protected, and which one is the default branch. |
github__get_tree | The file tree (path, type blob/tree, size, sha) at ref (default branch when omitted); truncated is… |
github__get | ANY GitHub REST read by path with the login's token. |
github__list_collaborators | Direct collaborators of a repository with their permission (admin / maintain / push / triage / pull). |
Write tools (9)
A write marked “Person approves” waits for a person on every lane; the others follow the approval setting of the app or the credential.
| Tool | Approval | What it does |
|---|---|---|
github__create_issue | Approval setting | Open an issue. |
github__comment_on_issue | Approval setting | Comment on an issue or pull request. |
github__update_issue | Approval setting | Edit an issue. |
github__create_release | Approval setting | Create a release as a DRAFT by default. |
github__create_branch | Approval setting | Create a NEW branch. |
github__put_file | Approval setting | Create or update ONE file (≤ 200 KB) on "branch" — NEVER the default branch (refused); the current sha… |
github__create_pull_request | Approval setting | Open a pull request, DRAFT by default. |
github__add_collaborator | Person approves | Invite a GitHub user to the repository, or change a collaborator's permission (pull / triage / push / maintain — admin is never granted by the agent). |
github__revoke_collaborator | Person approves | Revoke a collaborator's access (nothing in the repository is deleted); never an admin or the connection's own login. |
Authorized raw requests
github__raw_request takes a request in GitHub's own format and routes it through the family's own gateway tool, so the same account binding, approvals and refusals apply. It needs the tools:raw scope and is found through search_tools or the REST tool list. It reads only: GitHub changes go through the typed tools (create_branch, put_file on a non-default branch, a DRAFT pull request); merges, deletes and the default branch are never written.
Related pages
Frequently asked questions
- How many GitHub tools are there?
- 26: 17 read and 9 write, of which 2 always wait for a person. The list on this page is the complete catalog for GitHub.
- Can an agent call the GitHub API directly?
- github__raw_request takes a request in GitHub's own format and routes it through the family's own gateway tool, so the same account binding, approvals and refusals apply. It needs the tools:raw scope and is found through search_tools or the REST tool list. It reads only: GitHub changes go through the typed tools (create_branch, put_file on a non-default branch, a DRAFT pull request); merges, deletes and the default branch are never written.