# veryfront__query_project_metrics

Query project metrics. Requires project.metrics.read.

Risk: read\_only.

## Arguments

| Name                | Type   | Required | Description                                                                                                                                                                                                                                                                                                                                                        |
| ------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `metric`            | string | Yes      | Prometheus metric name. Raw PromQL is not accepted.                                                                                                                                                                                                                                                                                                                |
| `start`             | string |          | Start time (RFC 3339). Defaults to 1 hour ago. Metrics are kept for 395 days and one query spans at most 31 days; an older start or a wider range returns 400.                                                                                                                                                                                                     |
| `end`               | string |          | End time (RFC 3339). Defaults to now.                                                                                                                                                                                                                                                                                                                              |
| `step`              | string |          | Prometheus query step, for example 60s.                                                                                                                                                                                                                                                                                                                            |
| `aggregation`       | string |          | Aggregation to apply to the project-scoped metric selector.                                                                                                                                                                                                                                                                                                        |
| `labels`            | object |          | Optional allowlisted label filters such as environment, service\_name or status\_code. environment is the project environment on every metric: its name, matched case-insensitively, or preview for a branch. ai\_gateway\_\* metrics carry it for calls made by a project run. Unknown, platform (deployment\_environment) and project-scope labels are rejected. |
| `project_reference` | string |          | Project ID or slug                                                                                                                                                                                                                                                                                                                                                 |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__query_project_metrics",
    "arguments": {
      "metric": "<metric>"
    }
  }
}
```
