Math & Numbers
Explicit Euler integration for dy/dx = f(x, y): step table, final estimate, and optional exact-solution error column.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/euler-method-solver' \
-H 'Content-Type: application/json' \
-d '{"fxy":"y","x0":0,"y0":1,"xEnd":1,"steps":10,"exactY":"e^x","decimalPlaces":6}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/euler-method-solver| Name | Type | Required | Description |
|---|---|---|---|
| fxy | text | Yes | Right-hand side in terms of x and y (functions: sin, cos, exp, ln, sqrt, …). Write products with *, e.g. x*y. |
| x0 | number | Yes | — |
| y0 | number | Yes | — |
| xEnd | number | Yes | Must be greater than x₀. |
| steps | number | Yes | h = (target x − x₀)/n. More steps → smaller error, O(h) globally. |
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-euler-method-solver": {
"name": "euler-method-solver",
"description": "Explicit Euler integration for dy/dx = f(x, y): step table, final estimate, and optional exact-solution error column.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=euler-method-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": "euler-method-solver",
"arguments": {
"fxy": "y",
"x0": 0,
"y0": 1,
"xEnd": 1,
"steps": 10,
"exactY": "e^x",
"decimalPlaces": 6
}
}
}Questions or issues? Contact [email protected]
| exactY | text | No | Exact solution in x, used to add an error column. Leave empty to skip. |
| decimalPlaces | number | No | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}