cos_metric_query
Query agent metrics with optional filters to isolate records by domain, model, outcome, and date range, returning JSON with total count and matching rows.
Instructions
Query agent metrics with optional filters.
Args: domain: Filter by domain (e.g. "BACKEND"). Optional. model: Filter by model (e.g. "sonnet"). Optional. outcome: Filter by outcome (e.g. "rework"). Optional. agent_type: Filter by agent type. Optional. date_from: Start date (ISO format, e.g. "2026-03-01"). Optional. date_to: End date (ISO format, e.g. "2026-03-25"). Optional. limit: Max rows (1-100, default 20).
Returns: str: JSON with total count and matching rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| model | No | ||
| domain | No | ||
| date_to | No | ||
| outcome | No | ||
| date_from | No | ||
| agent_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |