veryfront__search_project_metricsAccess
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 |
|---|---|---|---|
project_reference | string | No | Project ID or slug |
metric | string | Yes | Prometheus metric name. Raw PromQL is not accepted. Minimum length: 1. Maximum length: 200. |
start | string | No | Start time in ISO 8601 format. Format: date-time. |
end | string | No | End time in ISO 8601 format. Format: date-time. |
step | string | No | Prometheus query step, for example 60s. Default: "60s". Minimum length: 1. Maximum length: 20. |
aggregation | string | No | Aggregation to apply to the project-scoped metric selector. Default: "none". Values: "none", "sum", "avg", "min", "max", "count". |
labels | object | No | 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. |
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.request.json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "veryfront__search_project_metrics",
"arguments": {
"metric": "example"
}
}
}
Result
The published output shape is summarized below. Inspect both the MCP response content andisError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
series | object[] | Yes | List of series associated with this tool result. |
stats | object | Yes | Structured stats details associated with this tool result. |
Full schemas
{
"type": "object",
"properties": {
"project_reference": {
"type": "string",
"description": "Project ID or slug"
},
"metric": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Prometheus metric name. Raw PromQL is not accepted."
},
"start": {
"type": "string",
"format": "date-time",
"description": "Start time in ISO 8601 format."
},
"end": {
"type": "string",
"format": "date-time",
"description": "End time in ISO 8601 format."
},
"step": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"description": "Prometheus query step, for example 60s.",
"default": "60s"
},
"aggregation": {
"type": "string",
"enum": [
"none",
"sum",
"avg",
"min",
"max",
"count"
],
"description": "Aggregation to apply to the project-scoped metric selector.",
"default": "none"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "Additional structured values supplied to the tool."
},
"description": "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."
}
},
"required": [
"metric"
],
"additionalProperties": false,
"description": "Arguments for the search_project_metrics tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}
{
"type": "object",
"properties": {
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metric": {
"type": "string"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string",
"description": "Additional structured values associated with this result."
},
"description": "Structured labels details associated with this tool result."
},
"points": {
"type": "array",
"items": {
"type": "object",
"properties": {
"timestamp": {
"type": "string"
},
"value": {
"type": "number"
}
},
"required": [
"timestamp",
"value"
],
"additionalProperties": false
},
"description": "List of points associated with this tool result."
}
},
"required": [
"metric",
"labels",
"points"
],
"additionalProperties": false
},
"description": "List of series associated with this tool result."
},
"stats": {
"type": "object",
"properties": {
"query_time_ms": {
"type": "number"
}
},
"required": [
"query_time_ms"
],
"additionalProperties": false,
"description": "Structured stats details associated with this tool result."
}
},
"required": [
"series",
"stats"
],
"additionalProperties": false,
"description": "Structured result returned by the search_project_metrics tool.",
"$schema": "http://json-schema.org/draft-07/schema#"
}