# Getting-started Prompts

Once your MCP server is connected, you can dive right in.

Here are a few prompts to try. They work out of the box with agents like Cursor, Claude, or VS Code:

> 💡 Starting your request with “**Use groundcover**” is a helpful nudge - it pushes the agent toward MCP tools and context.

## Basic Prompts to Try

MCP supports complex, multi-step flows, but starting simple is the best way to ramp up.

### Pull Logs

**Prompt:**

{% code overflow="wrap" %}

```
Use groundcover to get 5 logs from the workload news-service from the past 15 minutes.
```

{% endcode %}

**Expected behavior:**\
The agent should call `query_logs` and show recent logs for that workload.

### Get K8s Resource Specs

**Prompt:**

{% code overflow="wrap" %}

```
Use groundcover to get the spec of the chat-app deployment.
```

{% endcode %}

**Expected behavior:**\
The agent should call `get_k8s_object_yaml` and return the YAML or a summary of it.

### Find Slow Workloads

**Prompt:**

{% code overflow="wrap" %}

```
Use groundcover to show the top 5 workloads by P95 latency.
```

{% endcode %}

**Expected behavior:**\
The agent should call `get_workloads` and return the relevant workloads with their P95 latency.

<figure><img src="https://2771001740-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUHgqKYgCiRKdOpWQdi52%2Fuploads%2Fgit-blob-a77f21fc5eb75f66fc69469f1781f9c403b0e5f2%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## Investigate Issues

When something breaks, your agent can help investigate and make sense of it.

### Paste an Issue Link

**Prompt:**

{% code overflow="wrap" %}

```
I got an alert for this critical groundcover issue. Can you investigate it?
https://app.groundcover.com/monitors/issues?...
```

{% endcode %}

**Expected behavior:**\
The agent should use `query_monitors_issues`, pull issue details, and kick off a relevant investigation using logs, traces, and metadata.

### Investigate Multiple Issues

**Prompt:**

{% code overflow="wrap" %}

```
I got multiple alerts in the staging-env namespace. Can you help me look into them using groundcover?
```

{% endcode %}

**Expected behavior:**\
The agent should use `query_monitors_issues` to pull all related issues and start going through them one by one.

## Automate Coding & Debugging

groundcover’s MCP can also be your coding sidekick.\
Instead of digging through tests and logs manually, deploy your changes and let the agent take over.

### Iterate Over Test Results

**Prompt:**

{% code overflow="wrap" %}

```
Use groundcover to debug this code. For each test, print relevant logs with test_id, and dive into any error logs.
```

{% endcode %}

**Expected behavior:**\
The agent should update the code with log statements, deploy it, and use `query_logs` to trace and debug.

### Deploy & Verify

**Prompt:**

{% code overflow="wrap" %}

```
Please deploy this service and verify everything works using groundcover.
```

{% endcode %}

**Expected behavior:**\
The agent should assist with deployment, then check for issues, error logs, and traces via groundcover.
