Best-fit slope, intercept, r^2 and an optional prediction from paired x/y data.
Free tier eligible — 500 calls/month with a free key from /pricing; x402 pay-per-call above quota.
| Parameter | Type | Required | Description |
|---|---|---|---|
x | array | required | Array of x values (length >= 2) |
y | array | required | Array of y values (same length as x) |
predict_x | number | optional | Optional x to predict y for |
curl -s https://wingmanprotocol.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "regression", "arguments": {"x": [], "y": []}}}'curl -s https://wingmanprotocol.com/tools/regression \
-H 'Content-Type: application/json' \
-d '{"x": [], "y": []}'Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/regression from your browser.
X-Payment header, or get a free key at /pricing (500 calls/month, no card, no crypto).