slope_calc
Calculate the slope, intercept, and equation of a line from two points. Input x and y coordinates to get the linear relationship.
Instructions
Calculate the slope, intercept, and equation of a line between two points.
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": "slope_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| y1 | Yes | ||
| x2 | Yes | ||
| y2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |