spline_interpolate
Interpolate [x, y] data points with a natural cubic spline and optionally evaluate the curve at specified x values for plotting or analysis.
Instructions
Natural cubic spline interpolation through data points, with optional evaluation.
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": {
"points": "<points>"
},
"name": "spline_interpolate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | Array of [x, y] data points (at least 3, distinct x). | |
| eval_at | No | X value(s) to evaluate the spline at. Number or array of numbers. |