Health
RK4 simulation of two competing species with phase plane, isoclines, equilibrium, and automatic outcome classification.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/lotka-volterra-competition' \
-H 'Content-Type: application/json' \
-d '{"r1":0.5,"r2":0.4,"k1":100,"k2":80,"alpha12":0.6,"alpha21":0.5,"n10":10,"n20":8,"tMax":60}'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/lotka-volterra-competition| Name | Type | Required | Description |
|---|---|---|---|
| r1 | number | Yes | Per-capita growth rate of species 1 with no competition. |
| r2 | number | Yes | Per-capita growth rate of species 2 with no competition. |
| k1 | number | Yes | Population species 1 reaches alone. |
| k2 | number | Yes | Population species 2 reaches alone. |
| alpha12 | number | Yes | Competitive impact of one species-2 individual on species 1, in K₁ units. α₁₂ = 1 means individuals are interchangeable. |
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-lotka-volterra-competition": {
"name": "lotka-volterra-competition",
"description": "RK4 simulation of two competing species with phase plane, isoclines, equilibrium, and automatic outcome classification.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=lotka-volterra-competition",
"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": "lotka-volterra-competition",
"arguments": {
"r1": 0.5,
"r2": 0.4,
"k1": 100,
"k2": 80,
"alpha12": 0.6,
"alpha21": 0.5,
"n10": 10,
"n20": 8,
"tMax": 60
}
}
}Questions or issues? Contact [email protected]
| alpha21 | number | Yes | Competitive impact of one species-1 individual on species 2, in K₂ units. |
| n10 | number | Yes | Starting population of species 1 (0 allowed to test invasion-free scenarios). |
| n20 | number | Yes | Starting population of species 2 (0 allowed). |
| tMax | number | Yes | How long to integrate — long enough for the system to settle on its attractor (exclusion can be slow near equilibria). |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}