Get Prompt Version Stats
get_prompt_version_statsAggregate LLM performance stats by prompt name and version to compare latency, token usage, and errors across prompt variants.
Instructions
Get aggregated performance stats grouped by prompt name and version.
Groups spans by gen_ai.prompt.name + gen_ai.prompt.version, mirroring Langfuse's shipped per-prompt Metrics tab. Real-world adoption of these two attributes is still thin, so this tool may often return an empty list until more instrumentations populate them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum spans to analyze (default: 1000) | |
| end_time | No | End time in ISO 8601 format | |
| 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_system | No | Filter by LLM provider (openai, anthropic, etc.) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |