listRawMetrics
listRawMetricsList usage events with filtering by ID, name, or API slug to retrieve raw metrics from your billing platform.
Instructions
List Usage Events. Supports filtering by ID, name, and API slug.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "listRawMetrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Filter by usage event ID. | |
| limit | No | Maximum number of records to return per page (defaults to 10). | |
| order | No | Order of results (e.g., '-created_at'). | -created_at |
| cursor | No | The cursor for pagination. | |
| search | No | General search query. | |
| sort_key | No | Key to sort the results by (e.g., 'created_at'). | created_at |
| sort_type | No | Sort order type (e.g., 'asc'). | DESC |
| name__ilike | No | Case-insensitive partial match for usage event name. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow | |
| api_slug__ilike | No | Case-insensitive partial match for API slug. |