Skip to content

Reports & Analytics

Fresh

Generate code review reports and analytics using MCP tools. Track PR status, weekly summaries, team metrics, and review completion rates from your IDE.

Use MCP tools to generate reports on review activity and track team progress.

PR Status

Get a quick status check for any PR:

text
What's the review status for PR #5 in owner/repo?

!Individual PR stats

Tool: get_merge_request

Response includes:

  • reviewCompleteness: "2/5 Greptile comments addressed"
  • hasNewCommitsSinceReview: Whether re-review needed
  • addressedComments / unaddressedComments: Full lists

Weekly Summary

Generate a report of open PR status:

text
Give me a weekly summary of all open PRs with their review status and make a nice visual graph for important stats.

!PR report visualization

The assistant:

  1. Calls list_pull_requests with state: "open"
  2. For each PR, calls get_merge_request to get reviewAnalysis
  3. Compiles: PR number, title, author, age, completeness, unaddressed count

Claude took the MCP data and whipped up a basic webpage to visualize it.


Team Metrics

Comments by repository

```text theme={}
How many unaddressed Greptile comments do we have per repository?
```

**Tool:** [`list_pull_requests`](/mcp/tools#list_pull_requests) + [`list_merge_request_comments`](/mcp/tools#list_merge_request_comments) for each

Review completion rate

```text theme={}
What percentage of Greptile comments have been addressed across all open PRs?
```

**Tool:** [`get_merge_request`](/mcp/tools#get_merge_request) → aggregates `reviewAnalysis` across PRs

Stale PRs

```text theme={}
Which open PRs are older than 7 days and still have unaddressed comments?
```

**Tool:** [`list_pull_requests`](/mcp/tools#list_pull_requests) → filters by `createdAt`

Issues with fixes available

```text theme={}
How many unaddressed comments have suggested code fixes?
```

**Tool:** [`search_greptile_comments`](/mcp/tools#search_greptile_comments) → checks `summary.withSuggestions`

Issues by file

```text theme={}
Which files have the most unaddressed Greptile comments?
```

**Tool:** [`search_greptile_comments`](/mcp/tools#search_greptile_comments) → groups by `filePath`

Code Review History

Recent reviews

```text theme={}
Show me the last 10 completed code reviews
```

**Tool:** [`list_code_reviews`](/mcp/tools#list_code_reviews) with `status: "COMPLETED"` and `limit: 10`

Review details

```text theme={}
Get details for code review 1382118
```

**Tool:** [`get_code_review`](/mcp/tools#get_code_review)

Returns `strictness`, `totalFiles`, `completedFiles`, full PR info.

Failed reviews

```text theme={}
Are there any failed or skipped code reviews?
```

**Tool:** [`list_code_reviews`](/mcp/tools#list_code_reviews) with `status: "FAILED"` or `"SKIPPED"`

Next Steps

Auto-Fix Workflow

Fix issues identified in your reports

Custom Context

Track which patterns trigger the most comments

Source

Mirrored from the official Greptile documentation. Self-contained reference copy.