query_requests
Retrieve individual LLM requests with cost, latency, model, and status details. Filter by model, provider, user, or error status to analyze specific calls.
Instructions
List individual LLM requests with cost, latency, model, status, and error message. Use when the user wants to see specific calls — recent ones, errors only, particular model, particular user, etc.
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": "query_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return. Default 20, max 100. | |
| model | No | Filter to a specific model substring. | |
| since | No | ISO 8601 timestamp lower bound. Only return requests created at or after this time. | |
| status | No | Filter by overall status — success (2xx) or error (4xx/5xx). | |
| userId | No | Filter to a specific end-user (the value the customer attaches via x-spanlens-user). | |
| provider | No | Filter to a specific provider. |