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.
ParameterTypeRequiredDescription
namestringNo*Repository name (owner/repo)
remotestringNo*github, gitlab, azure, bitbucket
defaultBranchstringNo*Default branch name
sourceBranchstringNoFilter by source branch (partial match)
authorLoginstringNoFilter by author (fuzzy match)
statestringNoopen, closed
limitnumberNoMax results (default: 20, max: 100)
offsetnumberNoPagination offset
Merged PRs also appear under state: "closed".

get_merge_request

Get detailed PR information including review analysis.
ParameterTypeRequiredDescription
namestringYesRepository name (owner/repo)
remotestringYesgithub, gitlab, azure, bitbucket
defaultBranchstringYesDefault branch
prNumbernumberYesPR number

list_merge_request_comments

Get all comments for a PR with filtering options.
ParameterTypeRequiredDescription
namestringYesRepository name
remotestringYesProvider
defaultBranchstringYesDefault branch
prNumbernumberYesPR number
greptileGeneratedbooleanNoFilter Greptile comments only
addressedbooleanNoFilter by addressed status
createdAfterstringNoISO 8601 date filter
createdBeforestringNoISO 8601 date filter
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.
ParameterTypeRequiredDescription
namestringNoRepository name
remotestringNoProvider
defaultBranchstringNoDefault branch
prNumbernumberNoFilter by PR
statusstringNoFilter by status
limitnumberNoMax results (default: 20)
offsetnumberNoPagination offset
Status values: PENDING, REVIEWING_FILES, GENERATING_SUMMARY, COMPLETED, FAILED, SKIPPED

get_code_review

Get detailed information for a specific code review.
ParameterTypeRequiredDescription
codeReviewIdstringYesCode review ID

trigger_code_review

Start a new code review on a PR.
ParameterTypeRequiredDescription
namestringYesRepository name
remotestringYesProvider
defaultBranchstringYesDefault branch
prNumbernumberYesPR number
branchstringNoWorking branch
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.
ParameterTypeRequiredDescription
querystringYesSearch term
limitnumberNoMax results (default: 10, max: 50)
includeAddressedbooleanNoInclude resolved comments (default: false)
createdAfterstringNoISO 8601 date filter

Custom Context Tools

list_custom_context

List your organizationโ€™s coding patterns.
ParameterTypeRequiredDescription
typestringNoCUSTOM_INSTRUCTION or PATTERN
greptileGeneratedbooleanNoFilter by source
limitnumberNoMax results (default: 20, max: 100)
offsetnumberNoPagination offset

get_custom_context

Get details for a specific pattern.
ParameterTypeRequiredDescription
customContextIdstringYesUUID of the context

search_custom_context

Search patterns by content.
ParameterTypeRequiredDescription
querystringYesSearch term
limitnumberNoMax results (default: 10, max: 50)

create_custom_context

Create a new coding pattern.
ParameterTypeRequiredDescription
bodystringNoPattern content
typestringNoCUSTOM_INSTRUCTION or PATTERN
statusstringNoACTIVE, INACTIVE, SUGGESTED
scopesobjectNoWhere pattern applies
metadataobjectNoAdditional data
Scope structure:
{
  "AND": [
    {
      "operator": "MATCHES",
      "field": "filepath",
      "value": "**/api/**"
    }
  ]
}
Thereโ€™s no delete_custom_context tool. To disable a pattern, set status: "INACTIVE".

Error Handling

Standard JSON-RPC error format:
{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32601,
    "message": "Method not found"
  }
}
Common Error Codes:
CodeMeaning
-32700Parse error
-32600Invalid request
-32601Method not found
-32602Invalid parameters
-32603Internal error
-32000Server error (includes auth failures)