distance_2d
Compute the straight-line distance between two points in a 2D plane from their x,y coordinates.
Instructions
Calculate Euclidean distance between two points in 2D space.
Parameters:
x1 — X coordinate of first point.
y1 — Y coordinate of first point.
x2 — X coordinate of second point.
y2 — Y coordinate of second point.
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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "distance_2d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| y1 | Yes | ||
| x2 | Yes | ||
| y2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |