# List log entries

Tool: `veryfront__list_project_logs`

List project log entries. Requires project.logs.read.

## Arguments

| Name                | Type                                    | Required | Description                                                                                                                                                                                |
| ------------------- | --------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `start`             | string · date-time                      |          | Start time (RFC 3339). Defaults to 1 hour ago. Logs are kept for 31 days and one query spans at most 30 days; an older start or a wider range returns 400. Cannot be combined with cursor. |
| `end`               | string · date-time                      |          | End time (RFC 3339). Defaults to now. Cannot be combined with cursor.                                                                                                                      |
| `cursor`            | string                                  |          | Opaque page\_info.next from a previous page. It continues the original window and sort order; repeat the same filters with every cursor.                                                   |
| `limit`             | number · min 1 · max 1000 · default 100 |          | Max entries to return (default: 100, max: 1000)                                                                                                                                            |
| `sort_order`        | string                                  |          | Sort order by timestamp. Defaults to "desc", newest first. Entries that share a timestamp keep one stable order. One of `asc`, `desc`.                                                     |
| `level`             | string                                  |          | Filter by log level One of `error`, `warn`, `info`, `debug`.                                                                                                                               |
| `search`            | string · max length 200                 |          | Free-text search over the fields each entry shows                                                                                                                                          |
| `environment`       | string · min length 1 · max length 200  |          | Exact runtime environment tag, for example preview or production. Untagged telemetry is excluded.                                                                                          |
| `host`              | string · min length 1 · max length 253  |          | Exact request host (without scheme or path), for example demo.preview\.veryfront.com. Untagged telemetry is excluded.                                                                      |
| `release_id`        | string · min length 1 · max length 128  |          | Exact release ID on emitted logs; untagged logs are excluded.                                                                                                                              |
| `service`           | string                                  |          | Filter by service: veryfront-server, veryfront-api or veryfront-proxy. One of `veryfront-server`, `veryfront-api`, `veryfront-proxy`.                                                      |
| `trace_id`          | string · min length 1 · max length 64   |          | Filter by exact trace ID to correlate logs with a distributed trace.                                                                                                                       |
| `request_id`        | string · min length 1 · max length 128  |          | Filter by exact request ID.                                                                                                                                                                |
| `run_id`            | string · min length 1 · max length 128  |          | Filter by exact run ID to see every service line that belongs to one run.                                                                                                                  |
| `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_logs",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"timestamp\":\"string\",\"level\":\"string\",\"message\":\"string\",\"service\":\"string\",\"trace_id\":\"string\",\"request_id\":\"string\",\"run_id\":\"string\",\"environment\":\"string\",\"host\":\"string\",\"release_id\":\"string\",\"metadata\":{}}],\"page_info\":{\"self\":\"string\",\"first\":null,\"next\":\"string\",\"prev\":\"string\"},\"stats\":{\"bytes_processed\":0,\"lines_processed\":0,\"query_time_ms\":0}}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "timestamp": "string",
          "level": "string",
          "message": "string",
          "service": "string",
          "trace_id": "string",
          "request_id": "string",
          "run_id": "string",
          "environment": "string",
          "host": "string",
          "release_id": "string",
          "metadata": {}
        }
      ],
      "page_info": {
        "self": "string",
        "first": null,
        "next": "string",
        "prev": "string"
      },
      "stats": {
        "bytes_processed": 0,
        "lines_processed": 0,
        "query_time_ms": 0
      }
    }
  }
}
```
