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.
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/quadratic-equation-solver| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| inputFormat | select | Sim | — |
| a | text | Sim | — |
| b | number | Sim | — |
| c | number | Sim | — |
| precision | number | Não | — |
| showSteps |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"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"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"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
}
}
}| checkbox |
| Não |
| — |
| showVertex | checkbox | Não | — |
| showAxis | checkbox | Não | — |
| showFormula | checkbox | Não | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Dúvidas ou problemas? Contate [email protected]