Calculate Bearing
bearing_toolCalculate the compass direction from a starting coordinate to an ending coordinate, returning degrees where 0° is North, 90° is East, 180° is South, and 270° is West. Works offline without API calls.
Instructions
Calculate the bearing (compass direction) from one point to another. Returns bearing in degrees where 0° is North, 90° is East, 180° is South, and 270° is West. Works offline without API calls.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"to": "<to>"
},
"name": "bearing_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Ending coordinate | |
| from | Yes | Starting coordinate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| bearing | Yes | Bearing in degrees (0-360, where 0 is North) |