- VERIFIED
- DETECTED
- REFINED
- MANUAL
Short answer
How can I check if my AI's distance estimates are wrong?
Your agent uses the calculate_distance tool to run actual spherical trigonometry on coordinates. This provides a hard mathematical truth to compare against the agent's internal logic. You'll see exactly where its spatial reasoning fails.
The results.
Where the data lands.
The engine processes coordinates to produce these specific outcomes.
VERIFIED
Accurate distance checks
The AI uses the tool to confirm if a distance between two points is mathematically sound. You get a precise number instead of a guess.
DETECTED
Hallucination alerts
When the agent's estimate deviates from the tool's output, you catch the spatial error immediately. This prevents bad data from moving downstream.
REFINED
Better prompt logic
You can use the tool's results to adjust how your agent thinks about geography. This makes future spatial reasoning more reliable.
MANUAL
Human intervention
If the tool and the agent disagree significantly, you decide whether to trust the math or investigate the agent's context. The AI won't make this final judgment for you.
The workflow
What your AI does when coordinates arrive.
The agent stops guessing and starts calculating.
Identify coordinates
The agent pulls latitude and longitude pairs from your chat, a spreadsheet, or a database.
calculate_distanceRun trigonometry
The agent invokes the tool to calculate the great-circle distance between those points.
calculate_distanceCompare results
The agent weighs its own internal estimate against the tool's precise output.
calculate_distanceFlag errors
The agent reports the discrepancy to you if the math doesn't match its reasoning.
calculate_distance
Try it
Copy these to start.
Use these prompts to test your agent's spatial accuracy.
Starting points
Swap out the bracketed text with your actual data, like specific addresses or coordinate pairs.
Haversine Engine Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_9HY5DGRNuTnVYKh6pT2quv71WB3YfM9cSRfriCCA/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 — Haversine Engine capabilities are ready to use.
{
"mcpServers": {
"haversine-distance-engine-mcp": {
"url": "https://edge.vinkius.com/vk_preview_9HY5DGRNuTnVYKh6pT2quv71WB3YfM9cSRfriCCA/mcp"
}
}
}Check the distance between the coordinates in this CSV file and tell me if your estimate is correct.
I have two addresses in this Google Sheet. Use the distance tool to verify the mileage.
Calculate the distance between the coordinates in this GitHub repo and tell me if you're hallucinating the distance.
Compare your estimate for the distance between these two points in this Slack thread against the actual math.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Haversine Distance Engine once, then ask.
One click connects this MCP to your preferred client. Your credentials stay encrypted, and you can start verifying distances immediately.
Connect Haversine Distance Engine to your AIFAQ
How the engine behaves
- 01
Can the AI change the coordinates in my files?
No. The tool only reads coordinates to perform calculations; it cannot modify your original data.
- 02
Does the AI automatically fix its own mistakes?
No. The AI identifies the discrepancy, but you must decide how to correct the agent's logic or the underlying data.
- 03
What kind of distance does it calculate?
It uses the Haversine formula to calculate the great-circle distance between two points on a sphere.
- 04
Can I use this to find the shortest driving route?
No. This tool calculates straight-line spherical distance, not road network distance or travel time.
- 05
Does it work with any coordinate format?
The agent must be able to extract latitude and longitude from your input for the tool to work.
More questions about Haversine Distance Engine? The Connector page answers them. See everything the Haversine Distance Engine Connector can do
Connect Haversine Engine to Claude, Cursor, ChatGPT & more
