Math & Numbers
Solve quadratic equations, classify the roots, and return discriminant, vertex, and factor information
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/quadratic-equation-calculator' \
-H 'Content-Type: application/json' \
-d '{"inputFormat":"equation","aOrEquation":"x^2 - 3x + 2 = 0","b":-3,"c":2,"decimalPlaces":6,"showSteps":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-calculator| Name | Type | Required | Description |
|---|---|---|---|
| inputFormat | select | Yes | — |
| aOrEquation | text | Yes | — |
| b | number | No | — |
| c | number | No | — |
| decimalPlaces | 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-calculator": {
"name": "quadratic-equation-calculator",
"description": "Solve quadratic equations, classify the roots, and return discriminant, vertex, and factor information",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=quadratic-equation-calculator",
"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-calculator",
"arguments": {
"inputFormat": "equation",
"aOrEquation": "x^2 - 3x + 2 = 0",
"b": -3,
"c": 2,
"decimalPlaces": 6,
"showSteps": true
}
}
}Questions or issues? Contact [email protected]
| checkbox |
| No |
| — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}