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

# List log entries

> List project log entries.

`veryfront__list_project_logs`

Requires project.logs.read.

## Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

**Call type:** Read-only.

## Arguments

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `start` | `string` | No | 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. Format: `date-time`. |
| `end` | `string` | No | End time (RFC 3339). Defaults to now. Cannot be combined with cursor. Format: `date-time`. |
| `cursor` | `string` | No | 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` | No | Max entries to return (default: 100, max: 1000) Default: `100`. Minimum: `1`. Maximum: `1000`. |
| `sort_order` | `string` | No | Sort order by timestamp. Defaults to "desc", newest first. Entries that share a timestamp keep one stable order. Values: `"asc"`, `"desc"`. |
| `level` | `string` | No | Filter by log level Values: `"error"`, `"warn"`, `"info"`, `"debug"`. |
| `search` | `string` | No | Free-text search over the fields each entry shows Maximum length: `200`. |
| `environment` | `string` | No | Exact runtime environment tag, for example preview or production. Untagged telemetry is excluded. Minimum length: `1`. Maximum length: `200`. |
| `host` | `string` | No | Exact request host (without scheme or path), for example demo.preview\.veryfront.com. Untagged telemetry is excluded. Minimum length: `1`. Maximum length: `253`. |
| `release_id` | `string` | No | Exact release ID on emitted logs; untagged logs are excluded. Minimum length: `1`. Maximum length: `128`. |
| `service` | `string` | No | Filter by service: veryfront-server, veryfront-api or veryfront-proxy. Values: `"veryfront-server"`, `"veryfront-api"`, `"veryfront-proxy"`. |
| `trace_id` | `string` | No | Filter by exact trace ID to correlate logs with a distributed trace. Minimum length: `1`. Maximum length: `64`. |
| `request_id` | `string` | No | Filter by exact request ID. Minimum length: `1`. Maximum length: `128`. |
| `run_id` | `string` | No | Filter by exact run ID to see every service line that belongs to one run. Minimum length: `1`. Maximum length: `128`. |
| `project_reference` | `string` | No | Project ID or slug |

## Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See [MCP client setup](https://veryfront.com/docs/cloud/getting-started/connect-mcp.md).

```json title="request.json" theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_project_logs",
    "arguments": {}
  }
}
```

## Result

The published output shape is summarized below. Inspect both the MCP response content and `isError` when handling a call.

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `data` | `object[]` | Yes | Log entries in (timestamp, tie key) order. A page can hold fewer entries than limit, or none, and still carry `page_info`.next. |
| `page_info` | `object` | Yes | Pagination cursor values for traversing the result set. |
| `stats` | `object` | Yes | Structured stats details associated with this tool result. |

## Full schemas

```json title="input-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "start": {
      "type": "string",
      "format": "date-time",
      "description": "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": {
      "type": "string",
      "format": "date-time",
      "description": "End time (RFC 3339). Defaults to now. Cannot be combined with cursor."
    },
    "cursor": {
      "type": "string",
      "description": "Opaque page_info.next from a previous page. It continues the original window and sort order; repeat the same filters with every cursor."
    },
    "limit": {
      "type": "number",
      "minimum": 1,
      "maximum": 1000,
      "description": "Max entries to return (default: 100, max: 1000)",
      "default": 100
    },
    "sort_order": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "description": "Sort order by timestamp. Defaults to \"desc\", newest first. Entries that share a timestamp keep one stable order."
    },
    "level": {
      "type": "string",
      "enum": [
        "error",
        "warn",
        "info",
        "debug"
      ],
      "description": "Filter by log level"
    },
    "search": {
      "type": "string",
      "maxLength": 200,
      "description": "Free-text search over the fields each entry shows"
    },
    "environment": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "pattern": "^[A-Za-z0-9._-]+$",
      "description": "Exact runtime environment tag, for example preview or production. Untagged telemetry is excluded."
    },
    "host": {
      "type": "string",
      "minLength": 1,
      "maxLength": 253,
      "pattern": "^[A-Za-z0-9.-]+(?::[0-9]+)?$",
      "description": "Exact request host (without scheme or path), for example demo.preview.veryfront.com. Untagged telemetry is excluded."
    },
    "release_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9._-]+$",
      "description": "Exact release ID on emitted logs; untagged logs are excluded."
    },
    "service": {
      "type": "string",
      "enum": [
        "veryfront-server",
        "veryfront-api",
        "veryfront-proxy"
      ],
      "description": "Filter by service: veryfront-server, veryfront-api or veryfront-proxy."
    },
    "trace_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9._-]+$",
      "description": "Filter by exact trace ID to correlate logs with a distributed trace."
    },
    "request_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9._-]+$",
      "description": "Filter by exact request ID."
    },
    "run_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9._-]+$",
      "description": "Filter by exact run ID to see every service line that belongs to one run."
    },
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug"
    }
  },
  "additionalProperties": false,
  "description": "Runtime logs, not a stored build-log archive, from the runtime, API and proxy services; use them to debug SSR failures and runtime exceptions. Target filters (environment, host, release_id) exclude untagged logs, and an empty data array does not prove telemetry was emitted. Page with page_info.next: an empty data array with page_info.next set means more entries may exist, so call again with that cursor.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
```

```json title="output-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "service": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "run_id": {
            "type": "string",
            "description": "Run identifier associated with this result."
          },
          "environment": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "release_id": {
            "type": "string",
            "description": "Release identifier associated with this result."
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "description": "Additional structured values associated with this result."
            },
            "description": "Additional structured metadata returned by the tool."
          }
        },
        "required": [
          "timestamp",
          "level",
          "message",
          "service"
        ],
        "additionalProperties": false
      },
      "description": "Log entries in (timestamp, tie key) order. A page can hold fewer entries than limit, or none, and still carry page_info.next."
    },
    "page_info": {
      "type": "object",
      "properties": {
        "self": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor that refers to the current page."
        },
        "first": {
          "type": "null"
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the next page when pagination is available."
        },
        "prev": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the previous page when pagination is available."
        }
      },
      "required": [
        "self",
        "first",
        "next",
        "prev"
      ],
      "additionalProperties": false,
      "description": "Pagination cursor values for traversing the result set."
    },
    "stats": {
      "type": "object",
      "properties": {
        "bytes_processed": {
          "type": "number"
        },
        "lines_processed": {
          "type": "number"
        },
        "query_time_ms": {
          "type": "number"
        }
      },
      "required": [
        "bytes_processed",
        "lines_processed",
        "query_time_ms"
      ],
      "additionalProperties": false,
      "description": "Structured stats details associated with this tool result."
    }
  },
  "required": [
    "data",
    "page_info",
    "stats"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the list_project_logs tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
```

<details>
  <summary>Try this tool</summary>

  Replace sample arguments with values for your project or connected account. Calls run only when you select Run tool.

  MCP tool call

  Call `veryfront__list_project_logs` against the Veryfront MCP endpoint.

  Bearer token or API key

  Arguments (JSON)

  Run tool

  Output JSON

  <pre />
</details>


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