Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Restore a package for a user
GITHUB_RESTORE_A_PACKAGE_FOR_A_USERRestores a user-owned package previously deleted from GitHub Packages, if restorable under GitHub's data retention policy (typically within 30 days of deletion).
Restore a package for the authenticated user
GITHUB_RESTORE_A_PACKAGE_FOR_THE_AUTHENTICATED_USERRestores a package deleted by the authenticated user within the last 30 days, if its namespace and version are still available.
Restore a package version for the authenticated user
GITHUB_RESTORE_A_PACKAGE_VERSION_FOR_THE_AUTHENTICATED_USERRestores a package version that was deleted by the authenticated user within the last 30 days.
Restore package version for an organization
GITHUB_RESTORE_PACKAGE_VERSION_FOR_AN_ORGANIZATIONRestores a package version for an organization, provided it was deleted within the last 30 days.
Restore package version for a user
GITHUB_RESTORE_PACKAGE_VERSION_FOR_A_USERRestores a specific, user-owned package version if it was deleted within the last 30 days and its original namespace and version name are still available.
Retire Sponsors Tier
GITHUB_RETIRE_SPONSORS_TIERTool to retire a published payment tier from your GitHub Sponsors profile using GraphQL. Use when you need to prevent a tier from being used for new sponsorships. Existing sponsors at this tier remain unaffected.
Review access with personal token
GITHUB_REVIEW_ACCESS_WITH_PERSONAL_TOKENApproves or denies a pending fine-grained personal access token request for organization resources; must be performed by a GitHub App.
Review Custom Deployment Rules For Workflow Run
GITHUB_REVIEW_DEPLOYMENT_PROTECTION_RULESApproves or rejects pending custom deployment protection rules for a workflow run. This endpoint allows GitHub Apps to review their own pending custom deployment protection rules for a specific workflow run. The review can either approve (allowing the deployment to proceed) or reject (blocking the deployment). **Important notes:** - GitHub Apps can only review their own custom deployment protection rules - This endpoint requires GitHub App installation access tokens with Deployments permission (write) - Custom deployment protection rules are available in public repos for all plans; for private/internal repos, GitHub Enterprise is required - Returns 204 No Content on success
Review pending deployments for a workflow run
GITHUB_REVIEW_PENDING_DEPLOYMENTS_FOR_A_WORKFLOW_RUNApproves or rejects pending deployments for a specific workflow run that are in a 'waiting' state within specified, configured environments.
Review PAT Requests in Bulk
GITHUB_REVIEW_RESOURCE_REQUESTS_WITH_FINE_GRAINED_TOKENSSubmits a bulk approval or denial of fine-grained personal access token requests for a GitHub organization. The returned success message indicates acceptance for processing, not confirmation that every request has been processed.
Revoke an installation access token
GITHUB_REVOKE_AN_INSTALLATION_ACCESS_TOKENRevokes the GitHub App's current installation access token, immediately invalidating it for API authentication. IMPORTANT: This endpoint requires a GitHub App installation access token (ghs_* prefix) for authentication. OAuth tokens (gho_*) or personal access tokens are not supported and will result in a 403 Forbidden error. After successful revocation, the token becomes permanently invalid and cannot be used for any subsequent API calls. To continue API operations, a new installation access token must be generated.
Run GraphQL Query
GITHUB_RUN_GRAPH_QL_QUERYTool to run an arbitrary GitHub GraphQL v4 query or mutation. Use when fetching multiple datasets in one batch. Cost-based rate limit: ~5,000 points/hour; keep field selections narrow, avoid deep nesting, and include rateLimit in responses to monitor quota. Responses are nested under data.data (e.g., data.data.repository.vulnerabilityAlerts); always inspect the errors array even on HTTP 200, as partial failures embed there. Paginate by looping on pageInfo.hasNextPage and advancing with pageInfo.endCursor. Search results cap at ~1,000 items per query; split by label, date range, or repository for full coverage. Use ProjectV2 nodes, not Classic Projects (deprecated). Parallel mutations (e.g., addProjectV2ItemById) can trigger transient conflicts; use sequential execution.
Run GraphQL Relay Query
GITHUB_RUN_GRAPH_QL_RELAY_QUERYRuns a supplied GitHub GraphQL query or mutation, including queries that access root fields through the relay context. The response may include GraphQL errors alongside data.
Search code
GITHUB_SEARCH_CODESearches code file contents and paths on the default branch of GitHub repositories using a query string; searches only files under 384KB, returns max 1000 results by best match, and is optimized for precision.
Search code (all pages)
GITHUB_SEARCH_CODE_ALL_PAGESSearches GitHub code across multiple pages, optionally capped by a result limit; results may be partial, including because of GitHub's approximately 1,000-result cap and default-branch indexing. Queries combining parentheses with AND, OR, or NOT are rejected by the tool.
Search commits
GITHUB_SEARCH_COMMITSFinds commits on GitHub using a query string (q) supporting keywords and qualifiers, with options for sorting and pagination.
Search commits by author across repos
GITHUB_SEARCH_COMMITS_BY_AUTHORSearches commits across GitHub repositories using keywords and qualifiers such as author, committer email, organization, or date range. Results can be sorted by author or committer date and returned in pages of up to 100 commits.
GitHub GraphQL Search
GITHUB_SEARCH_GITHUB_GRAPHQLTool to perform GitHub GraphQL searches across issues, pull requests, repositories, users, and discussions. Returns up to 1,000 results with cursor-based pagination. Use when you need structured search results with specific fields.
Search issues and pull requests
GITHUB_SEARCH_ISSUESSearches GitHub issues and pull requests using keywords and qualifiers, with sorting and pagination. Results are limited to accessible repositories and may be incomplete or subject to GitHub search limits.
Search issues and pull requests
GITHUB_SEARCH_ISSUES_AND_PULL_REQUESTSSearches GitHub for issues and pull requests using keywords and qualifiers, with sorting and pagination. Standalone issue or pull request type filters must be combined with another term; @me is resolved by GitHub.