> ## Documentation Index
> Fetch the complete documentation index at: https://www.greptile.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Reports & Analytics

> 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 theme={}
What's the review status for PR #5 in owner/repo?
```

![Individual PR stats](https://mintcdn.com/greptile/sJeefWhR1h6iqsSa/images/individual-pr-stats-mcp.png?fit=max\&auto=format\&n=sJeefWhR1h6iqsSa\&q=85\&s=e89663c29becbde8fb048a0154af6abe)

**Tool:** [`get_merge_request`](https://www.greptile.com/docs/mcp/tools#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 theme={}
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](https://mintcdn.com/greptile/sJeefWhR1h6iqsSa/images/pr-report-mcp.png?fit=max\&auto=format\&n=sJeefWhR1h6iqsSa\&q=85\&s=06200c301ea59e4e7a0388a14f9207c0)

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`](https://www.greptile.com/docs/mcp/tools#list_pull_requests) + [`list_merge_request_comments`](https://www.greptile.com/docs/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`](https://www.greptile.com/docs/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`](https://www.greptile.com/docs/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`](https://www.greptile.com/docs/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`](https://www.greptile.com/docs/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`](https://www.greptile.com/docs/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`](https://www.greptile.com/docs/mcp/tools#get_code_review)
>
> Returns `strictness` and other allowlisted metadata, full PR info, and summary citations.

> **Failed reviews**
>
> ```text theme={}
> Are there any failed or skipped code reviews?
> ```
>
> **Tool:** [`list_code_reviews`](https://www.greptile.com/docs/mcp/tools#list_code_reviews) with `status: "FAILED"` or `"SKIPPED"`

***

## Next Steps

> **[Auto-Fix Workflow](https://www.greptile.com/docs/mcp/auto-fix.md)**
>
> Fix issues identified in your reports

> **[Custom Context](https://www.greptile.com/docs/mcp/custom-context.md)**
>
> Track which patterns trigger the most comments


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.