# Improve bottlenecks in your software development lifecycle

You can use Cortex MCP to quickly identify bottlenecks that are slowing your teams down, and use these insights to take action and track progress with Custom Dashboards.

### Step 1: Use Cortex MCP to identify bottlenecks

First, you can use [Cortex MCP](/get-started/mcp.md) to quickly identify bottlenecks in your version control metrics across the organization.&#x20;

Use a prompt such as *What are the bottlenecks in my version control metrics org-wide?.* The MCP will respond with an analysis of version control bottlenecks. Review the bottlenecks to understand what areas you should focus on.

<figure><img src="/files/3VD2jKm0NKklK8EG5Tyk" alt=""><figcaption></figcaption></figure>

In our example, the MCP flags the following:

* Review pickup is the primary bottleneck.
* Cycle time being lower than any single stage of review latency signals heavy overlap and/or outlier effects. Improvement should focus on accelerating reviewer response.
* Some teams have much longer wait times for first review.
* Another metric to watch is open PR count per team or repo.

#### Follow the MCP's recommended next steps

The MCP will also generate a list of suggestions to take action on the identified bottlenecks.

In our example, the MCP made the following recommendations:

* Set and enforce review SLAs on time to first review.
* Use Cortex [Metrics Explorer](/improve/eng-intelligence/metrics-explorer.md) to drill further by repository and reviewer to pinpoint which repos feed the extreme outliers.
* Close abandoned PRs.

### Step 2: Create a Custom Dashboard to track progress

In Cortex, create a [Custom Dashboard](/improve/eng-intelligence/dashboards/custom.md) to visualize the bottleneck. Add modules to the dashboard based on what was flagged by Cortex MCP.&#x20;

<details>

<summary>Create modules for the metrics</summary>

In our example, the metrics flagged were Time to first review and Cycle time.

1. Navigate to **Eng Intelligence > Metrics Explorer**.
2. Click **+New module**, then click the default metric on the page (Cycle time). A modal will open where you can select a new metric.<br>

   <div align="left"><figure><img src="/files/eG8qFkbaWRYnMDsXft2w" alt="" width="563"><figcaption></figcaption></figure></div>
3. In the Version control metric category, select "Time to first review." Choose which operation to apply to the chart (average, max, median, min, P95, or sum) then click **View metric**.<br>

   <div align="left"><figure><img src="/files/mwW2sN6NkEY5QCCjQxtw" alt="" width="563"><figcaption></figcaption></figure></div>
4. The visualization will appear on the page. In the upper right corner, click **Save as**. Give the module a descriptive name, then click **Save module**.

Repeat these steps for each metric you want to track.&#x20;

</details>

<details>

<summary>Create a Custom Dashboard</summary>

1. Navigate to **Eng Intelligence > Dashboards**. In the upper right corner, click **Create Dashboard**.
2. Enter a descriptive name for the dashboard, then at the bottom of the sidebar, click **Save**.
   1. In our example, since we identified review time as the bottleneck, we name the dashboard "Review time bottleneck."&#x20;
3. You will be prompted to select a module to add to your dashboard. Select a module, then at the bottom, click **Close**. \
   ![](/files/Bt179rFNIF3umasQS9XV)
4. The page will reload with your module visualization. To add another module, click the **+** icon at the bottom or side of the page. Select a module from the list again, then click **Close**.

The custom dashboard - "Review time bottleneck" - now contains the two metrics flagged by Cortex MCP, allowing for an easy side-by-side comparison:

<figure><img src="/files/QWVbr4Cd1IeRj6On6jtV" alt=""><figcaption></figcaption></figure>

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cortex.io/guides/production-readiness/improve-bottlenecks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
