- ACCURACY
- SPEED
- INSIGHT
- HUMAN
Short answer
How can I get p95 or p99 latency from my logs using AI?
Your AI client uses the calculate_percentile tool to process raw log data and return exact percentile values. This removes the need for manual spreadsheet math or custom scripts. You get clean, accurate metrics for any specific latency threshold you request.
The outcomes.
What you get from the data.
The AI handles the heavy lifting of data processing and math.
ACCURACY
Precise math results
The calculate_percentile tool handles the distribution math. You get exact p95 or p99 numbers instead of rough estimates.
SPEED
Instant log parsing
Your agent reads through massive log files to find the specific latency timestamps you need. It skips the manual filtering process entirely.
INSIGHT
Trend identification
The AI identifies outliers and latency spikes within the data. You see exactly where the performance drops occur.
HUMAN
Manual verification
You review the final percentile outputs to ensure they align with your service level objectives. The AI provides the numbers, but you make the performance calls.
The workflow
What your AI does when the logs arrive.
The AI acts as a specialized math engine for your raw data.
Data ingestion
Your agent scans the provided log files to locate latency timestamps and request durations.
calculate_percentileStatistical calculation
The agent applies the requested percentile logic to the collected data points.
calculate_percentileOutlier detection
The AI identifies specific requests that fall into the p99 tail to help you find bottlenecks.
calculate_percentileReport generation
The agent summarizes the findings into a clear list of latency metrics for your review.
calculate_percentile
Try it
Copy these to start.
Use these prompts to trigger the calculation immediately.
Starting points
These are basic prompts. Swap out the file names or specific percentile targets to match your actual logs.
Statistics Engine Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_QakrWZnAdyFSWCuuV9nOWewpJCSEHshlpKJYL6eE/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Statistics Engine capabilities are ready to use.
{
"mcpServers": {
"statistics-engine-mcp": {
"url": "https://edge.vinkius.com/vk_preview_QakrWZnAdyFSWCuuV9nOWewpJCSEHshlpKJYL6eE/mcp"
}
}
}Calculate the p95 latency from the production_logs.txt file.
What is the p99 latency for the requests listed in api_gateway_logs.csv?
Find the p90 latency spikes in the last 100 lines of server_output.log.
Using the current log data, give me the p99 latency for all POST requests.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Statistics Engine once, then ask.
Click the link to connect the MCP to your client. Your credentials stay encrypted and you can start asking questions right away.
Connect Statistics Engine to your AIFAQ
How the Statistics Engine behaves.
- 01
Can the AI change my log files?
No. The AI only reads the data to perform calculations. It cannot edit, delete, or overwrite your original log files.
- 02
Does the AI handle the math itself?
No, the AI uses the calculate_percentile tool to ensure the math is mathematically sound and avoids LLM calculation errors.
- 03
Can I calculate medians too?
Yes. You can ask for any percentile, including the p50 median, using the same tool.
- 04
Will the AI fix the latency issues it finds?
No. The AI identifies the latency metrics and outliers, but you must take the manual steps to fix the underlying code or infrastructure.
- 05
Can it process logs from a URL?
The AI processes the data you provide through the connection. It cannot independently browse the web to find your logs.
More questions about Statistics Engine? The Connector page answers them. See everything the Statistics Engine Connector can do
Connect Statistics Engine to Claude, Cursor, ChatGPT & more
