All docs
Reference

GitHub tools: every read and write tool the agent and MCP can call

TL;DR

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)

ToolWhat it does
github__meThe connected GitHub user: login, name, organizations, the token's granted scopes and the remaining API rate limit.
github__list_reposRepositories the login can see (private ones only with the repo scope); name, visibility, default…
github__get_repoOne repository: description, default branch, visibility, topics, open issues, stars / forks, homepage
github__list_issuesIssues of a repository (pull requests left out unless includePullRequests:true): number, title, state, labels, assignees, dates.
github__get_issueONE issue by number: title, state, body, labels, assignees, comments count, dates, html_url.
github__list_pull_requestsPull requests of a repository: number, title, state, draft, base / head branch, author, merged_at, dates.
github__get_pull_requestONE pull request by number: title, state, body, base / head, mergeable, merged_at, additions / deletions / changed files.
github__list_commitsCommits of a repository, newest first: sha, the message's first line, author, date, html_url.
github__list_releasesReleases of a repository, newest first: tag_name, name, draft, prerelease, published_at, assets count, html_url.
github__list_workflow_runsGitHub Actions workflow runs of a repository: id, name, event, status, conclusion, head_branch, run_started_at, html_url.
github__get_fileGet file
github__searchGitHub search (30 requests a minute): kind = repositories / issues / code / commits with a GitHub query string q.
github__repo_trafficRepository traffic for the last 14 days: views and clones per day (count + uniques), top referrers, top paths.
github__list_branchesBranches of a repository: name, head sha, protected, and which one is the default branch.
github__get_treeThe file tree (path, type blob/tree, size, sha) at ref (default branch when omitted); truncated is…
github__getANY GitHub REST read by path with the login's token.
github__list_collaboratorsDirect 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.

ToolApprovalWhat it does
github__create_issueApproval settingOpen an issue.
github__comment_on_issueApproval settingComment on an issue or pull request.
github__update_issueApproval settingEdit an issue.
github__create_releaseApproval settingCreate a release as a DRAFT by default.
github__create_branchApproval settingCreate a NEW branch.
github__put_fileApproval settingCreate or update ONE file (≤ 200 KB) on "branch" — NEVER the default branch (refused); the current sha…
github__create_pull_requestApproval settingOpen a pull request, DRAFT by default.
github__add_collaboratorPerson approvesInvite 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_collaboratorPerson approvesRevoke 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.

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.
Use the GitHub tools

Run them through the in-app agent, or call them from Claude, ChatGPT, Codex or Cursor over the hosted MCP server.