This reference is sourced from Greptile’s official MCP documentation. Parameters are inputs you provide when calling a tool; responses are the data returned.
Tools by Category
- Custom Context
- Pull Requests
- Code Reviews
- Comments
4 tools for managing coding patterns and organizational standards
Scopes Format:
list_custom_context
List your organization’s custom context entries.Input Parameters
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | CUSTOM_INSTRUCTION or PATTERN |
greptileGenerated | boolean | No | Filter by Greptile-generated content |
limit | number | No | Max results (1-100, default 20) |
offset | number | No | Skip results for pagination |
Response Format
Response Format
get_custom_context
Get detailed information about a specific custom context entry.Input Parameters
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
customContextId | string | Yes | Custom context ID |
Response Format
Response Format
search_custom_context
Search custom context by content.Input Parameters
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search term |
limit | number | No | Max results (1-50, default 10) |
Response Format
Response Format
create_custom_context
Create a new custom context entry.Input Parameters
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | CUSTOM_INSTRUCTION or PATTERN (default: CUSTOM_INSTRUCTION) |
body | string | No | Context content |
scopes | object | No | Where context applies (see format below) |
status | string | No | ACTIVE, INACTIVE, or SUGGESTED |
metadata | object | No | Additional metadata |
Error Responses
All tools return errors in standard JSON-RPC format:| Code | Meaning |
|---|---|
-32700 | Parse error |
-32600 | Invalid request |
-32601 | Method not found |
-32602 | Invalid parameters |
-32603 | Internal error (includes auth failures) |
Quick Reference
| Tool | Category | Purpose |
|---|---|---|
list_custom_context | Custom Context | List all coding patterns |
get_custom_context | Custom Context | Get pattern details |
search_custom_context | Custom Context | Search patterns |
create_custom_context | Custom Context | Create new pattern |
list_merge_requests | Pull Requests | List PRs |
get_merge_request | Pull Requests | Get PR details |
list_merge_request_comments | Pull Requests | Get PR comments |
list_code_reviews | Code Reviews | List reviews |
get_code_review | Code Reviews | Get review details |
trigger_code_review | Code Reviews | Start new review |
search_greptile_comments | Comments | Search feedback |