Math & Numbers
Solve quadratic equations ax² + bx + c = 0 and linear equations bx + c = 0 with detailed steps, discriminant analysis, vertex calculation, and axis of symmetry.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/quadratic-equation-solver' \
-H 'Content-Type: application/json' \
-d '{"inputFormat":"individual","a":"1","b":-3,"c":2,"precision":4,"showSteps":true,"showVertex":true,"showAxis":true,"showFormula":true}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/quadratic-equation-solver| Name | Type | Required | Description |
|---|---|---|---|
| inputFormat | select | Yes | — |
| a | text | Yes | — |
| b | number | Yes | — |
| c | number | Yes | — |
| precision | number | No | — |
| showSteps |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-quadratic-equation-solver": {
"name": "quadratic-equation-solver",
"description": "Solve quadratic equations ax² + bx + c = 0 and linear equations bx + c = 0 with detailed steps, discriminant analysis, vertex calculation, and axis of symmetry.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=quadratic-equation-solver",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "quadratic-equation-solver",
"arguments": {
"inputFormat": "individual",
"a": "1",
"b": -3,
"c": 2,
"precision": 4,
"showSteps": true,
"showVertex": true,
"showAxis": true,
"showFormula": true
}
}
}Questions or issues? Contact [email protected]
| checkbox |
| No |
| — |
| showVertex | checkbox | No | — |
| showAxis | checkbox | No | — |
| showFormula | checkbox | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}