midpoint_calc
Calculate the midpoint, distance, slope, and angle between two 2D points for coordinate geometry, measurement, and spatial analysis tasks.
Instructions
Calculate the midpoint, distance, slope, and angle between two 2D points.
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": "midpoint_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | X of first point. | |
| x2 | Yes | X of second point. | |
| y1 | Yes | Y of first point. | |
| y2 | Yes | Y of second point. |