Utilities
Compute how to mix base fertilizers to hit a target N-P-K analysis like 10-10-10. Outputs per-fertilizer kg plus a parts ratio for any batch size.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/fertilizer-blend-calculator' \
-H 'Content-Type: application/json' \
-d '{"target":"10-10-10","ferts":"Urea = 46-0-0\nDAP = 18-46-0\nMuriate of potash = 0-0-60","batch":100}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/fertilizer-blend-calculator| Name | Type | Required | Description |
|---|---|---|---|
| target | text | Yes | The three numbers on a fertilizer bag: %N - %P₂O₅ - %K₂O. |
| ferts | textarea | Yes | The base fertilizers you can mix. One per line: Name = N-P-K. Copy from the reference table below or declare your own. |
| batch | number | No | How many kg of final blend you want to produce. The recipe scales to this. |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-fertilizer-blend-calculator": {
"name": "fertilizer-blend-calculator",
"description": "Compute how to mix base fertilizers to hit a target N-P-K analysis like 10-10-10. Outputs per-fertilizer kg plus a parts ratio for any batch size.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=fertilizer-blend-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": "fertilizer-blend-calculator",
"arguments": {
"target": "10-10-10",
"ferts": "Urea = 46-0-0\nDAP = 18-46-0\nMuriate of potash = 0-0-60",
"batch": 100
}
}
}Questions or issues? Contact [email protected]