Get Llm Expensive Traces
get_llm_expensive_tracesFind LLM traces with high token usage to support cost optimization and identify inefficient prompts.
Instructions
Find traces with highest LLM token usage.
Useful for cost optimization and identifying inefficient prompts.
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": "get_llm_expensive_traces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of traces to return (default: 10) | |
| end_time | No | End time in ISO 8601 format | |
| min_tokens | No | Minimum token count threshold (only return traces above this) | |
| start_time | No | Start time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z) | |
| service_name | No | Filter by service name | |
| gen_ai_request_model | No | Filter by requested model name (e.g., "gpt-4") | |
| gen_ai_response_model | No | Filter by actual model used (e.g., "gpt-4-0613") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |