Skip to main content
Complete reference for all tools provided by the Greptile MCP server.
Repository parameters (name, remote, defaultBranch) must be provided together or omitted entirely.

Pull Request Tools

list_pull_requests / list_merge_requests

List PRs with optional filtering. Both tool names work identically.
Merged PRs also appear under state: "closed".

get_merge_request

Get detailed PR information including review analysis.

list_merge_request_comments

Get all comments for a PR with filtering options.
Two Greptile identities: PR summaries come from greptile-apps[bot], inline comments from greptile-apps. Use isGreptileComment: true to catch both.

Code Review Tools

list_code_reviews

List code reviews with optional filtering.
Status values: PENDING, REVIEWING_FILES, GENERATING_SUMMARY, COMPLETED, FAILED, SKIPPED

get_code_review

Get detailed information for a specific code review.

trigger_code_review

Start a new code review on a PR.
defaultBranch is required despite appearing optional. Omitting it returns: MCP error -32000: invalid_type - defaultBranch Required

Comment Search Tool

search_greptile_comments

Search across all Greptile comments.

Custom Context Tools

list_custom_context

List your organization’s coding patterns.

get_custom_context

Get details for a specific pattern.

search_custom_context

Search patterns by content.

create_custom_context

Create a new coding pattern.
Scope structure:
There’s no delete_custom_context tool. To disable a pattern, set status: "INACTIVE".

Error Handling

Standard JSON-RPC error format:
Common Error Codes: