# List alerts

Tool: `veryfront__list_project_alerts`

List project alerts. Requires project.logs.read.

## Arguments

| Name                | Type                                  | Required | Description                                                                                             |
| ------------------- | ------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------- |
| `cursor`            | string                                |          | Opaque cursor pointing at the next page. Omit it to read the first page.                                |
| `limit`             | number · min 1 · max 100 · default 20 |          | Maximum number of entries to return. Defaults to 20 and is capped at 100.                               |
| `status`            | array of string                       |          | Only alerts in one of these statuses. Omit for firing and resolved alerts. One of `firing`, `resolved`. |
| `sort_order`        | string · default desc                 |          | desc lists the newest alert first. One of `asc`, `desc`.                                                |
| `project_reference` | string                                |          | Project ID or slug                                                                                      |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_project_alerts",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"string\",\"rule_id\":\"string\",\"title\":\"string\",\"status\":\"firing\",\"error_code\":\"string\",\"run_kind\":\"string\",\"run_status\":\"string\",\"started_at\":\"string\",\"resolved_at\":\"string\",\"_links\":{\"logs\":{\"href\":\"string\"},\"traces\":{\"href\":\"string\"}}}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "string",
          "rule_id": "string",
          "title": "string",
          "status": "firing",
          "error_code": "string",
          "run_kind": "string",
          "run_status": "string",
          "started_at": "string",
          "resolved_at": "string",
          "_links": {
            "logs": {
              "href": "string"
            },
            "traces": {
              "href": "string"
            }
          }
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      }
    }
  }
}
```
